static int _CreateOneByOne_MoveDTO(IntPtr L) { int count = LuaDLL.lua_gettop(L); if (count == 0) { OneByOne.MoveDTO obj = new OneByOne.MoveDTO(); LuaScriptMgr.PushObject(L, obj); return(1); } else { LuaDLL.luaL_error(L, "invalid arguments to method: OneByOne.MoveDTO.New"); } return(0); }
static int get_posX(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); OneByOne.MoveDTO obj = (OneByOne.MoveDTO)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name posX"); } else { LuaDLL.luaL_error(L, "attempt to index posX on a nil value"); } } LuaScriptMgr.Push(L, obj.posX); return(1); }
static int set_dirZ(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); OneByOne.MoveDTO obj = (OneByOne.MoveDTO)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name dirZ"); } else { LuaDLL.luaL_error(L, "attempt to index dirZ on a nil value"); } } obj.dirZ = (float)LuaScriptMgr.GetNumber(L, 3); return(0); }