Revert "Fixed some (many) "{ get; set; }""

This reverts commit 8393349316.
This commit is contained in:
Fabian
2017-11-05 22:26:25 +01:00
parent 8ed446ae7a
commit facab2dce6
77 changed files with 3697 additions and 3704 deletions
+42 -42
View File
@@ -43,10 +43,10 @@ namespace Game.Network.Packets
pet.Write(_worldPacket);
}
public ushort Trap { get; set; }
public ushort Trap;
bool HasJournalLock = true;
public List<BattlePetSlot> Slots { get; set; } = new List<BattlePetSlot>();
public List<BattlePetStruct> Pets { get; set; } = new List<BattlePetStruct>();
public List<BattlePetSlot> Slots = new List<BattlePetSlot>();
public List<BattlePetStruct> Pets = new List<BattlePetStruct>();
int MaxPets = 1000;
}
@@ -78,8 +78,8 @@ namespace Game.Network.Packets
pet.Write(_worldPacket);
}
public List<BattlePetStruct> Pets { get; set; } = new List<BattlePetStruct>();
public bool PetAdded { get; set; }
public List<BattlePetStruct> Pets = new List<BattlePetStruct>();
public bool PetAdded;
}
class PetBattleSlotUpdates : ServerPacket
@@ -97,9 +97,9 @@ namespace Game.Network.Packets
slot.Write(_worldPacket);
}
public List<BattlePetSlot> Slots { get; set; } = new List<BattlePetSlot>();
public bool AutoSlotted { get; set; }
public bool NewSlot { get; set; }
public List<BattlePetSlot> Slots = new List<BattlePetSlot>();
public bool AutoSlotted;
public bool NewSlot;
}
class BattlePetSetBattleSlot : ClientPacket
@@ -112,8 +112,8 @@ namespace Game.Network.Packets
Slot = _worldPacket.ReadUInt8();
}
public ObjectGuid PetGuid { get; set; }
public byte Slot { get; set; }
public ObjectGuid PetGuid;
public byte Slot;
}
class BattlePetModifyName : ClientPacket
@@ -141,9 +141,9 @@ namespace Game.Network.Packets
Name = _worldPacket.ReadString(nameLength);
}
public ObjectGuid PetGuid { get; set; }
public string Name { get; set; }
public DeclinedName Declined { get; set; }
public ObjectGuid PetGuid;
public string Name;
public DeclinedName Declined;
}
class BattlePetDeletePet : ClientPacket
@@ -155,7 +155,7 @@ namespace Game.Network.Packets
PetGuid = _worldPacket.ReadPackedGuid();
}
public ObjectGuid PetGuid { get; set; }
public ObjectGuid PetGuid;
}
class BattlePetSetFlags : ClientPacket
@@ -169,9 +169,9 @@ namespace Game.Network.Packets
ControlType = (FlagsControlType)_worldPacket.ReadBits<byte>(2);
}
public ObjectGuid PetGuid { get; set; }
public uint Flags { get; set; }
public FlagsControlType ControlType { get; set; }
public ObjectGuid PetGuid;
public uint Flags;
public FlagsControlType ControlType;
}
class CageBattlePet : ClientPacket
@@ -183,7 +183,7 @@ namespace Game.Network.Packets
PetGuid = _worldPacket.ReadPackedGuid();
}
public ObjectGuid PetGuid { get; set; }
public ObjectGuid PetGuid;
}
class BattlePetDeleted : ServerPacket
@@ -195,7 +195,7 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(PetGuid);
}
public ObjectGuid PetGuid { get; set; }
public ObjectGuid PetGuid;
}
class BattlePetErrorPacket : ServerPacket
@@ -208,8 +208,8 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(CreatureID);
}
public BattlePetError Result { get; set; }
public uint CreatureID { get; set; }
public BattlePetError Result;
public uint CreatureID;
}
class BattlePetSummon : ClientPacket
@@ -221,7 +221,7 @@ namespace Game.Network.Packets
PetGuid = _worldPacket.ReadPackedGuid();
}
public ObjectGuid PetGuid { get; set; }
public ObjectGuid PetGuid;
}
@@ -260,26 +260,26 @@ namespace Game.Network.Packets
public struct BattlePetOwnerInfo
{
public ObjectGuid Guid { get; set; }
public uint PlayerVirtualRealm { get; set; }
public uint PlayerNativeRealm { get; set; }
public ObjectGuid Guid;
public uint PlayerVirtualRealm;
public uint PlayerNativeRealm;
}
public ObjectGuid Guid { get; set; }
public uint Species { get; set; }
public uint CreatureID { get; set; }
public ObjectGuid Guid;
public uint Species;
public uint CreatureID;
public uint CollarID; // what's this?
public ushort Breed { get; set; }
public ushort Level { get; set; }
public ushort Exp { get; set; }
public ushort Flags { get; set; }
public uint Power { get; set; }
public uint Health { get; set; }
public uint MaxHealth { get; set; }
public uint Speed { get; set; }
public byte Quality { get; set; }
public Optional<BattlePetOwnerInfo> OwnerInfo { get; set; }
public string Name { get; set; }
public ushort Breed;
public ushort Level;
public ushort Exp;
public ushort Flags;
public uint Power;
public uint Health;
public uint MaxHealth;
public uint Speed;
public byte Quality;
public Optional<BattlePetOwnerInfo> OwnerInfo;
public string Name;
}
public class BattlePetSlot
@@ -293,9 +293,9 @@ namespace Game.Network.Packets
data.FlushBits();
}
public BattlePetStruct Pet { get; set; }
public BattlePetStruct Pet;
public uint CollarID; // what's this?
public byte Index { get; set; }
public bool Locked { get; set; } = true;
public byte Index;
public bool Locked = true;
}
}