public CastSpellCommand(CoCSharpPacketReader br) { X = br.ReadInt32WithEndian(); Y = br.ReadInt32WithEndian(); Spell = (SpellData)br.ReadDataReference(); Unknown1 = br.ReadUInt32WithEndian(); }
public PlaceAttackerCommand(CoCSharpPacketReader br) { X = br.ReadInt32WithEndian(); Y = br.ReadInt32WithEndian(); Unit = (CharacterData)br.ReadDataReference(); Unknown1 = br.ReadUInt32WithEndian(); }
public UpgradeUnitCommand(CoCSharpPacketReader br) { BuildingId = br.ReadInt32WithEndian(); Unknown1 = br.ReadUInt32WithEndian(); UnitData = (CombatItemData)br.ReadDataReference(); Unknown2 = br.ReadUInt32WithEndian(); }
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(); }