User Tools

Site Tools


class-info

This is an old revision of the document!


Class Info

local MY_ASSET_OBJECT = {
    TypeName = "MY_ASSET_OBJECT",
    DataType = "ASSET",
    Properties = {
        { Name = "Property1", Type = "string", Default = "SomeString" },
        { Name = "Property2", Type = "list<RESOURCE_QUANTITY_PAIR>" },
        { Name = "Property3", Type = "integer", Default = 1 }
    }
}
 
mod:registerClass(MY_ASSET_OBJECT)
class-info.1771884518.txt.gz · Last modified: 2026/02/23 17:08 by polymorphgames

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki