예제 #1
0
        public PlayerBase()
        {
            this.ResourceCaps   = new DataSlots();
            this.Resources      = new ResourceSlots();
            this.Units          = new UnitSlots();
            this.Units2         = new UnitSlots();
            this.Spells         = new UnitSlots();
            this.UnitUpgrades   = new DataSlots();
            this.SpellUpgrades  = new DataSlots();
            this.HeroUpgrades   = new DataSlots();
            this.AllianceUnits  = new AllianceUnitSlots();
            this.AllianceSpells = new AllianceUnitSlots();

            this.HeroHealth = new DataSlots();
            this.HeroStates = new DataSlots();
            this.HeroModes  = new DataSlots();

            this.NpcMapProgress  = new NpcMapSlots();
            this.NpcLootedGold   = new DataSlots();
            this.NpcLootedElixir = new DataSlots();

            this.Variables = new VariableSlots();

            this.UnitPreset1 = new UnitSlots();
            this.UnitPreset2 = new UnitSlots();
            this.UnitPreset3 = new UnitSlots();
        }
예제 #2
0
        internal AllianceUnitSlots Copy()
        {
            AllianceUnitSlots Copy = this.MemberwiseClone() as AllianceUnitSlots;

            if (Copy != null)
            {
                foreach (UnitItem Item in Copy)
                {
                    Item.DonatorId = 0;
                }
            }

            return(Copy);
        }