public static bool IsSendService(int legionId, LegionType legionType) { bool isSend = true; if (legionId != War.ownLegionID) { if (legionType == LegionType.Player) { isSend = false; } else if (!War.isMainLegion) { isSend = false; } } return(isSend); }
public LegionData(int team, string name, LegionType type, bool aiSendArm, bool aiUplevel, bool aiSkill, bool produce) { this.legionId = team; this.name = name; this.type = type; this.aiSendArm = aiSendArm; this.aiUplevel = aiUplevel; this.aiSkill = aiSkill; this.produce = produce; if (this.legionId == War.ownLegionID) { levelData = new LegionLevelData_Own(); } else { levelData = new LegionLevelData(); } levelData.legionData = this; }