This extension allows the user to easily create and use composite datatypes. It is available as an extension or a GML file.
Extension
GML File
Functions
- cdt_init -- Initilize the system. It must be called before any other use (done automatically in the extension).
- cdt_free -- Free the memory used by the system (called automatically in the extension).
- cdt_create(fields) -- Create an instance of a composite datatype with a number of data fields. Returns the id.
- cdt_destroy(cdt) -- Destroy an instance of a cdt.
- cdt_set_field(cdt, field, value) -- Set one of the fields in an instance of a cdt to a value.
- cdt_get_field(cdt, field) -- Returns the value of one of the fields in an instance of a cdt.
----------
I made this simply because I got tired of reproducing the same functionality every time that I made an extension. I hope that people find it useful, for making both their own extensions, and their own games.



Find content
Male


