User Tools

Site Tools


custom-data

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
custom-data [2026/02/23 17:05] – [Step 1: Defining a DATA Object using a Lua Table] polymorphgamescustom-data [2026/02/23 17:49] (current) – [Step 1: Defining a DATA Object using a Lua Table] polymorphgames
Line 20: Line 20:
 mod:registerClass(MY_DATA_OBJECT) mod:registerClass(MY_DATA_OBJECT)
 </code> </code>
-Make sure not to forget the ''SAVE_GAME'' flag if you intend to store runtime values that need to persist accross a reload!+Make sure not to forget the ''SAVE_GAME'' flag if you intend to store runtime values that need to persist across a reload!
  
 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#data_classes|DATA]] or [[assets|ASSET]] objects, as well as ''list''s therof! 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#data_classes|DATA]] or [[assets|ASSET]] objects, as well as ''list''s therof!
custom-data.txt · Last modified: 2026/02/23 17:49 by polymorphgames

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki