custom-data
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| custom-data [2022/03/29 20:58] – created - external edit 127.0.0.1 | custom-data [2026/02/23 17:49] (current) – [Step 1: Defining a DATA Object using a Lua Table] polymorphgames | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| ===== Creating & Using a Custom DATA Object ===== | ===== Creating & Using a Custom DATA Object ===== | ||
| ==== Step 1: Defining a DATA Object using a Lua Table ==== | ==== Step 1: Defining a DATA Object using a Lua Table ==== | ||
| - | To create a custom [[api# | + | To create a custom [[api# |
| Here you decide what properties your custom [[api# | Here you decide what properties your custom [[api# | ||
| <code lua> | <code lua> | ||
| local MY_DATA_OBJECT = { | local MY_DATA_OBJECT = { | ||
| - | TypeName = " | + | TypeName = " |
| Properties = { | Properties = { | ||
| { Name = " | { Name = " | ||
| Line 20: | Line 20: | ||
| mod: | mod: | ||
| </ | </ | ||
| - | Make sure not to forget the '' | + | Make sure not to forget the '' |
| Also remember that you can define properties based on the basic [[data-types|data types]] (i.e. string, integer, float, etc.) or based on any of the existing [[api# | Also remember that you can define properties based on the basic [[data-types|data types]] (i.e. string, integer, float, etc.) or based on any of the existing [[api# | ||
custom-data.1648601925.txt.gz · Last modified: 2022/03/29 20:58 by 127.0.0.1
