static int _CreateOneByOne_AttackDTO(IntPtr L) { int count = LuaDLL.lua_gettop(L); if (count == 0) { OneByOne.AttackDTO obj = new OneByOne.AttackDTO(); LuaScriptMgr.PushObject(L, obj); return(1); } else { LuaDLL.luaL_error(L, "invalid arguments to method: OneByOne.AttackDTO.New"); } return(0); }
static int get_target(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); OneByOne.AttackDTO obj = (OneByOne.AttackDTO)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name target"); } else { LuaDLL.luaL_error(L, "attempt to index target on a nil value"); } } LuaScriptMgr.PushArray(L, obj.target); return(1); }
static int set_id(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); OneByOne.AttackDTO obj = (OneByOne.AttackDTO)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name id"); } else { LuaDLL.luaL_error(L, "attempt to index id on a nil value"); } } obj.id = (int)LuaScriptMgr.GetNumber(L, 3); return(0); }