User Tools

Site Tools


class-info

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
class-info [2026/02/23 17:50] polymorphgamesclass-info [2026/02/23 17:59] (current) polymorphgames
Line 6: Line 6:
 { {
     TypeName = "MY_TYPE_NAME",     TypeName = "MY_TYPE_NAME",
-    ParentType = "ASSET", -- if this field is missing, the new type will be a data type+    ParentType = "ASSET",
     Properties = {     Properties = {
         { Name = "Property1", Type = "string", Default = "SomeString" },         { Name = "Property1", Type = "string", Default = "SomeString" },
Line 18: Line 18:
 ^ Name ^ Type ^ Description ^ ^ Name ^ Type ^ Description ^
 | ''TypeName'' | ''string'' | the name of your type | | ''TypeName'' | ''string'' | the name of your type |
-| ''ParentType'' | ''string'' | the name of the parent type of your type +| ''ParentType'' | ''string''optional, the name of the parent type of your type\\ Can be a core type such as ''ASSET'', ''COMPONENT'', or any extendable type.\\ If this field is missing, the new type will be a basic data type.  | 
-| ''Properties'' | ''list'' | a list of the properties your type contains | +| ''[[:class-info#Properties|Properties]]'' | ''list'' | a list of the properties your type contains |
- +
-===== ParentType ===== +
-Can be a core type such as ''ASSET'', ''COMPONENT'', or any extendable type. +
-If this field is missing, the new type will be a basic data type.+
  
 ===== Properties ===== ===== Properties =====
Line 30: Line 26:
 ^ Name ^ Type ^ Description ^ ^ Name ^ Type ^ Description ^
 | ''Name'' | ''string'' | the name of the property | | ''Name'' | ''string'' | the name of the property |
-| ''Type'' | ''string'' | the type of the property |+| ''Type'' | ''string'' | the type of the property.\\ 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. |
 | ''Default'' | property type | optional, the default value assigned to the property | | ''Default'' | property type | optional, the default value assigned to the property |
-| ''Flags'' | ''list<string>'' | optional, additional flag for the property, such as ''SAVE_GAME'' or ''ALLOW_NULL'' | +| ''[[:class-info#Property Flags|Flags]]'' | ''list<string>'' | optional, additional flag for the property, such as ''SAVE_GAME'' or ''ALLOW_NULL'' |
- +
-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.+
  
 ===== Property Flags ===== ===== Property Flags =====
class-info.1771887055.txt.gz · Last modified: 2026/02/23 17:50 by polymorphgames

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki