Example #1
0
 public void SetData(LegionData legionDta)
 {
     if (legionDta != null)
     {
         this.legionDta       = legionDta;
         this.legionLevelData = legionDta.levelData;
     }
 }
Example #2
0
        public void SetData(LegionData legionDta)
        {
            if (legionDta != null)
            {
                this.legionDta       = legionDta;
                this.legionLevelData = legionDta.levelData;

                propPanel.data = this.legionLevelData;

                Show();
            }
            else
            {
                Hide();
            }
        }
Example #3
0
        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;
        }