ScriptThread
Creates and controls script threads.
Members
-
bool
wasError
— Whether the thread was ended due to an error.
bool
start(
string&
entry
)
Starts a thread using the specified function.
-
string&
entry — Entry point of type 'double f(double, ScriptThread&)'. Receives time since last call and a reference to the associated ScripThread. Returns delay till next call.
Returns
bool
: True if the thread was started
bool
setObject(
?&
arg0
)
Sets the thread's object. Can only receive script object handles.
Returns
bool
: True if the reference could be taken
bool
getObject(
?&
arg0
)
Gets the thread's object. Can only receive script object handles.
Returns
bool
: True if the reference could be stored