Base class for Reactor scripts. More...
Classes | |
interface | IInternals |
Internal interface. More... | |
Public Member Functions | |
virtual void | Attached () |
Called immediately when the script is attached. More... | |
virtual void | Initialize () |
Called after all other scripts on all entities are attached. More... | |
virtual void | Detached () |
Called when the script is detached. More... | |
virtual Script | Clone () |
Creates a copy of the script with the value of all members tagged with ksEditable or ksCloneable copied. More... | |
Properties | |
Type | InstanceType [get] |
Gets the most derived type of this script. More... | |
bool | IsAttached [get, set] |
Is the script attached? More... | |
ksScriptList< Parent, Script > | Scripts [get, set] |
List this script is in. More... | |
ksBaseAssetLoader | Assets [get] |
Asset loader. More... | |
Base class for Reactor scripts.
Parent | Type the script can be attached to. |
Script | Type of script this is. |
Parent | : | class | |
Script | : | ksScript | |
Script | : | Parent | |
Script | : | Script |
|
virtual |
Called immediately when the script is attached.
Other scripts may not be attached or have their ksEditable field loaded yet, so it is not safe to access other scripts. Initialization that depends on other scripts should be done from Initialize. Attached is called on each script in the order they were configured.
Reimplemented in KS.Reactor.Server.ksShapeCollider, KS.Reactor.Server.ksRigidBody2DView, KS.Reactor.Server.ksRigidBody, KS.Reactor.Server.ksCharacterController, and KS.Reactor.Server.ksBaseRigidBody.
|
virtual |
Creates a copy of the script with the value of all members tagged with ksEditable or ksCloneable copied.
Arrays, lists, and dictionaries are cloned. Other object references will reference the same object.
Reimplemented in KS.Reactor.Server.ksShapeCollider, KS.Reactor.Server.ksPlaneCollider, KS.Reactor.Server.ksCollider, KS.Reactor.Server.ksCapsuleCollider, KS.Reactor.Server.ksBoxCollider, and KS.Reactor.Server.ksBaseRigidBody.
|
virtual |
Called when the script is detached.
Remove event listeners and perform other clean up logic here.
Reimplemented in KS.Reactor.Server.ksShapeCollider, KS.Reactor.Server.ksRigidBody2DView, KS.Reactor.Server.ksRigidBody, KS.Reactor.Server.ksJoint, KS.Reactor.Server.ksCharacterController, and KS.Reactor.Server.ksBaseRigidBody.
|
virtual |
Called after all other scripts on all entities are attached.
Initialize is called on each script in the order they were configured.
Reimplemented in KS.Reactor.Server.ksJoint.
|
get |
Asset loader.
|
get |
Gets the most derived type of this script.
|
getset |
Is the script attached?
|
getset |
List this script is in.