⭐interface
Interface Helper Library, loaded by requiring "gamesense/interface"
Functions
interface
interface(module_name: string, interface_name: string)
: cdata (interface object pointer)
Argument | Type | Description |
module_name | string | Filename of the module that contains the interface |
interface_name | string | Name of the interface |
Creates an interface and returns an interface object pointer pointing to it
interface
interface(ptr: cdata / userdata)
: cdata (interface object pointer)
Argument | Type | Description |
ptr | cdata / userdata | Pointer to an interface |
Converts the given pointer to an interface object pointer and returns it
Usage
In order to bind functions to an interface object, you have to index it with any desirable name and set it to a table that contains 2 or more elements. The first being either an index or a pattern of the needed function, and the other ones being the type definition.
Last updated