Пример #1
0
 public CastSpellCommand(CoCSharpPacketReader br)
 {
     X        = br.ReadInt32WithEndian();
     Y        = br.ReadInt32WithEndian();
     Spell    = (SpellData)br.ReadDataReference();
     Unknown1 = br.ReadUInt32WithEndian();
 }
Пример #2
0
 public PlaceAttackerCommand(CoCSharpPacketReader br)
 {
     X        = br.ReadInt32WithEndian();
     Y        = br.ReadInt32WithEndian();
     Unit     = (CharacterData)br.ReadDataReference();
     Unknown1 = br.ReadUInt32WithEndian();
 }
Пример #3
0
 public UpgradeUnitCommand(CoCSharpPacketReader br)
 {
     BuildingId = br.ReadInt32WithEndian();
     Unknown1   = br.ReadUInt32WithEndian();
     UnitData   = (CombatItemData)br.ReadDataReference();
     Unknown2   = br.ReadUInt32WithEndian();
 }
Пример #4
0
        public RemoveUnitsCommand(CoCSharpPacketReader br)
        {
            Unknown1       = br.ReadUInt32WithEndian();
            UnitTypesCount = br.ReadInt32WithEndian();

            UnitsToRemove = new List <UnitToRemove>();
            for (var i = 0; i < UnitTypesCount; i++)
            {
                var unit  = (CharacterData)br.ReadDataReference();
                var count = br.ReadInt32WithEndian();
                var level = br.ReadInt32WithEndian();
                UnitsToRemove.Add(new UnitToRemove {
                    Data = unit, Count = count, Level = level
                });
            }

            Unknown2 = br.ReadUInt32WithEndian();
        }