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
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement