Article: Using #include with AngelScript
I've just written an article that shows just how simple it is to use #include directives with AngelScript.
You'll find it here: www.angelcode.com/angelscript/articles/include.html
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
Thanks!
What about your article? Did you stop working on it?
What about your article? Did you stop working on it?
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
Hiya WitchLord,
Thanks for the article, its pretty much what I put together myself with your previous advice.
I had an idea that might interest people for post 1.8.x release.
It would be very simple to support a name space type directive in the script files as well, preprocess this out and use this as the module name when compiling the scripts.
That way you could have a master script file that included script files for each character / entity and declare a namespace in each of these lower files.
Load the master script file and automatically, you would have a loaded script system, with methods partitioned for each entity.
Can't wait for 1.8, keep up the good work,
nihlist
Thanks for the article, its pretty much what I put together myself with your previous advice.
I had an idea that might interest people for post 1.8.x release.
It would be very simple to support a name space type directive in the script files as well, preprocess this out and use this as the module name when compiling the scripts.
That way you could have a master script file that included script files for each character / entity and declare a namespace in each of these lower files.
Load the master script file and automatically, you would have a loaded script system, with methods partitioned for each entity.
Can't wait for 1.8, keep up the good work,
nihlist
Quote: Original post by WitchLord
What about your article? Did you stop working on it?
I submitted it to Gamedev, but they don't seem to have done anything with it. I thought I posted it here but I just checked back and I've only attached a draft. Here is the completed article if you wanted to include it on your site:
http://noreality.net/as-polymorphism.zip
- Xavier
nihlist:
Good idea. Once AngelScript support the scope operator :: this will be a good way to work with namespaces. Though I might still decide to support namespaces natively with AngelScript.
meink:
Excellent. I'll format the article and put it up on my site as soon as possible.
Good idea. Once AngelScript support the scope operator :: this will be a good way to work with namespaces. Though I might still decide to support namespaces natively with AngelScript.
meink:
Excellent. I'll format the article and put it up on my site as soon as possible.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement