public static int ComputeAliveActorCount(IntPtr l) { int result; try { BattleTeam battleTeam = (BattleTeam)LuaObject.checkSelf(l); List <int> heroIds; LuaObject.checkType <List <int> >(l, 2, out heroIds); NpcCondition npcCondition; LuaObject.checkEnum <NpcCondition>(l, 3, out npcCondition); int i = battleTeam.ComputeAliveActorCount(heroIds, npcCondition); LuaObject.pushValue(l, true); LuaObject.pushValue(l, i); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }