2 #ifndef UGDK_SCRIPT_LUA_LUAWRAPPER_H_
3 #define UGDK_SCRIPT_LUA_LUAWRAPPER_H_
25 LuaWrapperBase(
"lua",
LANG(Lua),
"Lua"),
26 data_gear_(nullptr) {}
60 buffer_.push_back(
id);
74 void DeleteDataID(
DataID id);
DataGear * shared_gear()
Definition: luawrapper.h:55
~LuaWrapper()
Definition: luawrapper.h:27
Definition: luawrapper.h:20
std::string NameConversion(const std::string &name)
Definition: animation.h:11
std::shared_ptr< VirtualData > Ptr
Definition: virtualdata.h:46
void CleanBuffer()
Definition: luawrapper.h:63
std::list< DataID > DataBuffer
Definition: defs.h:21
void ExecuteCode(const std::string &code)
DataGear & data_gear()
Definition: luawrapper.h:49
void Share(DataGear *gear)
Definition: luawrapper.h:51
VirtualData::Ptr NewData()
void AddToBuffer(DataID id)
Definition: luawrapper.h:59
Definition: datagear.h:16
bool Initialize()
Overwritten methods.
void Finalize()
Finalizes the LangWrapper, finalizing any language specific stuff.
int(* lua_CFunction)(lua_State *)
Definition: defs.h:9
#define LANG(name)
Here are the common definitions of the script system.
Definition: defs.h:7
LuaWrapper()
Definition: luawrapper.h:24
A proxy class wich represents virtual objects from scripting languages.
Definition: virtualobj.h:30
ugdk::script::InheritableLangWrapper< lua_CFunction > LuaWrapperBase
Definition: luawrapper.h:17
VirtualObj LoadModule(const std::string &name)
VirtualData::Ptr OperateBuffer(const DataID operand_id, lua_CFunction op)
Other methods.
int DataID
Definition: defs.h:20
Wraps a scripting language.
Definition: script.h:15