Good version solving a few bugs and adding some new stuff.
This commit is contained in:
Frank
2021-08-24 23:10:38 +02:00
parent c6ebbc6122
commit 259b201e65
5 changed files with 185 additions and 94 deletions

View File

@@ -83,7 +83,7 @@ ARMYGROUP.version="0.7.0"
-- @param Wrapper.Group#GROUP group The GROUP object. Can also be given by its group name as `#string`.
-- @return #ARMYGROUP self
function ARMYGROUP:New(group)
-- First check if we already have an OPS group for this group.
local og=_DATABASE:GetOpsGroup(group)
if og then
@@ -91,6 +91,9 @@ function ARMYGROUP:New(group)
return og
end
-- First set ARMYGROUP.
self.isArmygroup=true
-- Inherit everything from FSM class.
local self=BASE:Inherit(self, OPSGROUP:New(group)) -- #ARMYGROUP
@@ -98,7 +101,6 @@ function ARMYGROUP:New(group)
self.lid=string.format("ARMYGROUP %s | ", self.groupname)
-- Defaults
self.isArmygroup=true
self:SetDefaultROE()
self:SetDefaultAlarmstate()
self:SetDetection()