|
|
@@ -636,7 +636,9 @@ There are some complexities of the scripting system one has to watch out for:
|
|
|
|
|
|
- When the resource request for a particular ScriptFile is initially made, the script file and the files it includes are compiled into an AngelScript script module. Each script module has its own class hierarchy that is not usable from other script modules, unless the classes are declared shared. See AngelScript documentation for more details.
|
|
|
|
|
|
-- If a ScriptFile resource is reloaded, all the script objects created from it will be destroyed, then recreated. They will lose any stored state as their constructors and Start() methods will be run again. This is rarely useful when running an actual game, but may be helpful during development.
|
|
|
+- If a ScriptFile resource is reloaded, all the script objects created from it will be destroyed, then recreated. They will lose any stored state as their constructors and Start() methods will be run again. This is rarely useful when running an actual game, but may be helpful during development.
|
|
|
+
|
|
|
+A global VariantMap, globalVars, can be accessed by all scripts to store shared data or to preserve data through script file reloads.
|
|
|
|
|
|
\section Scripting_Modifications AngelScript modifications
|
|
|
|