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',
    })

Tables

data
Data table for a unit.

Fields:

  • name Name of the unit (such as "Stormtroopers").
  • models A list of tables of the mesh/texture for individual minis.
generated by LDoc 1.4.6 Last updated 2020-05-19 00:07:14