Contents
tolua class
This class represents the tolua bridge between the Lua API and Cuberite. It supports some low
level operations and queries on the objects. See also the tolua++'s documentation at
http://www.codenix.com/~tolua/tolua++.html. Normally you shouldn't use any of these
functions except for type()
Functions
Name | Parameters | Return value | Notes |
cast |
Object, TypeStr |
Object |
Casts the object to the specified type. Note: This is a potentially unsafe operation and it could crash the server. There is normally no need to use this function at all, so don't use it unless you know exactly what you're doing. |
getpeer |
|
|
|
inherit |
|
|
|
releaseownership |
|
|
|
setpeer |
|
|
|
takeownership |
|
|
|
type |
Object |
TypeStr |
Returns a string representing the type of the object. This works similar to Lua's built-in type() function, but recognizes the underlying C++ classes, too. |
|