Jump to content

LoadBankedTable: Difference between revisions

From CMM Wiki
LoadBankedTable – created via PowerShell script (2025-11-11T21:12:30Z)
Tag: Recreated
 
m LoadBankedTable – created via PowerShell script (2026-01-01T06:03:20Z)
 
Line 1: Line 1:
{{Template:FunctionInfo|fName=          LoadBankedTable|fDescription=  Loads the campaign banked data from a JSON persistence file located in the mission directory, or initializes default values if the file is missing, then saves the data to ensure persistence.|parentFile=    cmm.persistence.lua|syntax=        CMM.LoadBankedTable()|return=        nil|returnDesc=    Returns nothing.|example=        CMM.LoadBankedTable()|exampleDesc=    Loads the campaign banked data from the Campaign_Bank.json file in the mission directory, using default values if the file does not exist.|related=        |note=          |envType= CMM}}
{{Template:FunctionInfo|fName=          LoadBankedTable|fDescription=  Loads the campaign banked data from a JSON persistence file located in the mission directory, or initialises default values if the file is missing, then saves the data to ensure persistence.|parentFile=    cmm.persistence.lua|syntax=        CMM.LoadBankedTable()|return=        nil|returnDesc=    Returns nothing.|example=        CMM.LoadBankedTable()|exampleDesc=    Loads the campaign banked data from the Campaign_Bank.json file in the mission directory, using default values if the file does not exist.|related=        |note=          |envType= CMM}}

Latest revision as of 19:03, 31 December 2025

Return to CMM Command Reference
Environment: Mission Scripting
Function: LoadBankedTable
Function Description: Loads the campaign banked data from a JSON persistence file located in the mission directory, or initialises default values if the file is missing, then saves the data to ensure persistence.
File Location: cmm.persistence.lua
Syntax: CMM.LoadBankedTable( )
Return Value: nil
Parameters: Name Description
Example: CMM.LoadBankedTable()
Example Description: Loads the campaign banked data from the Campaign_Bank.json file in the mission directory, using default values if the file does not exist.
Related Functions:
Notes: