World of Hello
script.h
1 
6 class script
7 {
8 public:
20  static script setReloadOnUpdate(string scriptName, bool reloadOnupdate=true);
29  static script remove(string scriptName);
41  static bool rename(string scriptName, string newName="");
49  static script clear(string scriptName);
63  static multiReturn<var* ...> triggerFunction(string funcName, string scriptName, ...);
73  static string doString(string scriptStr, string scriptName);
84  static var* getValue(string variable, string scriptName);
91  static string thisName();
98  static function thisFunction();
105  static string thisFunctionName();
106 private:
107 };
script::thisFunction
static function thisFunction()
gets the current function where this function is called.
script::getValue
static var * getValue(string variable, string scriptName)
gets the value of a variable from another script.
script
used to control specific scripts.
Definition: script.h:6
script::triggerFunction
static multiReturn< var *... > triggerFunction(string funcName, string scriptName,...)
calls a function in a script.
script::thisFunctionName
static string thisFunctionName()
gets the name of the function where this function is called.
script::rename
static bool rename(string scriptName, string newName="")
renames the script. If no name given, renames the current script.
script::thisName
static string thisName()
gets the name of the script where this function is called.
script::doString
static string doString(string scriptStr, string scriptName)
does a script string in a script.
script::setReloadOnUpdate
static script setReloadOnUpdate(string scriptName, bool reloadOnupdate=true)
sets whether or not the script should reload on update.
script::clear
static script clear(string scriptName)
clears the script, removing all objects associated with it.
script::remove
static script remove(string scriptName)
removes the given script, no longer running it.