Jump to content

Tools.BuildDataDumpTable: Difference between revisions

From CMM Wiki
tools.BuildDataDumpTable – created via PowerShell script (2025-11-11T21:12:51Z)
Tag: Recreated
 
m tools.BuildDataDumpTable – created via PowerShell script (2026-01-01T06:03:42Z)
 
Line 1: Line 1:
{{Template:FunctionInfo|fName=          tools.BuildDataDumpTable|fDescription=  Constructs a comprehensive table of unit types and their associated weapon and equipment types by iterating through all helicopter, plane, ship, and vehicle units, extracting weapon data, and organizing it into a structured format for debugging and analysis.|parentFile=    cmm.tools.lua|syntax=        CMM.tools.BuildDataDumpTable()|return=        nil|returnDesc=    A table containing unit types as keys, each with a displayName and subtables for weapons and equipment, where weapon types map to their display names.|example=        CMM.tools.BuildDataDumpTable()|exampleDesc=    Initializes and processes all unit types, collects weapon and equipment data, logs progress, and outputs the full data structure in JSON format for inspection.|related=        |note=          |envType= CMM}}
{{Template:FunctionInfo|fName=          tools.BuildDataDumpTable|fDescription=  Constructs a comprehensive table of unit types and their associated weapon and equipment types by iterating through all helicopter, plane, ship, and vehicle units, extracting weapon data, and organizing it into a structured format for debugging and analysis.|parentFile=    cmm.tools.lua|syntax=        CMM.tools.BuildDataDumpTable()|return=        nil|returnDesc=    A table containing unit types as keys, each with a displayName and subtables for weapons and equipment, where weapon types map to their display names.|example=        CMM.tools.BuildDataDumpTable()|exampleDesc=    initialises and processes all unit types, collects weapon and equipment data, logs progress, and outputs the full data structure in JSON format for inspection.|related=        |note=          |envType= CMM}}

Latest revision as of 19:03, 31 December 2025

Return to CMM Command Reference
Environment: Mission Scripting
Function: tools.BuildDataDumpTable
Function Description: Constructs a comprehensive table of unit types and their associated weapon and equipment types by iterating through all helicopter, plane, ship, and vehicle units, extracting weapon data, and organizing it into a structured format for debugging and analysis.
File Location: cmm.tools.lua
Syntax: CMM.tools.BuildDataDumpTable( )
Return Value: nil
Parameters: Name Description
Example: CMM.tools.BuildDataDumpTable()
Example Description: initialises and processes all unit types, collects weapon and equipment data, logs progress, and outputs the full data structure in JSON format for inspection.
Related Functions:
Notes: