mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
Parametrize script extension, default to 'tscript'
This commit is contained in:
parent
b8b62292bd
commit
099dd4f1f3
542 changed files with 774 additions and 783 deletions
|
|
@ -0,0 +1,26 @@
|
|||
//onAdd is called when the component is created and then added to it's owner entity.
|
||||
//You would also add any script-defined component fields via addComponentField().
|
||||
function ExampleComponent::onAdd(%this)
|
||||
{
|
||||
|
||||
}
|
||||
//onRemove is called when the component is removed and deleted from it's owner entity.
|
||||
function ExampleComponent::onRemove(%this)
|
||||
{
|
||||
|
||||
}
|
||||
//onClientConnect is called any time a new client connects to the server.
|
||||
function ExampleComponent::onClientConnect(%this, %client)
|
||||
{
|
||||
|
||||
}
|
||||
//onClientDisconnect is called any time a client disconnects from the server.
|
||||
function ExampleComponent::onClientDisconnect(%this, %client)
|
||||
{
|
||||
|
||||
}
|
||||
//update is called when the component does an update tick.
|
||||
function ExampleComponent::Update(%this)
|
||||
{
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue