Dump.LUATable
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | dump.LUATable | |
| Function Description: | Dumps a Lua table to a specified file using table.serialize, ensuring proper validation and directory creation. Handles table input and file path, logging warnings if inputs are invalid and writing the serialized content to the target location. | |
| File Location: | cmm.tools.lua | |
| Syntax: | CMM.dump.LUATable( table TBL , string FullPath ) | |
| Return Value: | nil | |
| Parameters: | Name | Description |
| TBL | Table to be serialized and written to a file. Must be a valid table structure. | |
| FullPath | Full file path where the Lua table will be saved. If invalid or missing, defaults to CMM.dump.Directory. | |
| Example: | CMM.dump.LUATable(CMM, "C:\test123\file.lua") | |
| Example Description: | Demonstrates dumping the CMM table to a Lua file located at C:\test123\file.lua, ensuring proper directory creation and file writing. | |
| Related Functions: | ||
| Notes: | ||