mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Dogjutsu/develop/feature/zone properties (#1774)
* Fixed some typos of forms of the word 'strategy'. * Retrieve Zone 'properties' with ZONE_BASE. * Extraneous comment cleanup. Co-authored-by: dogjutsu <dogjutsu@mattjay.net>
This commit is contained in:
@@ -326,6 +326,17 @@ do -- Zones
|
||||
-- Store zone ID.
|
||||
Zone.ZoneID=ZoneData.zoneId
|
||||
|
||||
-- Store zone properties (if any)
|
||||
local ZoneProperties = ZoneData.properties or nil
|
||||
Zone.Properties = {}
|
||||
if ZoneName and ZoneProperties then
|
||||
for _,ZoneProp in ipairs(ZoneProperties) do
|
||||
if ZoneProp.key then
|
||||
Zone.Properties[ZoneProp.key] = ZoneProp.value
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
-- Store in DB.
|
||||
self.ZONENAMES[ZoneName] = ZoneName
|
||||
|
||||
|
||||
Reference in New Issue
Block a user