static int _CreateCC_Runtime_PB_ProtoRoleBattleInfo(IntPtr L) { int count = LuaDLL.lua_gettop(L); if (count == 0) { CC.Runtime.PB.ProtoRoleBattleInfo obj = new CC.Runtime.PB.ProtoRoleBattleInfo(); LuaScriptMgr.PushObject(L, obj); return(1); } else { LuaDLL.luaL_error(L, "invalid arguments to method: CC.Runtime.PB.ProtoRoleBattleInfo.New"); } return(0); }
static int get_battle_soldierSpecified(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); CC.Runtime.PB.ProtoRoleBattleInfo obj = (CC.Runtime.PB.ProtoRoleBattleInfo)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name battle_soldierSpecified"); } else { LuaDLL.luaL_error(L, "attempt to index battle_soldierSpecified on a nil value"); } } LuaScriptMgr.Push(L, obj.battle_soldierSpecified); return(1); }
static int set_battle_soldier(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); CC.Runtime.PB.ProtoRoleBattleInfo obj = (CC.Runtime.PB.ProtoRoleBattleInfo)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name battle_soldier"); } else { LuaDLL.luaL_error(L, "attempt to index battle_soldier on a nil value"); } } obj.battle_soldier = (int)LuaScriptMgr.GetNumber(L, 3); return(0); }