Hello,
I was wondering there is a way to import all functions from module A in module B like you do for example in Python: " from A import * "
Thanks in advance.
Hello,
I was wondering there is a way to import all functions from module A in module B like you do for example in Python: " from A import * "
Thanks in advance.
#include "FILE_NAME"
I think that's what you are looking for. Though you dont have to include it in every file, once included once it is defined in global space (similar to c++).
If you just want to include the code from another script file, then what chasester123 should work just fine.
If you on the other hand wish to compile multiple modules, and then allow them to share code then it is currently only possible to import functions individually. Classes can be shared across modules if they are declared as shared.
I have plans to make improvements to make it easier for multiple modules to share code, but this is likely going to take a while before it gets implemented.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game