Module Data_Controller
This disk represents all of the "data" in the game (e.g.
giant JSON).
In future versions of the prototype, this will be downloaded asynchronously and cached in onSave instead of requiring everything to be inlined here.
Functions
| findUnit (args) | Returns the unit data for the provided arguments. |
Tables
| data | Data table for a unit. |
Functions
- findUnit (args)
-
Returns the unit data for the provided arguments.
Parameters:
- args A table with the fields `faction`, `rank`, and `name`.
Returns:
-
A table with the `name` and `models` for the minis.
Usage:
findUnit({ faction = 'GalacticEmpire', rank = 'Corps', name = 'Stormtroopers', })