mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-10 17:59:24 +00:00
xx
This commit is contained in:
@@ -1068,6 +1068,36 @@ end
|
|||||||
|
|
||||||
do -- Event Creation
|
do -- Event Creation
|
||||||
|
|
||||||
|
--- Creation of a New Cargo Event.
|
||||||
|
-- @param #EVENT self
|
||||||
|
-- @param AI.AI_Cargo#AI_CARGO Cargo The Cargo created.
|
||||||
|
function EVENT:CreateEventNewCargo( Cargo )
|
||||||
|
self:F( { Cargo } )
|
||||||
|
|
||||||
|
local Event = {
|
||||||
|
id = EVENTS.NewCargo,
|
||||||
|
time = timer.getTime(),
|
||||||
|
cargo = Cargo,
|
||||||
|
}
|
||||||
|
|
||||||
|
world.onEvent( Event )
|
||||||
|
end
|
||||||
|
|
||||||
|
--- Creation of a Cargo Deletion Event.
|
||||||
|
-- @param #EVENT self
|
||||||
|
-- @param AI.AI_Cargo#AI_CARGO Cargo The Cargo created.
|
||||||
|
function EVENT:CreateEventDeleteCargo( Cargo )
|
||||||
|
self:F( { Cargo } )
|
||||||
|
|
||||||
|
local Event = {
|
||||||
|
id = EVENTS.DeleteCargo,
|
||||||
|
time = timer.getTime(),
|
||||||
|
cargo = Cargo,
|
||||||
|
}
|
||||||
|
|
||||||
|
world.onEvent( Event )
|
||||||
|
end
|
||||||
|
|
||||||
--- Creation of a New Zone Event.
|
--- Creation of a New Zone Event.
|
||||||
-- @param #EVENT self
|
-- @param #EVENT self
|
||||||
-- @param Core.Zone#ZONE_BASE Zone The Zone created.
|
-- @param Core.Zone#ZONE_BASE Zone The Zone created.
|
||||||
|
|||||||
Reference in New Issue
Block a user