Release of new EVENT class

The logic of the EVENT class has finished. Releasing it.
This commit is contained in:
FlightControl
2016-04-24 06:24:21 +02:00
parent ab4f4e75d1
commit 620844b7e0
11 changed files with 66 additions and 66 deletions

View File

@@ -35,7 +35,7 @@ function MOVEMENT:New( MovePrefixes, MoveMaximum )
self.AliveUnits = 0 -- Contains the counter how many units are currently alive
self.MoveUnits = {} -- Reflects if the Moving for this MovePrefixes is going to be scheduled or not.
_EventDispatcher:OnBirth( self.OnBirth, self )
_EVENTDISPATCHER:OnBirth( self.OnBirth, self )
-- self:AddEvent( world.event.S_EVENT_BIRTH, self.OnBirth )
--
@@ -77,8 +77,8 @@ function MOVEMENT:OnBirth( Event )
end
end
end
_EventDispatcher:OnCrashForUnit( Event.IniDCSUnitName, self.OnDeadOrCrash, self )
_EventDispatcher:OnDeadForUnit( Event.IniDCSUnitName, self.OnDeadOrCrash, self )
_EVENTDISPATCHER:OnCrashForUnit( Event.IniDCSUnitName, self.OnDeadOrCrash, self )
_EVENTDISPATCHER:OnDeadForUnit( Event.IniDCSUnitName, self.OnDeadOrCrash, self )
end
end