mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Found a solution to avoid having to install MOOSE.
Now MOOSE can be copied into the mission file, but you'll need to include a "do file" action of moose.lua in the mission file and copy the rest of the MOOSE files to the MIZ file.
This commit is contained in:
28
Moose/NoTask.lua
Normal file
28
Moose/NoTask.lua
Normal file
@@ -0,0 +1,28 @@
|
||||
--- A NOTASK is a dummy activity... But it will show a Mission Briefing...
|
||||
-- @classmod NOTASK
|
||||
|
||||
Include.File("Task")
|
||||
|
||||
--- Modeling a sequence of STAGEs to do nothing, but wait for the mission goal.
|
||||
NOTASK = {
|
||||
ClassName = "NOTASK",
|
||||
}
|
||||
|
||||
--- Creates a new NOTASK.
|
||||
function NOTASK:New()
|
||||
trace.f(self.ClassName)
|
||||
|
||||
-- Child holds the inherited instance of the PICKUPTASK Class to the BASE class.
|
||||
local Child = BASE:Inherit( self, TASK:New() )
|
||||
|
||||
local Valid = true
|
||||
|
||||
if Valid then
|
||||
Child.Name = 'Nothing'
|
||||
Child.TaskBriefing = "Task: Execute your mission."
|
||||
Child.Stages = { STAGEBRIEF:New(), STAGESTART:New(), STAGEDONE:New() }
|
||||
Child.SetStage( Child, 1 )
|
||||
end
|
||||
|
||||
return Child
|
||||
end
|
||||
Reference in New Issue
Block a user