mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
2016-08-14 - Changed Spawn APIs to express Group position and Unit position randomization. - Changed the API protocol of SpawnInZone() method. -- Removed OuterRadius and InnerRadius parameters !!! - Changed the API protocol of SpawnFromUnit() method. -- Removed OuterRadius and InnerRadius parameters !!! - Added InitRandomizeUnits() method, taking 3 parameters: -- RandomizeUnits given the value true, will randomize the units upon spawning, false (default) will not randomize the untis. -- OuterRadius is the outer radius of the band where the units will be spawned, if RandomizeUnits is true. -- InnerRadius is the inner radius of the band where the units will not be spawned, if RandomizeUnits is true. - Removed SpawnFunction() method. - Added OnSpawnGroup() method as the new official CallBack function method to catch when a new function will be called. -- Documented OnSpawnGroup() method. - Renamed Limit() method to InitLimit() method. - Renamed Array() method to InitArray() method. - Renamed RandomizeRoute() method to InitRandomizeRoute() method. - Renamed RandomizeTemplate() method to InitRandomizeTemplate() method. - Reviewed all test missions for the changes executed and made adaptions where necessary + re-tests.
32 lines
840 B
Lua
32 lines
840 B
Lua
env.info( '*** MOOSE DYNAMIC INCLUDE START *** ' )
|
|
env.info( 'Moose Generation Timestamp: 20160814_2125' )
|
|
|
|
local base = _G
|
|
|
|
Include = {}
|
|
|
|
Include.File = function( IncludeFile )
|
|
if not Include.Files[ IncludeFile ] then
|
|
Include.Files[IncludeFile] = IncludeFile
|
|
env.info( "Include:" .. IncludeFile .. " from " .. Include.ProgramPath )
|
|
local f = assert( base.loadfile( Include.ProgramPath .. IncludeFile .. ".lua" ) )
|
|
if f == nil then
|
|
error ("Could not load MOOSE file " .. IncludeFile .. ".lua" )
|
|
else
|
|
env.info( "Include:" .. IncludeFile .. " loaded from " .. Include.ProgramPath )
|
|
return f()
|
|
end
|
|
end
|
|
end
|
|
|
|
Include.ProgramPath = "Scripts/Moose/"
|
|
|
|
env.info( "Include.ProgramPath = " .. Include.ProgramPath)
|
|
|
|
Include.Files = {}
|
|
|
|
Include.File( "Moose" )
|
|
|
|
BASE:TraceOnOff( true )
|
|
env.info( '*** MOOSE INCLUDE END *** ' )
|