Class DATABASE
Administers the Initial Sets of the Mission Templates as defined within the Mission Editor.
Administers the Spawning of new Groups within the DCSRTE and administers these new Groups within the DATABASE object(s).
Methods
-
DATABASE:New ()
-
Creates a new DATABASE Object to administer the Groups defined and alive within the DCSRTE.
Returns:
DATABASE
Usage:
DBObject = DATABASE:New()
-
DATABASE:Spawn (SpawnTemplate)
-
Instantiate new Groups within the DCSRTE.
This method expects EXACTLY the same structure as a structure within the ME, and needs 2 additional fields defined:
SpawnCountryID, SpawnCategoryID
This method is used by the SPAWN class.
Parameters:
-
DATABASE:SetStatusGroup (GroupName, Status)
-
Set a status to a Group within the Database, this to check crossing events for example.
Parameters:
-
DATABASE:GetStatusGroup (GroupName)
-
Get a status to a Group within the Database, this to check crossing events for example.
Parameters:
Private
-
DATABASE:_RegisterGroup (GroupTemplate)
-
Registers new Group Templates within the DATABASE Object.
Parameters:
-
DATABASE:_AddPlayerFromUnit (UnitData)
-
Add a new player entering a Unit.
Parameters:
-
DATABASE:_AddMissionTaskScore (PlayerUnit, MissionName, Score)
-
Registers Scores the players completing a Mission Task.
Parameters:
- PlayerUnit
- MissionName
- Score
-
DATABASE:_AddMissionScore (MissionName, Score)
-
Registers Mission Scores for possible multiple players that contributed in the Mission.
Parameters:
Events
-
DATABASE:OnDeadOrCrash (event)
-
Track DCSRTE DEAD or CRASH events for the internal scoring.
Parameters:
Scheduled
-
DATABASE:_FollowPlayers ()
-
Follows new players entering Clients within the DCSRTE.