From 989df023fb2f1026b4de5aaab946754bbd7c5172 Mon Sep 17 00:00:00 2001 From: FlightControl Date: Wed, 12 Apr 2017 14:57:12 +0200 Subject: [PATCH] Fixes issue #410 -- SpawnScheduleStart and SpawnScheduleStop now return self -- Proper documentation -- SPA-023 test mission added. --- Moose Development/Moose/Functional/Spawn.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Moose Development/Moose/Functional/Spawn.lua b/Moose Development/Moose/Functional/Spawn.lua index eb3cd32e8..fc3473d59 100644 --- a/Moose Development/Moose/Functional/Spawn.lua +++ b/Moose Development/Moose/Functional/Spawn.lua @@ -944,17 +944,23 @@ end --- Will re-start the spawning scheduler. -- Note: This method is only required to be called when the schedule was stopped. +-- @param #SPAWN self +-- @return #SPAWN function SPAWN:SpawnScheduleStart() self:F( { self.SpawnTemplatePrefix } ) self.SpawnScheduler:Start() + return self end --- Will stop the scheduled spawning scheduler. +-- @param #SPAWN self +-- @return #SPAWN function SPAWN:SpawnScheduleStop() self:F( { self.SpawnTemplatePrefix } ) self.SpawnScheduler:Stop() + return self end