-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.model.lua
More file actions
11 lines (11 loc) · 1.73 KB
/
Copy pathmain.model.lua
File metadata and controls
11 lines (11 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
--- Library
--- This library is used to store custom classes for the game. It is a table that can be accessed from anywhere in the game.
--- @class MagnusDCSScripting
--- @field activeDamageTrackers table<string, damageTracker>|nil A table that holds active damageTracker instances, indexed by their unique zone names. This allows for efficient retrieval and management of damage trackers based on the zones they are associated with.
--- @field damageTracker damageTracker|nil The damageTracker class, which is responsible for tracking damage within specified zones and managing related state and events.
--- @field damageHandler damageHandler|nil The damageHandler class, which listens for relevant DCS World events and delegates them to the appropriate damageTracker instances based on the location of the hit.
--- @field config config|nil The config class, which holds configuration settings for the mission, including the partial success percentage and an array of mission definitions.
--- @field getFinalScore getFinalScore|nil The getFinalScore function, which calculates and displays the player's final score based on mission completion and the defined partial success threshold.
--- @field initializeDamageTracker initializeDamageTracker|nil The initializeDamageTracker function, which creates and registers new damageTracker instances for specified zones, damage thresholds, and event trigger flags.
--- @field eventHandler EventHandler|nil The event handler instance that listens for DCS World events and processes them according to the defined logic in the damageHandler class.
--- @field allOfCoalitionInZone allOfCoalitionInZone|nil The allOfCoalitionInZone function, which checks if all units of a specified coalition and category are within a given zone.