static int _CreateOneByOne_FightRoomModel(IntPtr L) { int count = LuaDLL.lua_gettop(L); if (count == 0) { OneByOne.FightRoomModel obj = new OneByOne.FightRoomModel(); LuaScriptMgr.PushObject(L, obj); return(1); } else { LuaDLL.luaL_error(L, "invalid arguments to method: OneByOne.FightRoomModel.New"); } return(0); }
static int get_teamTwo(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); OneByOne.FightRoomModel obj = (OneByOne.FightRoomModel)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name teamTwo"); } else { LuaDLL.luaL_error(L, "attempt to index teamTwo on a nil value"); } } LuaScriptMgr.PushArray(L, obj.teamTwo); return(1); }
static int set_teamTwoBuildMap(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); OneByOne.FightRoomModel obj = (OneByOne.FightRoomModel)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name teamTwoBuildMap"); } else { LuaDLL.luaL_error(L, "attempt to index teamTwoBuildMap on a nil value"); } } obj.teamTwoBuildMap = LuaScriptMgr.GetArrayObject <OneByOne.FightBuildModel>(L, 3); return(0); }