static int _CreateCC_Runtime_PB_ProtoLeagueInfo(IntPtr L) { int count = LuaDLL.lua_gettop(L); if (count == 0) { CC.Runtime.PB.ProtoLeagueInfo obj = new CC.Runtime.PB.ProtoLeagueInfo(); LuaScriptMgr.PushObject(L, obj); return(1); } else { LuaDLL.luaL_error(L, "invalid arguments to method: CC.Runtime.PB.ProtoLeagueInfo.New"); } return(0); }
static int set_location(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); CC.Runtime.PB.ProtoLeagueInfo obj = (CC.Runtime.PB.ProtoLeagueInfo)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name location"); } else { LuaDLL.luaL_error(L, "attempt to index location on a nil value"); } } obj.location = (int)LuaScriptMgr.GetNumber(L, 3); return(0); }
static int set_need_prizeSpecified(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); CC.Runtime.PB.ProtoLeagueInfo obj = (CC.Runtime.PB.ProtoLeagueInfo)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name need_prizeSpecified"); } else { LuaDLL.luaL_error(L, "attempt to index need_prizeSpecified on a nil value"); } } obj.need_prizeSpecified = LuaScriptMgr.GetBoolean(L, 3); return(0); }
static int get_leagueIdSpecified(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); CC.Runtime.PB.ProtoLeagueInfo obj = (CC.Runtime.PB.ProtoLeagueInfo)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name leagueIdSpecified"); } else { LuaDLL.luaL_error(L, "attempt to index leagueIdSpecified on a nil value"); } } LuaScriptMgr.Push(L, obj.leagueIdSpecified); return(1); }