OpenBlox
A game engine which provides a simple and easy to learn Lua API.
OB::Type Namespace Reference

Classes

class  BoolWrapper
 
class  CFrame
 
class  Color3
 
class  DoubleWrapper
 
class  Event
 
class  EventConnection
 
class  FloatWrapper
 
class  InputEvent
 
class  InputKeyEvent
 
class  InputMouseButtonEvent
 
class  InputMouseMovementEvent
 
class  InputMouseWheelEvent
 
class  IntWrapper
 
class  LongWrapper
 
class  LuaEnum
 
class  LuaEnumItem
 
class  LuaReferencedWrapper
 
class  StringWrapper
 
class  Type
 
class  UDim
 
class  UDim2
 
class  UnsignedLongWrapper
 
class  VarWrapper
 
class  Vector2
 
class  Vector3
 

Enumerations

enum  VarType : size_t {
  TYPE_INT, TYPE_DOUBLE, TYPE_FLOAT, TYPE_LONG,
  TYPE_UNSIGNED_LONG, TYPE_BOOL, TYPE_STRING, TYPE_INSTANCE,
  TYPE_TYPE, TYPE_LUA_OBJECT, TYPE_NULL, TYPE_UNKNOWN
}
 

Functions

shared_ptr< CFramecheckCFrame (lua_State *L, int n, bool errIfNot=true, bool allowNil=true)
 
shared_ptr< Color3checkColor3 (lua_State *L, int n, bool errIfNot=true, bool allowNil=true)
 
shared_ptr< EventcheckEvent (lua_State *L, int n, bool errIfNot=true, bool allowNil=true)
 
shared_ptr< EventConnectioncheckEventConnection (lua_State *L, int n, bool errIfNot=true, bool allowNil=true)
 
shared_ptr< InputMouseButtonEventcheckInputMouseButtonEvent (lua_State *L, int n, bool errIfNot=true, bool allowNil=true)
 
shared_ptr< InputMouseWheelEventcheckInputMouseWheelEvent (lua_State *L, int n, bool errIfNot=true, bool allowNil=true)
 
shared_ptr< InputMouseMovementEventcheckInputMouseMovementEvent (lua_State *L, int n, bool errIfNot=true, bool allowNil=true)
 
shared_ptr< InputKeyEventcheckInputKeyEvent (lua_State *L, int n, bool errIfNot=true, bool allowNil=true)
 
shared_ptr< InputEventcheckInputEvent (lua_State *L, int n, bool errIfNot=true, bool allowNil=true)
 
shared_ptr< LuaEnumcheckLuaEnum (lua_State *L, int n, bool errIfNot=true, bool allowNil=true)
 
shared_ptr< LuaEnumItemcheckLuaEnumItem (lua_State *L, int n, shared_ptr< LuaEnum > enum_type)
 
shared_ptr< LuaEnumItemcheckAnyLuaEnumItem (lua_State *L, int n, bool errIfNot=true, bool allowNil=true)
 
shared_ptr< UDimcheckUDim (lua_State *L, int n, bool errIfNot=true, bool allowNil=true)
 
shared_ptr< UDim2checkUDim2 (lua_State *L, int n, bool errIfNot=true, bool allowNil=true)
 
shared_ptr< Vector2checkVector2 (lua_State *L, int n, bool errIfNot=true, bool allowNil=true)
 
shared_ptr< Vector3checkVector3 (lua_State *L, int n, bool errIfNot=true, bool allowNil=true)
 

Enumeration Type Documentation

◆ VarType

enum OB::Type::VarType : size_t

Describes the type of the wrapped variable for conversion to Lua.

Author
John M. Harris, Jr.
Enumerator
TYPE_INT 
TYPE_DOUBLE 
TYPE_FLOAT 
TYPE_LONG 
TYPE_UNSIGNED_LONG 
TYPE_BOOL 
TYPE_STRING 
TYPE_INSTANCE 
TYPE_TYPE 
TYPE_LUA_OBJECT 
TYPE_NULL 
TYPE_UNKNOWN 

Function Documentation

◆ checkAnyLuaEnumItem()

shared_ptr<LuaEnumItem> OB::Type::checkAnyLuaEnumItem ( lua_State *  L,
int  n,
bool  errIfNot = true,
bool  allowNil = true 
)

◆ checkCFrame()

shared_ptr<CFrame> OB::Type::checkCFrame ( lua_State *  L,
int  n,
bool  errIfNot = true,
bool  allowNil = true 
)

◆ checkColor3()

shared_ptr<Color3> OB::Type::checkColor3 ( lua_State *  L,
int  n,
bool  errIfNot = true,
bool  allowNil = true 
)

◆ checkEvent()

shared_ptr<Event> OB::Type::checkEvent ( lua_State *  L,
int  n,
bool  errIfNot = true,
bool  allowNil = true 
)

◆ checkEventConnection()

shared_ptr<EventConnection> OB::Type::checkEventConnection ( lua_State *  L,
int  n,
bool  errIfNot = true,
bool  allowNil = true 
)

◆ checkInputEvent()

shared_ptr<InputEvent> OB::Type::checkInputEvent ( lua_State *  L,
int  n,
bool  errIfNot = true,
bool  allowNil = true 
)

◆ checkInputKeyEvent()

shared_ptr<InputKeyEvent> OB::Type::checkInputKeyEvent ( lua_State *  L,
int  n,
bool  errIfNot = true,
bool  allowNil = true 
)

◆ checkInputMouseButtonEvent()

shared_ptr<InputMouseButtonEvent> OB::Type::checkInputMouseButtonEvent ( lua_State *  L,
int  n,
bool  errIfNot = true,
bool  allowNil = true 
)

◆ checkInputMouseMovementEvent()

shared_ptr<InputMouseMovementEvent> OB::Type::checkInputMouseMovementEvent ( lua_State *  L,
int  n,
bool  errIfNot = true,
bool  allowNil = true 
)

◆ checkInputMouseWheelEvent()

shared_ptr<InputMouseWheelEvent> OB::Type::checkInputMouseWheelEvent ( lua_State *  L,
int  n,
bool  errIfNot = true,
bool  allowNil = true 
)

◆ checkLuaEnum()

shared_ptr<LuaEnum> OB::Type::checkLuaEnum ( lua_State *  L,
int  n,
bool  errIfNot = true,
bool  allowNil = true 
)

◆ checkLuaEnumItem()

shared_ptr<LuaEnumItem> OB::Type::checkLuaEnumItem ( lua_State *  L,
int  n,
shared_ptr< LuaEnum enum_type 
)

◆ checkUDim()

shared_ptr<UDim> OB::Type::checkUDim ( lua_State *  L,
int  n,
bool  errIfNot = true,
bool  allowNil = true 
)

◆ checkUDim2()

shared_ptr<UDim2> OB::Type::checkUDim2 ( lua_State *  L,
int  n,
bool  errIfNot = true,
bool  allowNil = true 
)

◆ checkVector2()

shared_ptr<Vector2> OB::Type::checkVector2 ( lua_State *  L,
int  n,
bool  errIfNot = true,
bool  allowNil = true 
)

◆ checkVector3()

shared_ptr<Vector3> OB::Type::checkVector3 ( lua_State *  L,
int  n,
bool  errIfNot = true,
bool  allowNil = true 
)