LuaState.registerType

Register a D class or struct with Lua.

This method exposes a type's constructors and static interface to Lua.

class LuaState
@trusted
registerType
(
T
)
()

Parameters

T

class or struct to register

Return Value

Type: LuaObject

Reference to the registered type in Lua

Meta