๐งAddType
Function for registering a custom data type in gpm.
gpm.AddType( string typeName, function func ) -> number
In the package runtime, type
& TypeID is replaced by gpm.type & gpm.TypeID
so there is no need to replace it manually.
Repeated execution of a function with the same type name will replace the previous function, but the unique type id will be preserved.
Example Usage
Last updated