Build sets

This commit is contained in:
FlightControl
2016-06-10 11:27:40 +02:00
parent ea318f3c75
commit a6baed5478
3 changed files with 524 additions and 7 deletions

View File

@@ -105,6 +105,7 @@ function DATABASE:New()
self:_RegisterTemplates()
self:_RegisterGroupsAndUnits()
self:_RegisterClients()
self:_RegisterStatics()
self:_RegisterPlayers()
@@ -380,8 +381,16 @@ function DATABASE:_RegisterGroupsAndUnits()
end
end
return self
end
--- Private method that registers all Units of skill Client or Player within in the mission.
-- @param #DATABASE self
-- @return #DATABASE self
function DATABASE:_RegisterClients()
for ClientName, ClientTemplate in pairs( self.Templates.ClientsByName ) do
self:E( { "Adding Client:", ClientName } )
self:E( { "Register Client:", ClientName } )
self:AddClient( ClientName )
end