mirror of
https://github.com/Jusctsch5/ironsphererpg.git
synced 2026-01-19 19:44:45 +00:00
22 lines
625 B
C#
22 lines
625 B
C#
|
|
//--------------------------------------------------------------------------
|
||
|
|
//
|
||
|
|
//
|
||
|
|
//
|
||
|
|
//--------------------------------------------------------------------------
|
||
|
|
|
||
|
|
function SimGroup::onTrigger(%this, %triggerId, %on)
|
||
|
|
{
|
||
|
|
// Just relay the trigger event to all sub objects...
|
||
|
|
//
|
||
|
|
for (%i = 0; %i < %this.getCount(); %i++)
|
||
|
|
%this.getObject(%i).onTrigger(%triggerId, %on);
|
||
|
|
}
|
||
|
|
|
||
|
|
function SimGroup::onTriggerTick(%this, %triggerId)
|
||
|
|
{
|
||
|
|
// Just relay the trigger event to all sub objects...
|
||
|
|
//
|
||
|
|
for (%i = 0; %i < %this.getCount(); %i++)
|
||
|
|
%this.getObject(%i).onTriggerTick(%triggerId);
|
||
|
|
}
|