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
+4 -4
View File
@@ -53,10 +53,10 @@ namespace Game.Arenas
$"PreMatchMMR: {PreMatchMMR} PostMatchRating: {PostMatchRating} PostMatchMMR: {PostMatchMMR}"; $"PreMatchMMR: {PreMatchMMR} PostMatchRating: {PostMatchRating} PostMatchMMR: {PostMatchMMR}";
} }
public uint PreMatchRating { get; set; } uint PreMatchRating;
public uint PreMatchMMR { get; set; } uint PreMatchMMR;
public uint PostMatchRating { get; set; } uint PostMatchRating;
public uint PostMatchMMR { get; set; } uint PostMatchMMR;
} }
public class ArenaTeamScore public class ArenaTeamScore
+1 -3
View File
@@ -431,7 +431,7 @@ namespace Game.BattlePets
public List<BattlePetSlot> GetSlots() { return _slots; } public List<BattlePetSlot> GetSlots() { return _slots; }
WorldSession _owner; WorldSession _owner;
private ushort _trapLevel; ushort _trapLevel;
Dictionary<ulong, BattlePet> _pets = new Dictionary<ulong, BattlePet>(); Dictionary<ulong, BattlePet> _pets = new Dictionary<ulong, BattlePet>();
List<BattlePetSlot> _slots = new List<BattlePetSlot>(); List<BattlePetSlot> _slots = new List<BattlePetSlot>();
@@ -440,8 +440,6 @@ namespace Game.BattlePets
static MultiMap<uint, byte> _availableBreedsPerSpecies = new MultiMap<uint, byte>(); static MultiMap<uint, byte> _availableBreedsPerSpecies = new MultiMap<uint, byte>();
static Dictionary<uint, byte> _defaultQualityPerSpecies = new Dictionary<uint, byte>(); static Dictionary<uint, byte> _defaultQualityPerSpecies = new Dictionary<uint, byte>();
public ushort TrapLevel { get => _trapLevel; set => _trapLevel = value; }
public class BattlePet public class BattlePet
{ {
public void CalculateStats() public void CalculateStats()
+1 -1
View File
@@ -195,7 +195,7 @@ namespace Game.Chat
SetSpellModifier packet = new SetSpellModifier(ServerOpcodes.SetFlatSpellModifier); SetSpellModifier packet = new SetSpellModifier(ServerOpcodes.SetFlatSpellModifier);
SpellModifierInfo spellMod = new SpellModifierInfo(); SpellModifierInfo spellMod = new SpellModifierInfo();
spellMod.ModIndex = op; spellMod.ModIndex = op;
SpellModifierData modData = new SpellModifierData(); SpellModifierData modData;
modData.ClassIndex = spellflatid; modData.ClassIndex = spellflatid;
modData.ModifierValue = val; modData.ModifierValue = val;
spellMod.ModifierData.Add(modData); spellMod.ModifierData.Add(modData);
@@ -766,8 +766,5 @@ namespace Game.Entities
List<ObjectGuid> _insideUnits = new List<ObjectGuid>(); List<ObjectGuid> _insideUnits = new List<ObjectGuid>();
AreaTriggerAI _ai; AreaTriggerAI _ai;
public Vector3 RollPitchYaw { get => _rollPitchYaw; set => _rollPitchYaw = value; }
public Vector3 TargetRollPitchYaw { get => _targetRollPitchYaw; set => _targetRollPitchYaw = value; }
} }
} }
+3 -3
View File
@@ -315,9 +315,9 @@ namespace Game.Entities
struct PlayerDynamicFieldSpellModByLabel struct PlayerDynamicFieldSpellModByLabel
{ {
public uint Mod { get; set; } public uint Mod;
public float Value { get; set; } public float Value;
public uint Label { get; set; } public uint Label;
} }
public class SpecializationInfo public class SpecializationInfo
+1 -1
View File
@@ -418,7 +418,7 @@ namespace Game.Entities
{ {
InstanceSave save = pair.Value.save; InstanceSave save = pair.Value.save;
InstanceLockInfos lockInfos = new InstanceLockInfos(); InstanceLockInfos lockInfos;
lockInfos.InstanceID = save.GetInstanceId(); lockInfos.InstanceID = save.GetInstanceId();
lockInfos.MapID = save.GetMapId(); lockInfos.MapID = save.GetMapId();
+2 -2
View File
@@ -2735,8 +2735,8 @@ namespace Game.Entities
FlagArray128 mask = new FlagArray128(); FlagArray128 mask = new FlagArray128();
mask[j / 32] = 1u << (j % 32); mask[j / 32] = 1u << (j % 32);
SpellModifierData flatData = new SpellModifierData(); SpellModifierData flatData;
SpellModifierData pctData = new SpellModifierData(); SpellModifierData pctData;
flatData.ClassIndex = j; flatData.ClassIndex = j;
flatData.ModifierValue = 0.0f; flatData.ModifierValue = 0.0f;
-2
View File
@@ -138,7 +138,5 @@ namespace Game.Garrisons
Garrison i_garrison; Garrison i_garrison;
uint i_gameObjects; uint i_gameObjects;
uint i_creatures; uint i_creatures;
public uint I_creatures { get => i_creatures; set => i_creatures = value; }
} }
} }
+3 -3
View File
@@ -1020,7 +1020,7 @@ namespace Game.Guilds
for (byte tabId = 0; tabId < GuildConst.MaxBankTabs; ++tabId) for (byte tabId = 0; tabId < GuildConst.MaxBankTabs; ++tabId)
{ {
GuildPermissionsQueryResults.GuildRankTabPermissions tabPerm = new GuildPermissionsQueryResults.GuildRankTabPermissions(); GuildPermissionsQueryResults.GuildRankTabPermissions tabPerm;
tabPerm.Flags = (int)_GetRankBankTabRights(rankId, tabId); tabPerm.Flags = (int)_GetRankBankTabRights(rankId, tabId);
tabPerm.WithdrawItemLimit = _GetMemberRemainingSlots(member, tabId); tabPerm.WithdrawItemLimit = _GetMemberRemainingSlots(member, tabId);
queryResult.Tab.Add(tabPerm); queryResult.Tab.Add(tabPerm);
@@ -2169,7 +2169,7 @@ namespace Game.Guilds
{ {
for (byte i = 0; i < _GetPurchasedTabsSize(); ++i) for (byte i = 0; i < _GetPurchasedTabsSize(); ++i)
{ {
GuildBankTabInfo tabInfo = new GuildBankTabInfo(); GuildBankTabInfo tabInfo;
tabInfo.TabIndex = i; tabInfo.TabIndex = i;
tabInfo.Name = m_bankTabs[i].GetName(); tabInfo.Name = m_bankTabs[i].GetName();
tabInfo.Icon = m_bankTabs[i].GetIcon(); tabInfo.Icon = m_bankTabs[i].GetIcon();
@@ -2754,7 +2754,7 @@ namespace Game.Guilds
ObjectGuid playerGUID = ObjectGuid.Create(HighGuid.Player, m_playerGuid1); ObjectGuid playerGUID = ObjectGuid.Create(HighGuid.Player, m_playerGuid1);
ObjectGuid otherGUID = ObjectGuid.Create(HighGuid.Player, m_playerGuid2); ObjectGuid otherGUID = ObjectGuid.Create(HighGuid.Player, m_playerGuid2);
GuildEventEntry eventEntry = new GuildEventEntry(); GuildEventEntry eventEntry;
eventEntry.PlayerGUID = playerGUID; eventEntry.PlayerGUID = playerGUID;
eventEntry.OtherGUID = otherGUID; eventEntry.OtherGUID = otherGUID;
eventEntry.TransactionType = (byte)m_eventType; eventEntry.TransactionType = (byte)m_eventType;
+2 -2
View File
@@ -57,7 +57,7 @@ namespace Game
var playerEvents = Global.CalendarMgr.GetPlayerEvents(guid); var playerEvents = Global.CalendarMgr.GetPlayerEvents(guid);
foreach (var calendarEvent in playerEvents) foreach (var calendarEvent in playerEvents)
{ {
CalendarSendCalendarEventInfo eventInfo = new CalendarSendCalendarEventInfo(); CalendarSendCalendarEventInfo eventInfo;
eventInfo.EventID = calendarEvent.EventId; eventInfo.EventID = calendarEvent.EventId;
eventInfo.Date = calendarEvent.Date; eventInfo.Date = calendarEvent.Date;
Guild guild = Global.GuildMgr.GetGuildById(calendarEvent.GuildId); Guild guild = Global.GuildMgr.GetGuildById(calendarEvent.GuildId);
@@ -78,7 +78,7 @@ namespace Game
{ {
if (pair.Value.perm) if (pair.Value.perm)
{ {
CalendarSendCalendarRaidLockoutInfo lockoutInfo = new CalendarSendCalendarRaidLockoutInfo(); CalendarSendCalendarRaidLockoutInfo lockoutInfo;
InstanceSave save = pair.Value.save; InstanceSave save = pair.Value.save;
lockoutInfo.MapID = (int)save.GetMapId(); lockoutInfo.MapID = (int)save.GetMapId();
+2 -2
View File
@@ -375,7 +375,7 @@ namespace Game
// not let move dead pet in slot // not let move dead pet in slot
if (pet && pet.IsAlive() && pet.getPetType() == PetType.Hunter) if (pet && pet.IsAlive() && pet.getPetType() == PetType.Hunter)
{ {
PetStableInfo stableEntry = new PetStableInfo(); PetStableInfo stableEntry;// = new PetStableInfo();
stableEntry.PetSlot = petSlot; stableEntry.PetSlot = petSlot;
stableEntry.PetNumber = pet.GetCharmInfo().GetPetNumber(); stableEntry.PetNumber = pet.GetCharmInfo().GetPetNumber();
stableEntry.CreatureID = pet.GetEntry(); stableEntry.CreatureID = pet.GetEntry();
@@ -392,7 +392,7 @@ namespace Game
{ {
do do
{ {
PetStableInfo stableEntry = new PetStableInfo(); PetStableInfo stableEntry;// = new PetStableInfo();
stableEntry.PetSlot = petSlot; stableEntry.PetSlot = petSlot;
stableEntry.PetNumber = result.Read<uint>(1); // petnumber stableEntry.PetNumber = result.Read<uint>(1); // petnumber
+1 -1
View File
@@ -224,7 +224,7 @@ namespace Game
if (pageText == null) if (pageText == null)
break; break;
QueryPageTextResponse.PageTextInfo page = new QueryPageTextResponse.PageTextInfo(); QueryPageTextResponse.PageTextInfo page;
page.ID = pageID; page.ID = pageID;
page.NextPageID = pageText.NextPageID; page.NextPageID = pageText.NextPageID;
page.Text = pageText.Text; page.Text = pageText.Text;
+1 -1
View File
@@ -164,7 +164,7 @@ namespace Game
item.GetModifier(ItemModifier.ScalingStatDistributionFixedLevel), item.GetModifier(ItemModifier.ArtifactKnowledgeLevel), item.GetModifier(ItemModifier.ScalingStatDistributionFixedLevel), item.GetModifier(ItemModifier.ArtifactKnowledgeLevel),
(byte)item.GetUInt32Value(ItemFields.Context), item.GetDynamicValues(ItemDynamicFields.BonusListIds)); (byte)item.GetUInt32Value(ItemFields.Context), item.GetDynamicValues(ItemDynamicFields.BonusListIds));
VoidItem voidItem = new VoidItem(); VoidItem voidItem;
voidItem.Guid = ObjectGuid.Create(HighGuid.Item, itemVS.ItemId); voidItem.Guid = ObjectGuid.Create(HighGuid.Item, itemVS.ItemId);
voidItem.Creator = item.GetGuidValue(ItemFields.Creator); voidItem.Creator = item.GetGuidValue(ItemFields.Creator);
voidItem.Item = new ItemInstance(itemVS); voidItem.Item = new ItemInstance(itemVS);
@@ -31,7 +31,7 @@ namespace Game.Network.Packets
Data.Write(_worldPacket); Data.Write(_worldPacket);
} }
public AllAchievements Data { get; set; } = new AllAchievements(); public AllAchievements Data = new AllAchievements();
} }
public class RespondInspectAchievements : ServerPacket public class RespondInspectAchievements : ServerPacket
@@ -44,8 +44,8 @@ namespace Game.Network.Packets
Data.Write(_worldPacket); Data.Write(_worldPacket);
} }
public ObjectGuid Player { get; set; } public ObjectGuid Player;
public AllAchievements Data { get; set; } = new AllAchievements(); public AllAchievements Data = new AllAchievements();
} }
public class CriteriaUpdate : ServerPacket public class CriteriaUpdate : ServerPacket
@@ -63,13 +63,13 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(CreationTime); _worldPacket.WriteUInt32(CreationTime);
} }
public uint CriteriaID { get; set; } public uint CriteriaID;
public ulong Quantity { get; set; } public ulong Quantity;
public ObjectGuid PlayerGUID { get; set; } public ObjectGuid PlayerGUID;
public uint Flags { get; set; } public uint Flags;
public long CurrentTime { get; set; } public long CurrentTime;
public uint ElapsedTime { get; set; } public uint ElapsedTime;
public uint CreationTime { get; set; } public uint CreationTime;
} }
public class CriteriaDeleted : ServerPacket public class CriteriaDeleted : ServerPacket
@@ -81,7 +81,7 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(CriteriaID); _worldPacket.WriteUInt32(CriteriaID);
} }
public uint CriteriaID { get; set; } public uint CriteriaID;
} }
public class AchievementDeleted : ServerPacket public class AchievementDeleted : ServerPacket
@@ -94,7 +94,7 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(Immunities); _worldPacket.WriteUInt32(Immunities);
} }
public uint AchievementID { get; set; } public uint AchievementID;
public uint Immunities; // this is just garbage, not used by client public uint Immunities; // this is just garbage, not used by client
} }
@@ -114,13 +114,13 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public ObjectGuid Earner { get; set; } public ObjectGuid Earner;
public uint EarnerNativeRealm { get; set; } public uint EarnerNativeRealm;
public uint EarnerVirtualRealm { get; set; } public uint EarnerVirtualRealm;
public uint AchievementID { get; set; } public uint AchievementID;
public long Time { get; set; } public long Time;
public bool Initial { get; set; } public bool Initial;
public ObjectGuid Sender { get; set; } public ObjectGuid Sender;
} }
public class ServerFirstAchievement : ServerPacket public class ServerFirstAchievement : ServerPacket
@@ -136,10 +136,10 @@ namespace Game.Network.Packets
_worldPacket.WriteString(Name); _worldPacket.WriteString(Name);
} }
public ObjectGuid PlayerGUID { get; set; } public ObjectGuid PlayerGUID;
public string Name { get; set; } = ""; public string Name = "";
public uint AchievementID { get; set; } public uint AchievementID;
public bool GuildAchievement { get; set; } public bool GuildAchievement;
} }
public class GuildCriteriaUpdate : ServerPacket public class GuildCriteriaUpdate : ServerPacket
@@ -162,7 +162,7 @@ namespace Game.Network.Packets
} }
} }
public List<GuildCriteriaProgress> Progress { get; set; } = new List<GuildCriteriaProgress>(); public List<GuildCriteriaProgress> Progress = new List<GuildCriteriaProgress>();
} }
public class GuildCriteriaDeleted : ServerPacket public class GuildCriteriaDeleted : ServerPacket
@@ -175,8 +175,8 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(CriteriaID); _worldPacket.WriteUInt32(CriteriaID);
} }
public ObjectGuid GuildGUID { get; set; } public ObjectGuid GuildGUID;
public uint CriteriaID { get; set; } public uint CriteriaID;
} }
public class GuildSetFocusedAchievement : ClientPacket public class GuildSetFocusedAchievement : ClientPacket
@@ -188,7 +188,7 @@ namespace Game.Network.Packets
AchievementID = _worldPacket.ReadUInt32(); AchievementID = _worldPacket.ReadUInt32();
} }
public uint AchievementID { get; set; } public uint AchievementID;
} }
public class GuildAchievementDeleted : ServerPacket public class GuildAchievementDeleted : ServerPacket
@@ -202,9 +202,9 @@ namespace Game.Network.Packets
_worldPacket.WritePackedTime(TimeDeleted); _worldPacket.WritePackedTime(TimeDeleted);
} }
public ObjectGuid GuildGUID { get; set; } public ObjectGuid GuildGUID;
public uint AchievementID { get; set; } public uint AchievementID;
public long TimeDeleted { get; set; } public long TimeDeleted;
} }
public class GuildAchievementEarned : ServerPacket public class GuildAchievementEarned : ServerPacket
@@ -218,9 +218,9 @@ namespace Game.Network.Packets
_worldPacket.WritePackedTime(TimeEarned); _worldPacket.WritePackedTime(TimeEarned);
} }
public uint AchievementID { get; set; } public uint AchievementID;
public ObjectGuid GuildGUID { get; set; } public ObjectGuid GuildGUID;
public long TimeEarned { get; set; } public long TimeEarned;
} }
public class AllGuildAchievements : ServerPacket public class AllGuildAchievements : ServerPacket
@@ -235,7 +235,7 @@ namespace Game.Network.Packets
earned.Write(_worldPacket); earned.Write(_worldPacket);
} }
public List<EarnedAchievement> Earned { get; set; } = new List<EarnedAchievement>(); public List<EarnedAchievement> Earned = new List<EarnedAchievement>();
} }
class GuildGetAchievementMembers : ClientPacket class GuildGetAchievementMembers : ClientPacket
@@ -249,9 +249,9 @@ namespace Game.Network.Packets
AchievementID = _worldPacket.ReadUInt32(); AchievementID = _worldPacket.ReadUInt32();
} }
public ObjectGuid PlayerGUID { get; set; } public ObjectGuid PlayerGUID;
public ObjectGuid GuildGUID { get; set; } public ObjectGuid GuildGUID;
public uint AchievementID { get; set; } public uint AchievementID;
} }
class GuildAchievementMembers : ServerPacket class GuildAchievementMembers : ServerPacket
@@ -267,9 +267,9 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(guid); _worldPacket.WritePackedGuid(guid);
} }
public ObjectGuid GuildGUID { get; set; } public ObjectGuid GuildGUID;
public uint AchievementID { get; set; } public uint AchievementID;
public List<ObjectGuid> Member { get; set; } = new List<ObjectGuid>(); public List<ObjectGuid> Member = new List<ObjectGuid>();
} }
//Structs //Structs
@@ -284,11 +284,11 @@ namespace Game.Network.Packets
data.WriteUInt32(NativeRealmAddress); data.WriteUInt32(NativeRealmAddress);
} }
public uint Id { get; set; } public uint Id;
public long Date { get; set; } public long Date;
public ObjectGuid Owner { get; set; } public ObjectGuid Owner;
public uint VirtualRealmAddress { get; set; } public uint VirtualRealmAddress;
public uint NativeRealmAddress { get; set; } public uint NativeRealmAddress;
} }
public struct CriteriaProgressPkt public struct CriteriaProgressPkt
@@ -305,24 +305,24 @@ namespace Game.Network.Packets
data.FlushBits(); data.FlushBits();
} }
public uint Id { get; set; } public uint Id;
public ulong Quantity { get; set; } public ulong Quantity;
public ObjectGuid Player { get; set; } public ObjectGuid Player;
public uint Flags { get; set; } public uint Flags;
public long Date { get; set; } public long Date;
public uint TimeFromStart { get; set; } public uint TimeFromStart;
public uint TimeFromCreate { get; set; } public uint TimeFromCreate;
} }
public struct GuildCriteriaProgress public struct GuildCriteriaProgress
{ {
public uint CriteriaID { get; set; } public uint CriteriaID;
public uint DateCreated { get; set; } public uint DateCreated;
public uint DateStarted { get; set; } public uint DateStarted;
public long DateUpdated { get; set; } public long DateUpdated;
public ulong Quantity { get; set; } public ulong Quantity;
public ObjectGuid PlayerGUID { get; set; } public ObjectGuid PlayerGUID;
public int Flags { get; set; } public int Flags;
} }
public class AllAchievements public class AllAchievements
@@ -339,7 +339,7 @@ namespace Game.Network.Packets
progress.Write(data); progress.Write(data);
} }
public List<EarnedAchievement> Earned { get; set; } = new List<EarnedAchievement>(); public List<EarnedAchievement> Earned = new List<EarnedAchievement>();
public List<CriteriaProgressPkt> Progress { get; set; } = new List<CriteriaProgressPkt>(); public List<CriteriaProgressPkt> Progress = new List<CriteriaProgressPkt>();
} }
} }
@@ -35,9 +35,9 @@ namespace Game.Network.Packets
FromClient = _worldPacket.HasBit(); FromClient = _worldPacket.HasBit();
} }
public uint AreaTriggerID { get; set; } public uint AreaTriggerID;
public bool Entered { get; set; } public bool Entered;
public bool FromClient { get; set; } public bool FromClient;
} }
class AreaTriggerDenied : ServerPacket class AreaTriggerDenied : ServerPacket
@@ -51,8 +51,8 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public int AreaTriggerID { get; set; } public int AreaTriggerID;
public bool Entered { get; set; } public bool Entered;
} }
class AreaTriggerNoCorpse : ServerPacket class AreaTriggerNoCorpse : ServerPacket
@@ -72,8 +72,8 @@ namespace Game.Network.Packets
AreaTriggerSpline.Write(_worldPacket); AreaTriggerSpline.Write(_worldPacket);
} }
public AreaTriggerSplineInfo AreaTriggerSpline { get; set; } = new AreaTriggerSplineInfo(); public AreaTriggerSplineInfo AreaTriggerSpline = new AreaTriggerSplineInfo();
public ObjectGuid TriggerGUID { get; set; } public ObjectGuid TriggerGUID;
} }
class AreaTriggerReShape : ServerPacket class AreaTriggerReShape : ServerPacket
@@ -97,7 +97,7 @@ namespace Game.Network.Packets
public Optional<AreaTriggerSplineInfo> AreaTriggerSpline; public Optional<AreaTriggerSplineInfo> AreaTriggerSpline;
public Optional<AreaTriggerUnkTypeInfo> AreaTriggerUnkType; public Optional<AreaTriggerUnkTypeInfo> AreaTriggerUnkType;
public ObjectGuid TriggerGUID { get; set; } public ObjectGuid TriggerGUID;
} }
//Structs //Structs
@@ -115,9 +115,9 @@ namespace Game.Network.Packets
data.WriteVector3(point); data.WriteVector3(point);
} }
public uint TimeToTarget { get; set; } public uint TimeToTarget;
public uint ElapsedTimeForMovement { get; set; } public uint ElapsedTimeForMovement;
public List<Vector3> Points { get; set; } = new List<Vector3>(); public List<Vector3> Points = new List<Vector3>();
} }
struct AreaTriggerUnkTypeInfo struct AreaTriggerUnkTypeInfo
@@ -144,16 +144,16 @@ namespace Game.Network.Packets
data.WriteVector3(Center.Value); data.WriteVector3(Center.Value);
} }
public Optional<ObjectGuid> AreaTriggerUnkGUID { get; set; } public Optional<ObjectGuid> AreaTriggerUnkGUID;
public Optional<Vector3> Center { get; set; } public Optional<Vector3> Center;
public bool UnkBit1 { get; set; } public bool UnkBit1;
public bool UnkBit2 { get; set; } public bool UnkBit2;
public uint UnkUInt1 { get; set; } public uint UnkUInt1;
public int UnkInt1 { get; set; } public int UnkInt1;
public uint UnkUInt2 { get; set; } public uint UnkUInt2;
public float Radius { get; set; } public float Radius;
public float BlendFromRadius { get; set; } public float BlendFromRadius;
public float InitialAngel { get; set; } public float InitialAngel;
public float ZOffset { get; set; } public float ZOffset;
} }
} }
+17 -17
View File
@@ -33,21 +33,21 @@ namespace Game.Network.Packets
var powerCount = _worldPacket.ReadUInt32(); var powerCount = _worldPacket.ReadUInt32();
for (var i = 0; i < powerCount; ++i) for (var i = 0; i < powerCount; ++i)
{ {
ArtifactPowerChoice artifactPowerChoice = new ArtifactPowerChoice(); ArtifactPowerChoice artifactPowerChoice;
artifactPowerChoice.ArtifactPowerID = _worldPacket.ReadUInt32(); artifactPowerChoice.ArtifactPowerID = _worldPacket.ReadUInt32();
artifactPowerChoice.Rank = _worldPacket.ReadUInt8(); artifactPowerChoice.Rank = _worldPacket.ReadUInt8();
PowerChoices.Add(artifactPowerChoice); PowerChoices.Add(artifactPowerChoice);
} }
} }
public ObjectGuid ArtifactGUID { get; set; } public ObjectGuid ArtifactGUID;
public ObjectGuid ForgeGUID { get; set; } public ObjectGuid ForgeGUID;
public Array<ArtifactPowerChoice> PowerChoices { get; set; } = new Array<ArtifactPowerChoice>(1); public Array<ArtifactPowerChoice> PowerChoices = new Array<ArtifactPowerChoice>(1);
public struct ArtifactPowerChoice public struct ArtifactPowerChoice
{ {
public uint ArtifactPowerID { get; set; } public uint ArtifactPowerID;
public byte Rank { get; set; } public byte Rank;
} }
} }
@@ -62,9 +62,9 @@ namespace Game.Network.Packets
ArtifactAppearanceID = _worldPacket.ReadInt32(); ArtifactAppearanceID = _worldPacket.ReadInt32();
} }
public ObjectGuid ArtifactGUID { get; set; } public ObjectGuid ArtifactGUID;
public ObjectGuid ForgeGUID { get; set; } public ObjectGuid ForgeGUID;
public int ArtifactAppearanceID { get; set; } public int ArtifactAppearanceID;
} }
class ConfirmArtifactRespec : ClientPacket class ConfirmArtifactRespec : ClientPacket
@@ -77,8 +77,8 @@ namespace Game.Network.Packets
NpcGUID = _worldPacket.ReadPackedGuid(); NpcGUID = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid ArtifactGUID { get; set; } public ObjectGuid ArtifactGUID;
public ObjectGuid NpcGUID { get; set; } public ObjectGuid NpcGUID;
} }
class ArtifactForgeOpened : ServerPacket class ArtifactForgeOpened : ServerPacket
@@ -91,8 +91,8 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(ForgeGUID); _worldPacket.WritePackedGuid(ForgeGUID);
} }
public ObjectGuid ArtifactGUID { get; set; } public ObjectGuid ArtifactGUID;
public ObjectGuid ForgeGUID { get; set; } public ObjectGuid ForgeGUID;
} }
class ArtifactRespecConfirm : ServerPacket class ArtifactRespecConfirm : ServerPacket
@@ -105,8 +105,8 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(NpcGUID); _worldPacket.WritePackedGuid(NpcGUID);
} }
public ObjectGuid ArtifactGUID { get; set; } public ObjectGuid ArtifactGUID;
public ObjectGuid NpcGUID { get; set; } public ObjectGuid NpcGUID;
} }
class ArtifactXpGain : ServerPacket class ArtifactXpGain : ServerPacket
@@ -119,7 +119,7 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt64(Amount); _worldPacket.WriteUInt64(Amount);
} }
public ObjectGuid ArtifactGUID { get; set; } public ObjectGuid ArtifactGUID;
public ulong Amount { get; set; } public ulong Amount;
} }
} }
+102 -102
View File
@@ -30,7 +30,7 @@ namespace Game.Network.Packets
Guid = _worldPacket.ReadPackedGuid(); Guid = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
} }
class AuctionHelloResponse : ServerPacket class AuctionHelloResponse : ServerPacket
@@ -44,8 +44,8 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
public bool OpenForBusiness { get; set; } = true; public bool OpenForBusiness = true;
} }
class AuctionCommandResult : ServerPacket class AuctionCommandResult : ServerPacket
@@ -75,10 +75,10 @@ namespace Game.Network.Packets
} }
public uint AuctionItemID; // the id of the auction that triggered this notification public uint AuctionItemID; // the id of the auction that triggered this notification
public AuctionAction Command { get; set; } public AuctionAction Command;
public AuctionError ErrorCode { get; set; } public AuctionError ErrorCode;
public ulong Money; // the amount of money that the player bid in copper public ulong Money; // the amount of money that the player bid in copper
public AuctionError BagResult { get; set; } public AuctionError BagResult;
public ObjectGuid Guid; // the GUID of the bidder for this auction. public ObjectGuid Guid; // the GUID of the bidder for this auction.
public ulong MinIncrement; // the sum of outbid is (1% of current bid) * 5, if the bid is too small, then this value is 1 copper. public ulong MinIncrement; // the sum of outbid is (1% of current bid) * 5, if the bid is too small, then this value is 1 copper.
} }
@@ -99,23 +99,23 @@ namespace Game.Network.Packets
for (byte i = 0; i < ItemsCount; i++) for (byte i = 0; i < ItemsCount; i++)
{ {
AuctionItemForSale item = new AuctionItemForSale(); AuctionItemForSale item;
item.Guid = _worldPacket.ReadPackedGuid(); item.Guid = _worldPacket.ReadPackedGuid();
item.UseCount = _worldPacket.ReadUInt32(); item.UseCount = _worldPacket.ReadUInt32();
Items.Add(item); Items.Add(item);
} }
} }
public ulong BuyoutPrice { get; set; } public ulong BuyoutPrice;
public ObjectGuid Auctioneer { get; set; } public ObjectGuid Auctioneer;
public ulong MinBid { get; set; } public ulong MinBid;
public uint RunTime { get; set; } public uint RunTime;
public Array<AuctionItemForSale> Items { get; set; } = new Array<AuctionItemForSale>(32); public Array<AuctionItemForSale> Items = new Array<AuctionItemForSale>(32);
public struct AuctionItemForSale public struct AuctionItemForSale
{ {
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
public uint UseCount { get; set; } public uint UseCount;
} }
} }
@@ -130,9 +130,9 @@ namespace Game.Network.Packets
BidAmount = _worldPacket.ReadUInt64(); BidAmount = _worldPacket.ReadUInt64();
} }
public ObjectGuid Auctioneer { get; set; } public ObjectGuid Auctioneer;
public ulong BidAmount { get; set; } public ulong BidAmount;
public uint AuctionItemID { get; set; } public uint AuctionItemID;
} }
class AuctionListBidderItems : ClientPacket class AuctionListBidderItems : ClientPacket
@@ -153,9 +153,9 @@ namespace Game.Network.Packets
} }
} }
public uint Offset { get; set; } public uint Offset;
public List<uint> AuctionItemIDs { get; set; } = new List<uint>(); public List<uint> AuctionItemIDs = new List<uint>();
public ObjectGuid Auctioneer { get; set; } public ObjectGuid Auctioneer;
} }
class AuctionRemoveItem : ClientPacket class AuctionRemoveItem : ClientPacket
@@ -168,8 +168,8 @@ namespace Game.Network.Packets
AuctionItemID = _worldPacket.ReadInt32(); AuctionItemID = _worldPacket.ReadInt32();
} }
public ObjectGuid Auctioneer { get; set; } public ObjectGuid Auctioneer;
public int AuctionItemID { get; set; } public int AuctionItemID;
} }
class AuctionReplicateItems : ClientPacket class AuctionReplicateItems : ClientPacket
@@ -185,11 +185,11 @@ namespace Game.Network.Packets
ChangeNumberTombstone = _worldPacket.ReadUInt32(); ChangeNumberTombstone = _worldPacket.ReadUInt32();
} }
public ObjectGuid Auctioneer { get; set; } public ObjectGuid Auctioneer;
public uint Count { get; set; } public uint Count;
public uint ChangeNumberGlobal { get; set; } public uint ChangeNumberGlobal;
public uint ChangeNumberCursor { get; set; } public uint ChangeNumberCursor;
public uint ChangeNumberTombstone { get; set; } public uint ChangeNumberTombstone;
} }
class AuctionListPendingSales : ClientPacket class AuctionListPendingSales : ClientPacket
@@ -215,10 +215,10 @@ namespace Game.Network.Packets
item.Write(_worldPacket); item.Write(_worldPacket);
} }
public uint DesiredDelay { get; set; } public uint DesiredDelay;
public List<AuctionItem> Items { get; set; } = new List<AuctionItem>(); public List<AuctionItem> Items = new List<AuctionItem>();
public bool OnlyUsable { get; set; } = true; public bool OnlyUsable = true;
public uint TotalCount { get; set; } public uint TotalCount;
} }
public class AuctionListOwnerItemsResult : ServerPacket public class AuctionListOwnerItemsResult : ServerPacket
@@ -235,9 +235,9 @@ namespace Game.Network.Packets
item.Write(_worldPacket); item.Write(_worldPacket);
} }
public uint DesiredDelay { get; set; } public uint DesiredDelay;
public uint TotalCount; public uint TotalCount;
public List<AuctionItem> Items { get; set; } = new List<AuctionItem>(); public List<AuctionItem> Items = new List<AuctionItem>();
} }
public class AuctionListBidderItemsResult : ServerPacket public class AuctionListBidderItemsResult : ServerPacket
@@ -254,9 +254,9 @@ namespace Game.Network.Packets
item.Write(_worldPacket); item.Write(_worldPacket);
} }
public uint DesiredDelay { get; set; } public uint DesiredDelay;
public uint TotalCount; public uint TotalCount;
public List<AuctionItem> Items { get; set; } = new List<AuctionItem>(); public List<AuctionItem> Items = new List<AuctionItem>();
} }
class AuctionListOwnerItems : ClientPacket class AuctionListOwnerItems : ClientPacket
@@ -269,8 +269,8 @@ namespace Game.Network.Packets
Offset = _worldPacket.ReadUInt32(); Offset = _worldPacket.ReadUInt32();
} }
public ObjectGuid Auctioneer { get; set; } public ObjectGuid Auctioneer;
public uint Offset { get; set; } public uint Offset;
} }
class AuctionListItems : ClientPacket class AuctionListItems : ClientPacket
@@ -301,7 +301,7 @@ namespace Game.Network.Packets
classFilter.SubClassFilters = new Array<ClassFilter.SubClassFilter>(_worldPacket.ReadBits<int>(5)); classFilter.SubClassFilters = new Array<ClassFilter.SubClassFilter>(_worldPacket.ReadBits<int>(5));
for (int x = 0; x < classFilter.SubClassFilters.Capacity; ++x) for (int x = 0; x < classFilter.SubClassFilters.Capacity; ++x)
{ {
ClassFilter.SubClassFilter subClassFilter = new ClassFilter.SubClassFilter(); ClassFilter.SubClassFilter subClassFilter;
subClassFilter.ItemSubclass = _worldPacket.ReadInt32(); subClassFilter.ItemSubclass = _worldPacket.ReadInt32();
subClassFilter.InvTypeMask = _worldPacket.ReadUInt32(); subClassFilter.InvTypeMask = _worldPacket.ReadUInt32();
classFilter.SubClassFilters.Add(subClassFilter); classFilter.SubClassFilters.Add(subClassFilter);
@@ -312,43 +312,43 @@ namespace Game.Network.Packets
_worldPacket.Skip(4); // DataSize = (SortCount * 2) _worldPacket.Skip(4); // DataSize = (SortCount * 2)
for (int i = 0; i < SortCount; i++) for (int i = 0; i < SortCount; i++)
{ {
AuctionListItems.Sort sort = new Sort(); AuctionListItems.Sort sort;
sort.Type = _worldPacket.ReadUInt8(); sort.Type = _worldPacket.ReadUInt8();
sort.Direction = _worldPacket.ReadUInt8(); sort.Direction = _worldPacket.ReadUInt8();
DataSort.Add(sort); DataSort.Add(sort);
} }
} }
public uint Offset { get; set; } public uint Offset;
public ObjectGuid Auctioneer { get; set; } public ObjectGuid Auctioneer;
public byte MinLevel { get; set; } = 1; public byte MinLevel = 1;
public byte MaxLevel { get; set; } = 100; public byte MaxLevel = 100;
public uint Quality { get; set; } public uint Quality;
public byte SortCount { get; set; } public byte SortCount;
public Array<byte> KnownPets { get; set; } public Array<byte> KnownPets;
public sbyte MaxPetLevel { get; set; } public sbyte MaxPetLevel;
public string Name { get; set; } = ""; public string Name = "";
public Array<ClassFilter> ClassFilters { get; set; } = new Array<ClassFilter>(7); public Array<ClassFilter> ClassFilters = new Array<ClassFilter>(7);
public bool ExactMatch { get; set; } = true; public bool ExactMatch = true;
public bool OnlyUsable { get; set; } public bool OnlyUsable;
public List<Sort> DataSort { get; set; } = new List<Sort>(); public List<Sort> DataSort = new List<Sort>();
public struct Sort public struct Sort
{ {
public byte Type { get; set; } public byte Type;
public byte Direction { get; set; } public byte Direction;
} }
public class ClassFilter public class ClassFilter
{ {
public struct SubClassFilter public struct SubClassFilter
{ {
public int ItemSubclass { get; set; } public int ItemSubclass;
public uint InvTypeMask { get; set; } public uint InvTypeMask;
} }
public int ItemClass { get; set; } public int ItemClass;
public Array<SubClassFilter> SubClassFilters { get; set; } = new Array<SubClassFilter>(31); public Array<SubClassFilter> SubClassFilters = new Array<SubClassFilter>(31);
} }
} }
@@ -365,8 +365,8 @@ namespace Game.Network.Packets
mail.Write(_worldPacket); mail.Write(_worldPacket);
} }
public List<MailListEntry> Mails { get; set; } = new List<MailListEntry>(); public List<MailListEntry> Mails = new List<MailListEntry>();
public int TotalNumRecords { get; set; } public int TotalNumRecords;
} }
class AuctionClosedNotification : ServerPacket class AuctionClosedNotification : ServerPacket
@@ -381,9 +381,9 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public AuctionOwnerNotification Info { get; set; } public AuctionOwnerNotification Info;
public float ProceedsMailDelay { get; set; } public float ProceedsMailDelay;
public bool Sold { get; set; } = true; public bool Sold = true;
} }
class AuctionOwnerBidNotification : ServerPacket class AuctionOwnerBidNotification : ServerPacket
@@ -397,9 +397,9 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(Bidder); _worldPacket.WritePackedGuid(Bidder);
} }
public AuctionOwnerNotification Info { get; set; } public AuctionOwnerNotification Info;
public ObjectGuid Bidder { get; set; } public ObjectGuid Bidder;
public ulong MinIncrement { get; set; } public ulong MinIncrement;
} }
class AuctionWonNotification : ServerPacket class AuctionWonNotification : ServerPacket
@@ -411,7 +411,7 @@ namespace Game.Network.Packets
Info.Write(_worldPacket); Info.Write(_worldPacket);
} }
public AuctionBidderNotification Info { get; set; } public AuctionBidderNotification Info;
} }
class AuctionOutBidNotification : ServerPacket class AuctionOutBidNotification : ServerPacket
@@ -425,9 +425,9 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt64(MinIncrement); _worldPacket.WriteUInt64(MinIncrement);
} }
public AuctionBidderNotification Info { get; set; } public AuctionBidderNotification Info;
public ulong BidAmount { get; set; } public ulong BidAmount;
public ulong MinIncrement { get; set; } public ulong MinIncrement;
} }
class AuctionReplicateResponse : ServerPacket class AuctionReplicateResponse : ServerPacket
@@ -447,12 +447,12 @@ namespace Game.Network.Packets
item.Write(_worldPacket); item.Write(_worldPacket);
} }
public uint ChangeNumberCursor { get; set; } public uint ChangeNumberCursor;
public uint ChangeNumberGlobal { get; set; } public uint ChangeNumberGlobal;
public uint DesiredDelay { get; set; } public uint DesiredDelay;
public uint ChangeNumberTombstone { get; set; } public uint ChangeNumberTombstone;
public uint Result { get; set; } public uint Result;
public List<AuctionItem> Items { get; set; } = new List<AuctionItem>(); public List<AuctionItem> Items = new List<AuctionItem>();
} }
public class AuctionItem public class AuctionItem
@@ -496,26 +496,26 @@ namespace Game.Network.Packets
} }
} }
public ItemInstance Item { get; set; } public ItemInstance Item;
public int Count { get; set; } public int Count;
public int Charges { get; set; } public int Charges;
public List<ItemEnchantData> Enchantments { get; set; } = new List<ItemEnchantData>(); public List<ItemEnchantData> Enchantments = new List<ItemEnchantData>();
public int Flags { get; set; } public int Flags;
public int AuctionItemID { get; set; } public int AuctionItemID;
public ObjectGuid Owner { get; set; } public ObjectGuid Owner;
public ulong MinBid { get; set; } public ulong MinBid;
public ulong MinIncrement { get; set; } public ulong MinIncrement;
public ulong BuyoutPrice { get; set; } public ulong BuyoutPrice;
public int DurationLeft { get; set; } public int DurationLeft;
public byte DeleteReason { get; set; } public byte DeleteReason;
public bool CensorServerSideInfo { get; set; } public bool CensorServerSideInfo;
public bool CensorBidInfo { get; set; } public bool CensorBidInfo;
public ObjectGuid ItemGuid { get; set; } public ObjectGuid ItemGuid;
public ObjectGuid OwnerAccountID { get; set; } public ObjectGuid OwnerAccountID;
public uint EndTime { get; set; } public uint EndTime;
public ObjectGuid Bidder { get; set; } public ObjectGuid Bidder;
public ulong BidAmount { get; set; } public ulong BidAmount;
public List<ItemGemData> Gems { get; set; } = new List<ItemGemData>(); public List<ItemGemData> Gems = new List<ItemGemData>();
} }
struct AuctionOwnerNotification struct AuctionOwnerNotification
@@ -534,9 +534,9 @@ namespace Game.Network.Packets
Item.Write(data); Item.Write(data);
} }
public int AuctionItemID { get; set; } public int AuctionItemID;
public ulong BidAmount { get; set; } public ulong BidAmount;
public ItemInstance Item { get; set; } public ItemInstance Item;
} }
struct AuctionBidderNotification struct AuctionBidderNotification
@@ -555,8 +555,8 @@ namespace Game.Network.Packets
Item.Write(data); Item.Write(data);
} }
public int AuctionItemID { get; set; } public int AuctionItemID;
public ObjectGuid Bidder { get; set; } public ObjectGuid Bidder;
public ItemInstance Item { get; set; } public ItemInstance Item;
} }
} }
@@ -36,8 +36,8 @@ namespace Game.Network.Packets
Latency = _worldPacket.ReadUInt32(); Latency = _worldPacket.ReadUInt32();
} }
public uint Serial { get; set; } public uint Serial;
public uint Latency { get; set; } public uint Latency;
} }
class Pong : ServerPacket class Pong : ServerPacket
@@ -66,9 +66,9 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt8(DosZeroBits); _worldPacket.WriteUInt8(DosZeroBits);
} }
public byte[] Challenge { get; set; } = new byte[16]; public byte[] Challenge = new byte[16];
public byte[] DosChallenge { get; set; } = new byte[32]; // Encryption seeds public byte[] DosChallenge = new byte[32]; // Encryption seeds
public byte DosZeroBits { get; set; } public byte DosZeroBits;
} }
class AuthSession : ClientPacket class AuthSession : ClientPacket
@@ -97,16 +97,16 @@ namespace Game.Network.Packets
RealmJoinTicket = _worldPacket.ReadString(realmJoinTicketSize); RealmJoinTicket = _worldPacket.ReadString(realmJoinTicketSize);
} }
public ushort Build { get; set; } public ushort Build;
public sbyte BuildType { get; set; } public sbyte BuildType;
public uint RegionID { get; set; } public uint RegionID;
public uint BattlegroupID { get; set; } public uint BattlegroupID;
public uint RealmID { get; set; } public uint RealmID;
public Array<byte> LocalChallenge { get; set; } = new Array<byte>(16); public Array<byte> LocalChallenge = new Array<byte>(16);
public byte[] Digest { get; set; } = new byte[24]; public byte[] Digest = new byte[24];
public ulong DosResponse { get; set; } public ulong DosResponse;
public string RealmJoinTicket { get; set; } public string RealmJoinTicket;
public bool UseIPv6 { get; set; } public bool UseIPv6;
} }
class AuthResponse : ServerPacket class AuthResponse : ServerPacket
@@ -200,37 +200,37 @@ namespace Game.Network.Packets
public Optional<AuthSuccessInfo> SuccessInfo; // contains the packet data in case that it has account information (It is never set when WaitInfo is set), otherwise its contents are undefined. public Optional<AuthSuccessInfo> SuccessInfo; // contains the packet data in case that it has account information (It is never set when WaitInfo is set), otherwise its contents are undefined.
public Optional<AuthWaitInfo> WaitInfo; // contains the queue wait information in case the account is in the login queue. public Optional<AuthWaitInfo> WaitInfo; // contains the queue wait information in case the account is in the login queue.
public BattlenetRpcErrorCode Result { get; set; } // the result of the authentication process, possible values are @ref BattlenetRpcErrorCode. public BattlenetRpcErrorCode Result; // the result of the authentication process, possible values are @ref BattlenetRpcErrorCode
public class AuthSuccessInfo public class AuthSuccessInfo
{ {
public byte AccountExpansionLevel { get; set; } // the current expansion of this account, the possible values are in @ref Expansion. public byte AccountExpansionLevel; // the current expansion of this account, the possible values are in @ref Expansions
public byte ActiveExpansionLevel { get; set; } // the current server expansion, the possible values are in @ref Expansion. public byte ActiveExpansionLevel; // the current server expansion, the possible values are in @ref Expansions
public uint TimeRested { get; set; } // affects the return value of the GetBillingTimeRested() client API call, it is the number of seconds you have left until the experience points and loot you receive from creatures and quests is reduced. It is only used in the Asia region in retail, it's not implemented in TC and will probably never be. public uint TimeRested; // affects the return value of the GetBillingTimeRested() client API call, it is the number of seconds you have left until the experience points and loot you receive from creatures and quests is reduced. It is only used in the Asia region in retail, it's not implemented in TC and will probably never be.
public uint VirtualRealmAddress { get; set; } // a special identifier made from the Index, BattleGroup and Region. @todo implement public uint VirtualRealmAddress; // a special identifier made from the Index, BattleGroup and Region. @todo implement
public uint TimeSecondsUntilPCKick { get; set; } // @todo research public uint TimeSecondsUntilPCKick; // @todo research
public uint CurrencyID { get; set; } // this is probably used for the ingame shop. @todo implement public uint CurrencyID; // this is probably used for the ingame shop. @todo implement
public uint Time { get; set; } public uint Time;
public BillingInfo Billing { get; set; } public BillingInfo Billing;
public List<VirtualRealmInfo> VirtualRealms { get; set; } = new List<VirtualRealmInfo>(); // list of realms connected to this one (inclusive) @todo implement public List<VirtualRealmInfo> VirtualRealms = new List<VirtualRealmInfo>(); // list of realms connected to this one (inclusive) @todo implement
public List<CharacterTemplate> Templates { get; set; } = new List<CharacterTemplate>(); // list of pre-made character templates. @todo implement public List<CharacterTemplate> Templates = new List<CharacterTemplate>(); // list of pre-made character templates. @todo implement
public Dictionary<byte, byte> AvailableClasses; // the minimum AccountExpansion required to select the classes public Dictionary<byte, byte> AvailableClasses; // the minimum AccountExpansion required to select the classes
public Dictionary<byte, byte> AvailableRaces; // the minimum AccountExpansion required to select the races public Dictionary<byte, byte> AvailableRaces; // the minimum AccountExpansion required to select the races
public bool IsExpansionTrial { get; set; } public bool IsExpansionTrial;
public bool ForceCharacterTemplate { get; set; } // forces the client to always use a character template when creating a new character. @see Templates. @todo implement public bool ForceCharacterTemplate; // forces the client to always use a character template when creating a new character. @see Templates. @todo implement
public Optional<ushort> NumPlayersHorde { get; set; } // number of horde players in this realm. @todo implemet public Optional<ushort> NumPlayersHorde; // number of horde players in this realm. @todo implement
public Optional<ushort> NumPlayersAlliance { get; set; } // number of alliance players in this realm. @todo implement public Optional<ushort> NumPlayersAlliance; // number of alliance players in this realm. @todo implement
public struct BillingInfo public struct BillingInfo
{ {
public uint BillingPlan { get; set; } public uint BillingPlan;
public uint TimeRemain { get; set; } public uint TimeRemain;
public bool InGameRoom { get; set; } public bool InGameRoom;
} }
} }
} }
@@ -308,12 +308,12 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt8(Con); _worldPacket.WriteUInt8(Con);
} }
public ulong Key { get; set; } public ulong Key;
public ConnectToSerial Serial { get; set; } public ConnectToSerial Serial;
public ConnectPayload Payload { get; set; } public ConnectPayload Payload;
public byte Con { get; set; } public byte Con;
public string Haiku { get; set; } = "An island of peace\nCorruption is brought ashore\nPandarens will rise\n\0\0\0"; public string Haiku = "An island of peace\nCorruption is brought ashore\nPandarens will rise\n\0\0\0";
public byte[] PiDigits = { 0x31, 0x41, 0x59, 0x26, 0x53, 0x58, 0x97, 0x93, 0x23, 0x84, 0x62, 0x64, 0x33, 0x83, 0x27, 0x95, 0x02, 0x88, 0x41, 0x97, public byte[] PiDigits = { 0x31, 0x41, 0x59, 0x26, 0x53, 0x58, 0x97, 0x93, 0x23, 0x84, 0x62, 0x64, 0x33, 0x83, 0x27, 0x95, 0x02, 0x88, 0x41, 0x97,
0x16, 0x93, 0x99, 0x37, 0x51, 0x05, 0x82, 0x09, 0x74, 0x94, 0x45, 0x92, 0x30, 0x78, 0x16, 0x40, 0x62, 0x86, 0x20, 0x89, 0x16, 0x93, 0x99, 0x37, 0x51, 0x05, 0x82, 0x09, 0x74, 0x94, 0x45, 0x92, 0x30, 0x78, 0x16, 0x40, 0x62, 0x86, 0x20, 0x89,
0x98, 0x62, 0x80, 0x34, 0x82, 0x53, 0x42, 0x11, 0x70, 0x67, 0x98, 0x21, 0x48, 0x08, 0x65, 0x13, 0x28, 0x23, 0x06, 0x64, 0x98, 0x62, 0x80, 0x34, 0x82, 0x53, 0x42, 0x11, 0x70, 0x67, 0x98, 0x21, 0x48, 0x08, 0x65, 0x13, 0x28, 0x23, 0x06, 0x64,
@@ -324,10 +324,10 @@ namespace Game.Network.Packets
public class ConnectPayload public class ConnectPayload
{ {
public IPEndPoint Where { get; set; } public IPEndPoint Where;
public uint Adler32 { get; set; } public uint Adler32;
public byte XorMagic { get; set; } = 0x2A; public byte XorMagic = 0x2A;
public byte[] PanamaKey { get; set; } = new byte[32]; public byte[] PanamaKey = new byte[32];
} }
RsaCrypt Crypt; RsaCrypt Crypt;
@@ -345,10 +345,10 @@ namespace Game.Network.Packets
Digest = _worldPacket.ReadBytes(24); Digest = _worldPacket.ReadBytes(24);
} }
public ulong DosResponse { get; set; } public ulong DosResponse;
public ulong Key { get; set; } public ulong Key;
public byte[] LocalChallenge { get; set; } = new byte[16]; public byte[] LocalChallenge = new byte[16];
public byte[] Digest { get; set; } = new byte[24]; public byte[] Digest = new byte[24];
} }
class ResumeComms : ServerPacket class ResumeComms : ServerPacket
@@ -368,7 +368,7 @@ namespace Game.Network.Packets
Con = _worldPacket.ReadUInt8(); Con = _worldPacket.ReadUInt8();
} }
public ConnectToSerial Serial { get; set; } public ConnectToSerial Serial;
byte Con; byte Con;
} }
@@ -417,8 +417,8 @@ namespace Game.Network.Packets
data.WriteString(RealmNameNormalized); data.WriteString(RealmNameNormalized);
} }
public bool IsLocal; // true if the realm is the same as the account's home realm public bool IsLocal; // true if the realm is the same as the account's home realm
public bool IsInternalRealm; // @todo research public bool IsInternalRealm; // @todo research
public string RealmNameActual; // the name of the realm public string RealmNameActual; // the name of the realm
public string RealmNameNormalized; // the name of the realm without spaces public string RealmNameNormalized; // the name of the realm without spaces
} }
@@ -439,6 +439,6 @@ namespace Game.Network.Packets
} }
public uint RealmAddress; // the virtual address of this realm, constructed as RealmHandle::Region << 24 | RealmHandle::Battlegroup << 16 | RealmHandle::Index public uint RealmAddress; // the virtual address of this realm, constructed as RealmHandle::Region << 24 | RealmHandle::Battlegroup << 16 | RealmHandle::Index
public VirtualRealmNameInfo RealmNameInfo { get; set; } public VirtualRealmNameInfo RealmNameInfo;
} }
} }
+7 -7
View File
@@ -21,9 +21,9 @@ namespace Game.Network.Packets
{ {
public class AutoBankItem : ClientPacket public class AutoBankItem : ClientPacket
{ {
public InvUpdate Inv { get; set; } public InvUpdate Inv;
public byte Bag { get; set; } public byte Bag;
public byte Slot { get; set; } public byte Slot;
public AutoBankItem(WorldPacket packet) : base(packet) { } public AutoBankItem(WorldPacket packet) : base(packet) { }
@@ -37,9 +37,9 @@ namespace Game.Network.Packets
public class AutoStoreBankItem : ClientPacket public class AutoStoreBankItem : ClientPacket
{ {
public InvUpdate Inv { get; set; } public InvUpdate Inv;
public byte Bag { get; set; } public byte Bag;
public byte Slot { get; set; } public byte Slot;
public AutoStoreBankItem(WorldPacket packet) : base(packet) { } public AutoStoreBankItem(WorldPacket packet) : base(packet) { }
@@ -60,6 +60,6 @@ namespace Game.Network.Packets
Guid = _worldPacket.ReadPackedGuid(); Guid = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
} }
} }
@@ -34,8 +34,8 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(PreviousSeason); _worldPacket.WriteUInt32(PreviousSeason);
} }
public uint PreviousSeason { get; set; } = 0; public uint PreviousSeason = 0;
public uint CurrentSeason { get; set; } = 0; public uint CurrentSeason = 0;
} }
public class AreaSpiritHealerQuery : ClientPacket public class AreaSpiritHealerQuery : ClientPacket
@@ -47,7 +47,7 @@ namespace Game.Network.Packets
HealerGuid = _worldPacket.ReadPackedGuid(); HealerGuid = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid HealerGuid { get; set; } public ObjectGuid HealerGuid;
} }
public class AreaSpiritHealerQueue : ClientPacket public class AreaSpiritHealerQueue : ClientPacket
@@ -59,7 +59,7 @@ namespace Game.Network.Packets
HealerGuid = _worldPacket.ReadPackedGuid(); HealerGuid = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid HealerGuid { get; set; } public ObjectGuid HealerGuid;
} }
public class HearthAndResurrect : ClientPacket public class HearthAndResurrect : ClientPacket
@@ -98,10 +98,10 @@ namespace Game.Network.Packets
player.Write(_worldPacket); player.Write(_worldPacket);
} }
public Optional<byte> Winner { get; set; } public Optional<byte> Winner;
public List<PlayerData> Players { get; set; } = new List<PlayerData>(); public List<PlayerData> Players = new List<PlayerData>();
public Optional<RatingData> Ratings; public Optional<RatingData> Ratings;
public sbyte[] PlayerCount { get; set; } = new sbyte[2]; public sbyte[] PlayerCount = new sbyte[2];
public class RatingData public class RatingData
{ {
@@ -117,9 +117,9 @@ namespace Game.Network.Packets
data.WriteUInt32(id); data.WriteUInt32(id);
} }
public uint[] Prematch { get; set; } = new uint[2]; public uint[] Prematch = new uint[2];
public uint[] Postmatch { get; set; } = new uint[2]; public uint[] Postmatch = new uint[2];
public uint[] PrematchMMR { get; set; } = new uint[2]; public uint[] PrematchMMR = new uint[2];
} }
public struct HonorData public struct HonorData
@@ -131,9 +131,9 @@ namespace Game.Network.Packets
data.WriteUInt32(ContributionPoints); data.WriteUInt32(ContributionPoints);
} }
public uint HonorKills { get; set; } public uint HonorKills;
public uint Deaths { get; set; } public uint Deaths;
public uint ContributionPoints { get; set; } public uint ContributionPoints;
} }
public class PlayerData public class PlayerData
@@ -176,22 +176,22 @@ namespace Game.Network.Packets
data.WriteInt32(MmrChange.Value); data.WriteInt32(MmrChange.Value);
} }
public ObjectGuid PlayerGUID { get; set; } public ObjectGuid PlayerGUID;
public uint Kills { get; set; } public uint Kills;
public byte Faction { get; set; } public byte Faction;
public bool IsInWorld { get; set; } public bool IsInWorld;
public Optional<HonorData> Honor; public Optional<HonorData> Honor;
public uint DamageDone { get; set; } public uint DamageDone;
public uint HealingDone { get; set; } public uint HealingDone;
public Optional<uint> PreMatchRating { get; set; } public Optional<uint> PreMatchRating;
public Optional<int> RatingChange { get; set; } public Optional<int> RatingChange;
public Optional<uint> PreMatchMMR { get; set; } public Optional<uint> PreMatchMMR;
public Optional<int> MmrChange { get; set; } public Optional<int> MmrChange;
public List<uint> Stats { get; set; } = new List<uint>(); public List<uint> Stats = new List<uint>();
public int PrimaryTalentTree { get; set; } public int PrimaryTalentTree;
public int PrimaryTalentTreeNameIndex; // controls which name field from ChrSpecialization.dbc will be sent to lua public int PrimaryTalentTreeNameIndex; // controls which name field from ChrSpecialization.dbc will be sent to lua
public Race PlayerRace { get; set; } public Race PlayerRace;
public uint Prestige { get; set; } public uint Prestige;
} }
} }
@@ -204,7 +204,7 @@ namespace Game.Network.Packets
Ticket.Write(_worldPacket); Ticket.Write(_worldPacket);
} }
public RideTicket Ticket { get; set; } = new RideTicket(); public RideTicket Ticket = new RideTicket();
} }
public class BattlefieldStatusNeedConfirmation : ServerPacket public class BattlefieldStatusNeedConfirmation : ServerPacket
@@ -219,10 +219,10 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt8(Role); _worldPacket.WriteUInt8(Role);
} }
public uint Timeout { get; set; } public uint Timeout;
public uint Mapid { get; set; } public uint Mapid;
public BattlefieldStatusHeader Hdr; public BattlefieldStatusHeader Hdr;
public byte Role { get; set; } public byte Role;
} }
public class BattlefieldStatusActive : ServerPacket public class BattlefieldStatusActive : ServerPacket
@@ -241,11 +241,11 @@ namespace Game.Network.Packets
} }
public BattlefieldStatusHeader Hdr; public BattlefieldStatusHeader Hdr;
public uint ShutdownTimer { get; set; } public uint ShutdownTimer;
public byte ArenaFaction { get; set; } public byte ArenaFaction;
public bool LeftEarly { get; set; } public bool LeftEarly;
public uint StartTimer { get; set; } public uint StartTimer;
public uint Mapid { get; set; } public uint Mapid;
} }
public class BattlefieldStatusQueued : ServerPacket public class BattlefieldStatusQueued : ServerPacket
@@ -263,12 +263,12 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public uint AverageWaitTime { get; set; } public uint AverageWaitTime;
public BattlefieldStatusHeader Hdr; public BattlefieldStatusHeader Hdr;
public bool AsGroup { get; set; } public bool AsGroup;
public bool SuspendedQueue { get; set; } public bool SuspendedQueue;
public bool EligibleForMatchmaking { get; set; } public bool EligibleForMatchmaking;
public uint WaitTime { get; set; } public uint WaitTime;
} }
public class BattlefieldStatusFailed : ServerPacket public class BattlefieldStatusFailed : ServerPacket
@@ -283,10 +283,10 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(ClientID); _worldPacket.WritePackedGuid(ClientID);
} }
public ulong QueueID { get; set; } public ulong QueueID;
public ObjectGuid ClientID { get; set; } public ObjectGuid ClientID;
public int Reason { get; set; } public int Reason;
public RideTicket Ticket { get; set; } = new RideTicket(); public RideTicket Ticket = new RideTicket();
} }
class BattlemasterJoin : ClientPacket class BattlemasterJoin : ClientPacket
@@ -302,10 +302,10 @@ namespace Game.Network.Packets
JoinAsGroup = _worldPacket.HasBit(); JoinAsGroup = _worldPacket.HasBit();
} }
public bool JoinAsGroup { get; set; } = false; public bool JoinAsGroup = false;
public byte Roles { get; set; } = 0; public byte Roles = 0;
public ulong QueueID { get; set; } = 0; public ulong QueueID = 0;
public int[] BlacklistMap { get; set; } = new int[2]; public int[] BlacklistMap = new int[2];
} }
class BattlemasterJoinArena : ClientPacket class BattlemasterJoinArena : ClientPacket
@@ -318,8 +318,8 @@ namespace Game.Network.Packets
Roles = _worldPacket.ReadUInt8(); Roles = _worldPacket.ReadUInt8();
} }
public byte TeamSizeIndex { get; set; } public byte TeamSizeIndex;
public byte Roles { get; set; } public byte Roles;
} }
class BattlefieldLeave : ClientPacket class BattlefieldLeave : ClientPacket
@@ -339,8 +339,8 @@ namespace Game.Network.Packets
AcceptedInvite = _worldPacket.HasBit(); AcceptedInvite = _worldPacket.HasBit();
} }
public RideTicket Ticket { get; set; } = new RideTicket(); public RideTicket Ticket = new RideTicket();
public bool AcceptedInvite { get; set; } public bool AcceptedInvite;
} }
class BattlefieldListRequest : ClientPacket class BattlefieldListRequest : ClientPacket
@@ -352,7 +352,7 @@ namespace Game.Network.Packets
ListID = _worldPacket.ReadInt32(); ListID = _worldPacket.ReadInt32();
} }
public int ListID { get; set; } public int ListID;
} }
class BattlefieldList : ServerPacket class BattlefieldList : ServerPacket
@@ -374,13 +374,13 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public ObjectGuid BattlemasterGuid { get; set; } public ObjectGuid BattlemasterGuid;
public int BattlemasterListID { get; set; } public int BattlemasterListID;
public byte MinLevel { get; set; } public byte MinLevel;
public byte MaxLevel { get; set; } public byte MaxLevel;
public List<int> Battlefields { get; set; } = new List<int>(); // Players cannot join a specific Battleground instance anymore - this is always empty public List<int> Battlefields = new List<int>(); // Players cannot join a specific Battleground instance anymore - this is always empty
public bool PvpAnywhere { get; set; } public bool PvpAnywhere;
public bool HasRandomWinToday { get; set; } public bool HasRandomWinToday;
} }
class GetPVPOptionsEnabled : ClientPacket class GetPVPOptionsEnabled : ClientPacket
@@ -405,12 +405,12 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public bool WargameArenas { get; set; } public bool WargameArenas;
public bool RatedArenas { get; set; } public bool RatedArenas;
public bool WargameBattlegrounds { get; set; } public bool WargameBattlegrounds;
public bool ArenaSkirmish { get; set; } public bool ArenaSkirmish;
public bool PugBattlegrounds { get; set; } public bool PugBattlegrounds;
public bool RatedBattlegrounds { get; set; } public bool RatedBattlegrounds;
} }
class RequestBattlefieldStatus : ClientPacket class RequestBattlefieldStatus : ClientPacket
@@ -429,7 +429,7 @@ namespace Game.Network.Packets
Offender = _worldPacket.ReadPackedGuid(); Offender = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid Offender { get; set; } public ObjectGuid Offender;
} }
class ReportPvPPlayerAFKResult : ServerPacket class ReportPvPPlayerAFKResult : ServerPacket
@@ -444,10 +444,10 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt8(NumPlayersIHaveReported); _worldPacket.WriteUInt8(NumPlayersIHaveReported);
} }
public ObjectGuid Offender { get; set; } public ObjectGuid Offender;
public byte NumPlayersIHaveReported { get; set; } = 0; public byte NumPlayersIHaveReported = 0;
public byte NumBlackMarksOnOffender { get; set; } = 0; public byte NumBlackMarksOnOffender = 0;
public ResultCode Result { get; set; } = ResultCode.GenericFailure; public ResultCode Result = ResultCode.GenericFailure;
public enum ResultCode public enum ResultCode
{ {
@@ -468,7 +468,7 @@ namespace Game.Network.Packets
FlagCarriers.ForEach(pos => pos.Write(_worldPacket)); FlagCarriers.ForEach(pos => pos.Write(_worldPacket));
} }
public List<BattlegroundPlayerPosition> FlagCarriers { get; set; } = new List<BattlegroundPlayerPosition>(); public List<BattlegroundPlayerPosition> FlagCarriers = new List<BattlegroundPlayerPosition>();
} }
class BattlegroundPlayerJoined : ServerPacket class BattlegroundPlayerJoined : ServerPacket
@@ -480,7 +480,7 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(Guid); _worldPacket.WritePackedGuid(Guid);
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
} }
class BattlegroundPlayerLeft : ServerPacket class BattlegroundPlayerLeft : ServerPacket
@@ -492,7 +492,7 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(Guid); _worldPacket.WritePackedGuid(Guid);
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
} }
class DestroyArenaUnit : ServerPacket class DestroyArenaUnit : ServerPacket
@@ -504,7 +504,7 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(Guid); _worldPacket.WritePackedGuid(Guid);
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
} }
class RequestPVPRewards : ClientPacket class RequestPVPRewards : ClientPacket
@@ -523,16 +523,16 @@ namespace Game.Network.Packets
throw new NotImplementedException(); throw new NotImplementedException();
} }
public uint RatedRewardPointsThisWeek { get; set; } public uint RatedRewardPointsThisWeek;
public uint ArenaRewardPointsThisWeek { get; set; } public uint ArenaRewardPointsThisWeek;
public uint RatedMaxRewardPointsThisWeek { get; set; } public uint RatedMaxRewardPointsThisWeek;
public uint ArenaRewardPoints { get; set; } public uint ArenaRewardPoints;
public uint RandomRewardPointsThisWeek { get; set; } public uint RandomRewardPointsThisWeek;
public uint ArenaMaxRewardPointsThisWeek { get; set; } public uint ArenaMaxRewardPointsThisWeek;
public uint RatedRewardPoints { get; set; } public uint RatedRewardPoints;
public uint MaxRewardPointsThisWeek { get; set; } public uint MaxRewardPointsThisWeek;
public uint RewardPointsThisWeek { get; set; } public uint RewardPointsThisWeek;
public uint RandomMaxRewardPointsThisWeek { get; set; } public uint RandomMaxRewardPointsThisWeek;
} }
class RequestRatedBattlefieldInfo : ClientPacket class RequestRatedBattlefieldInfo : ClientPacket
@@ -553,8 +553,8 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt8(TeamSize); _worldPacket.WriteUInt8(TeamSize);
} }
public ArenaErrorType ErrorType { get; set; } public ArenaErrorType ErrorType;
public byte TeamSize { get; set; } public byte TeamSize;
} }
//Structs //Structs
@@ -573,14 +573,14 @@ namespace Game.Network.Packets
data.FlushBits(); data.FlushBits();
} }
public RideTicket Ticket { get; set; } public RideTicket Ticket;
public ulong QueueID { get; set; } public ulong QueueID;
public byte RangeMin { get; set; } public byte RangeMin;
public byte RangeMax { get; set; } public byte RangeMax;
public byte TeamSize { get; set; } public byte TeamSize;
public uint InstanceID { get; set; } public uint InstanceID;
public bool RegisteredMatch { get; set; } public bool RegisteredMatch;
public bool TournamentRules { get; set; } public bool TournamentRules;
} }
public struct BattlegroundPlayerPosition public struct BattlegroundPlayerPosition
@@ -593,9 +593,9 @@ namespace Game.Network.Packets
data.WriteInt8(ArenaSlot); data.WriteInt8(ArenaSlot);
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
public Vector2 Pos; public Vector2 Pos;
public sbyte IconID { get; set; } public sbyte IconID;
public sbyte ArenaSlot { get; set; } public sbyte ArenaSlot;
} }
} }
+42 -42
View File
@@ -43,10 +43,10 @@ namespace Game.Network.Packets
pet.Write(_worldPacket); pet.Write(_worldPacket);
} }
public ushort Trap { get; set; } public ushort Trap;
bool HasJournalLock = true; bool HasJournalLock = true;
public List<BattlePetSlot> Slots { get; set; } = new List<BattlePetSlot>(); public List<BattlePetSlot> Slots = new List<BattlePetSlot>();
public List<BattlePetStruct> Pets { get; set; } = new List<BattlePetStruct>(); public List<BattlePetStruct> Pets = new List<BattlePetStruct>();
int MaxPets = 1000; int MaxPets = 1000;
} }
@@ -78,8 +78,8 @@ namespace Game.Network.Packets
pet.Write(_worldPacket); pet.Write(_worldPacket);
} }
public List<BattlePetStruct> Pets { get; set; } = new List<BattlePetStruct>(); public List<BattlePetStruct> Pets = new List<BattlePetStruct>();
public bool PetAdded { get; set; } public bool PetAdded;
} }
class PetBattleSlotUpdates : ServerPacket class PetBattleSlotUpdates : ServerPacket
@@ -97,9 +97,9 @@ namespace Game.Network.Packets
slot.Write(_worldPacket); slot.Write(_worldPacket);
} }
public List<BattlePetSlot> Slots { get; set; } = new List<BattlePetSlot>(); public List<BattlePetSlot> Slots = new List<BattlePetSlot>();
public bool AutoSlotted { get; set; } public bool AutoSlotted;
public bool NewSlot { get; set; } public bool NewSlot;
} }
class BattlePetSetBattleSlot : ClientPacket class BattlePetSetBattleSlot : ClientPacket
@@ -112,8 +112,8 @@ namespace Game.Network.Packets
Slot = _worldPacket.ReadUInt8(); Slot = _worldPacket.ReadUInt8();
} }
public ObjectGuid PetGuid { get; set; } public ObjectGuid PetGuid;
public byte Slot { get; set; } public byte Slot;
} }
class BattlePetModifyName : ClientPacket class BattlePetModifyName : ClientPacket
@@ -141,9 +141,9 @@ namespace Game.Network.Packets
Name = _worldPacket.ReadString(nameLength); Name = _worldPacket.ReadString(nameLength);
} }
public ObjectGuid PetGuid { get; set; } public ObjectGuid PetGuid;
public string Name { get; set; } public string Name;
public DeclinedName Declined { get; set; } public DeclinedName Declined;
} }
class BattlePetDeletePet : ClientPacket class BattlePetDeletePet : ClientPacket
@@ -155,7 +155,7 @@ namespace Game.Network.Packets
PetGuid = _worldPacket.ReadPackedGuid(); PetGuid = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid PetGuid { get; set; } public ObjectGuid PetGuid;
} }
class BattlePetSetFlags : ClientPacket class BattlePetSetFlags : ClientPacket
@@ -169,9 +169,9 @@ namespace Game.Network.Packets
ControlType = (FlagsControlType)_worldPacket.ReadBits<byte>(2); ControlType = (FlagsControlType)_worldPacket.ReadBits<byte>(2);
} }
public ObjectGuid PetGuid { get; set; } public ObjectGuid PetGuid;
public uint Flags { get; set; } public uint Flags;
public FlagsControlType ControlType { get; set; } public FlagsControlType ControlType;
} }
class CageBattlePet : ClientPacket class CageBattlePet : ClientPacket
@@ -183,7 +183,7 @@ namespace Game.Network.Packets
PetGuid = _worldPacket.ReadPackedGuid(); PetGuid = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid PetGuid { get; set; } public ObjectGuid PetGuid;
} }
class BattlePetDeleted : ServerPacket class BattlePetDeleted : ServerPacket
@@ -195,7 +195,7 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(PetGuid); _worldPacket.WritePackedGuid(PetGuid);
} }
public ObjectGuid PetGuid { get; set; } public ObjectGuid PetGuid;
} }
class BattlePetErrorPacket : ServerPacket class BattlePetErrorPacket : ServerPacket
@@ -208,8 +208,8 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(CreatureID); _worldPacket.WriteUInt32(CreatureID);
} }
public BattlePetError Result { get; set; } public BattlePetError Result;
public uint CreatureID { get; set; } public uint CreatureID;
} }
class BattlePetSummon : ClientPacket class BattlePetSummon : ClientPacket
@@ -221,7 +221,7 @@ namespace Game.Network.Packets
PetGuid = _worldPacket.ReadPackedGuid(); PetGuid = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid PetGuid { get; set; } public ObjectGuid PetGuid;
} }
@@ -260,26 +260,26 @@ namespace Game.Network.Packets
public struct BattlePetOwnerInfo public struct BattlePetOwnerInfo
{ {
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
public uint PlayerVirtualRealm { get; set; } public uint PlayerVirtualRealm;
public uint PlayerNativeRealm { get; set; } public uint PlayerNativeRealm;
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
public uint Species { get; set; } public uint Species;
public uint CreatureID { get; set; } public uint CreatureID;
public uint CollarID; // what's this? public uint CollarID; // what's this?
public ushort Breed { get; set; } public ushort Breed;
public ushort Level { get; set; } public ushort Level;
public ushort Exp { get; set; } public ushort Exp;
public ushort Flags { get; set; } public ushort Flags;
public uint Power { get; set; } public uint Power;
public uint Health { get; set; } public uint Health;
public uint MaxHealth { get; set; } public uint MaxHealth;
public uint Speed { get; set; } public uint Speed;
public byte Quality { get; set; } public byte Quality;
public Optional<BattlePetOwnerInfo> OwnerInfo { get; set; } public Optional<BattlePetOwnerInfo> OwnerInfo;
public string Name { get; set; } public string Name;
} }
public class BattlePetSlot public class BattlePetSlot
@@ -293,9 +293,9 @@ namespace Game.Network.Packets
data.FlushBits(); data.FlushBits();
} }
public BattlePetStruct Pet { get; set; } public BattlePetStruct Pet;
public uint CollarID; // what's this? public uint CollarID; // what's this?
public byte Index { get; set; } public byte Index;
public bool Locked { get; set; } = true; public bool Locked = true;
} }
} }
@@ -31,9 +31,9 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(ExpireTime); _worldPacket.WriteUInt32(ExpireTime);
} }
public ulong QueueID { get; set; } public ulong QueueID;
public int AreaID { get; set; } public int AreaID;
public long ExpireTime { get; set; } public long ExpireTime;
} }
class BFMgrEntryInviteResponse : ClientPacket class BFMgrEntryInviteResponse : ClientPacket
@@ -46,8 +46,8 @@ namespace Game.Network.Packets
AcceptedInvite = _worldPacket.HasBit(); AcceptedInvite = _worldPacket.HasBit();
} }
public ulong QueueID { get; set; } public ulong QueueID;
public bool AcceptedInvite { get; set; } public bool AcceptedInvite;
} }
class BFMgrQueueInvite : ServerPacket class BFMgrQueueInvite : ServerPacket
@@ -67,14 +67,14 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public ulong QueueID { get; set; } public ulong QueueID;
public BattlefieldState BattleState { get; set; } public BattlefieldState BattleState;
public uint Timeout { get; set; } = uint.MaxValue; // unused in client public uint Timeout = uint.MaxValue; // unused in client
public int MinLevel { get; set; } // unused in client public int MinLevel; // unused in client
public int MaxLevel { get; set; } // unused in client public int MaxLevel; // unused in client
public int MapID { get; set; } // unused in client public int MapID; // unused in client
public uint InstanceID { get; set; } // unused in client public uint InstanceID; // unused in client
public sbyte Index { get; set; } // unused in client public sbyte Index; // unused in client
} }
class BFMgrQueueInviteResponse : ClientPacket class BFMgrQueueInviteResponse : ClientPacket
@@ -87,8 +87,8 @@ namespace Game.Network.Packets
AcceptedInvite = _worldPacket.HasBit(); AcceptedInvite = _worldPacket.HasBit();
} }
public ulong QueueID { get; set; } public ulong QueueID;
public bool AcceptedInvite { get; set; } public bool AcceptedInvite;
} }
class BFMgrQueueRequestResponse : ServerPacket class BFMgrQueueRequestResponse : ServerPacket
@@ -106,12 +106,12 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public ulong QueueID { get; set; } public ulong QueueID;
public int AreaID { get; set; } public int AreaID;
public sbyte Result { get; set; } public sbyte Result;
public ObjectGuid FailedPlayerGUID { get; set; } public ObjectGuid FailedPlayerGUID;
public BattlefieldState BattleState { get; set; } public BattlefieldState BattleState;
public bool LoggingIn { get; set; } public bool LoggingIn;
} }
class BFMgrQueueExitRequest : ClientPacket class BFMgrQueueExitRequest : ClientPacket
@@ -123,7 +123,7 @@ namespace Game.Network.Packets
QueueID = _worldPacket.ReadUInt64(); QueueID = _worldPacket.ReadUInt64();
} }
public ulong QueueID { get; set; } public ulong QueueID;
} }
class BFMgrEntering : ServerPacket class BFMgrEntering : ServerPacket
@@ -138,10 +138,10 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt64(QueueID); _worldPacket.WriteUInt64(QueueID);
} }
public bool ClearedAFK { get; set; } public bool ClearedAFK;
public bool Relocated { get; set; } public bool Relocated;
public bool OnOffense { get; set; } public bool OnOffense;
public ulong QueueID { get; set; } public ulong QueueID;
} }
class BFMgrEjected : ServerPacket class BFMgrEjected : ServerPacket
@@ -157,10 +157,10 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public ulong QueueID { get; set; } public ulong QueueID;
public BFLeaveReason Reason { get; set; } public BFLeaveReason Reason;
public BattlefieldState BattleState { get; set; } public BattlefieldState BattleState;
public bool Relocated { get; set; } public bool Relocated;
} }
public class AreaSpiritHealerTime : ServerPacket public class AreaSpiritHealerTime : ServerPacket
@@ -173,7 +173,7 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(TimeLeft); _worldPacket.WriteUInt32(TimeLeft);
} }
public ObjectGuid HealerGuid { get; set; } public ObjectGuid HealerGuid;
public uint TimeLeft { get; set; } public uint TimeLeft;
} }
} }
+16 -16
View File
@@ -33,7 +33,7 @@ namespace Game.Network.Packets
} }
public MethodCall Method; public MethodCall Method;
public ByteBuffer Data { get; set; } = new ByteBuffer(); public ByteBuffer Data = new ByteBuffer();
} }
class Response : ServerPacket class Response : ServerPacket
@@ -48,9 +48,9 @@ namespace Game.Network.Packets
_worldPacket.WriteBytes(Data); _worldPacket.WriteBytes(Data);
} }
public BattlenetRpcErrorCode BnetStatus { get; set; } = BattlenetRpcErrorCode.Ok; public BattlenetRpcErrorCode BnetStatus = BattlenetRpcErrorCode.Ok;
public MethodCall Method; public MethodCall Method;
public ByteBuffer Data { get; set; } = new ByteBuffer(); public ByteBuffer Data = new ByteBuffer();
} }
class SetSessionState : ServerPacket class SetSessionState : ServerPacket
@@ -63,7 +63,7 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public byte State { get; set; } public byte State;
} }
class RealmListTicket : ServerPacket class RealmListTicket : ServerPacket
@@ -78,9 +78,9 @@ namespace Game.Network.Packets
_worldPacket.WriteBytes(Ticket); _worldPacket.WriteBytes(Ticket);
} }
public uint Token { get; set; } public uint Token;
public bool Allow { get; set; } = true; public bool Allow = true;
public ByteBuffer Ticket { get; set; } public ByteBuffer Ticket;
} }
class BattlenetRequest : ClientPacket class BattlenetRequest : ClientPacket
@@ -95,8 +95,8 @@ namespace Game.Network.Packets
Data = _worldPacket.ReadBytes(protoSize); Data = _worldPacket.ReadBytes(protoSize);
} }
public MethodCall Method { get; set; } public MethodCall Method;
public byte[] Data { get; set; } public byte[] Data;
} }
class RequestRealmListTicket : ClientPacket class RequestRealmListTicket : ClientPacket
@@ -109,14 +109,14 @@ namespace Game.Network.Packets
Secret.AddRange(_worldPacket.ReadBytes((uint)Secret.Capacity)); Secret.AddRange(_worldPacket.ReadBytes((uint)Secret.Capacity));
} }
public uint Token { get; set; } public uint Token;
public Array<byte> Secret { get; set; } = new Array<byte>(32); public Array<byte> Secret = new Array<byte>(32);
} }
struct MethodCall struct MethodCall
{ {
public uint GetServiceHash() => (uint)(Type >> 32); public uint GetServiceHash() { return (uint)(Type >> 32); }
public uint GetMethodId() => (uint)(Type & 0xFFFFFFFF); public uint GetMethodId() { return (uint)(Type & 0xFFFFFFFF); }
public void Read(ByteBuffer data) public void Read(ByteBuffer data)
{ {
@@ -132,8 +132,8 @@ namespace Game.Network.Packets
data.WriteUInt32(Token); data.WriteUInt32(Token);
} }
public ulong Type { get; set; } public ulong Type;
public ulong ObjectId { get; set; } public ulong ObjectId;
public uint Token { get; set; } public uint Token;
} }
} }
@@ -30,7 +30,7 @@ namespace Game.Network.Packets
Guid = _worldPacket.ReadPackedGuid(); Guid = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
} }
class BlackMarketOpenResult : ServerPacket class BlackMarketOpenResult : ServerPacket
@@ -44,8 +44,8 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
public bool Enable { get; set; } = true; public bool Enable = true;
} }
class BlackMarketRequestItems : ClientPacket class BlackMarketRequestItems : ClientPacket
@@ -58,8 +58,8 @@ namespace Game.Network.Packets
LastUpdateID = _worldPacket.ReadUInt32(); LastUpdateID = _worldPacket.ReadUInt32();
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
public uint LastUpdateID { get; set; } public uint LastUpdateID;
} }
public class BlackMarketRequestItemsResult : ServerPacket public class BlackMarketRequestItemsResult : ServerPacket
@@ -75,8 +75,8 @@ namespace Game.Network.Packets
item.Write(_worldPacket); item.Write(_worldPacket);
} }
public int LastUpdateID { get; set; } public int LastUpdateID;
public List<BlackMarketItem> Items { get; set; } = new List<BlackMarketItem>(); public List<BlackMarketItem> Items = new List<BlackMarketItem>();
} }
class BlackMarketBidOnItem : ClientPacket class BlackMarketBidOnItem : ClientPacket
@@ -91,10 +91,10 @@ namespace Game.Network.Packets
Item.Read(_worldPacket); Item.Read(_worldPacket);
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
public uint MarketID { get; set; } public uint MarketID;
public ItemInstance Item { get; set; } = new ItemInstance(); public ItemInstance Item = new ItemInstance();
public ulong BidAmount { get; set; } public ulong BidAmount;
} }
class BlackMarketBidOnItemResult : ServerPacket class BlackMarketBidOnItemResult : ServerPacket
@@ -108,9 +108,9 @@ namespace Game.Network.Packets
Item.Write(_worldPacket); Item.Write(_worldPacket);
} }
public uint MarketID { get; set; } public uint MarketID;
public ItemInstance Item { get; set; } public ItemInstance Item;
public BlackMarketError Result { get; set; } public BlackMarketError Result;
} }
class BlackMarketOutbid : ServerPacket class BlackMarketOutbid : ServerPacket
@@ -124,9 +124,9 @@ namespace Game.Network.Packets
Item.Write(_worldPacket); Item.Write(_worldPacket);
} }
public uint MarketID { get; set; } public uint MarketID;
public ItemInstance Item { get; set; } public ItemInstance Item;
public uint RandomPropertiesID { get; set; } public uint RandomPropertiesID;
} }
class BlackMarketWon : ServerPacket class BlackMarketWon : ServerPacket
@@ -140,9 +140,9 @@ namespace Game.Network.Packets
Item.Write(_worldPacket); Item.Write(_worldPacket);
} }
public uint MarketID { get; set; } public uint MarketID;
public ItemInstance Item { get; set; } public ItemInstance Item;
public int RandomPropertiesID { get; set; } public int RandomPropertiesID;
} }
public struct BlackMarketItem public struct BlackMarketItem
@@ -176,15 +176,15 @@ namespace Game.Network.Packets
data.FlushBits(); data.FlushBits();
} }
public uint MarketID { get; set; } public uint MarketID;
public uint SellerNPC { get; set; } public uint SellerNPC;
public ItemInstance Item { get; set; } public ItemInstance Item;
public uint Quantity { get; set; } public uint Quantity;
public ulong MinBid { get; set; } public ulong MinBid;
public ulong MinIncrement { get; set; } public ulong MinIncrement;
public ulong CurrentBid { get; set; } public ulong CurrentBid;
public uint SecondsRemaining { get; set; } public uint SecondsRemaining;
public uint NumBids { get; set; } public uint NumBids;
public bool HighBid { get; set; } public bool HighBid;
} }
} }
+182 -182
View File
@@ -37,7 +37,7 @@ namespace Game.Network.Packets
EventID = _worldPacket.ReadUInt64(); EventID = _worldPacket.ReadUInt64();
} }
public ulong EventID { get; set; } public ulong EventID;
} }
class CalendarGuildFilter : ClientPacket class CalendarGuildFilter : ClientPacket
@@ -51,9 +51,9 @@ namespace Game.Network.Packets
MaxRankOrder = _worldPacket.ReadUInt8(); MaxRankOrder = _worldPacket.ReadUInt8();
} }
public byte MinLevel { get; set; } = 1; public byte MinLevel = 1;
public byte MaxLevel { get; set; } = 100; public byte MaxLevel = 100;
public byte MaxRankOrder { get; set; } public byte MaxRankOrder;
} }
class CalendarAddEvent : ClientPacket class CalendarAddEvent : ClientPacket
@@ -66,8 +66,8 @@ namespace Game.Network.Packets
MaxSize = _worldPacket.ReadUInt32(); MaxSize = _worldPacket.ReadUInt32();
} }
public uint MaxSize { get; set; } = 100; public uint MaxSize = 100;
public CalendarAddEventInfo EventInfo { get; set; } = new CalendarAddEventInfo(); public CalendarAddEventInfo EventInfo = new CalendarAddEventInfo();
} }
class CalendarUpdateEvent : ClientPacket class CalendarUpdateEvent : ClientPacket
@@ -91,7 +91,7 @@ namespace Game.Network.Packets
MaxSize = _worldPacket.ReadUInt32(); MaxSize = _worldPacket.ReadUInt32();
} }
public uint MaxSize { get; set; } public uint MaxSize;
public CalendarUpdateEventInfo EventInfo; public CalendarUpdateEventInfo EventInfo;
} }
@@ -106,9 +106,9 @@ namespace Game.Network.Packets
Flags = _worldPacket.ReadUInt32(); Flags = _worldPacket.ReadUInt32();
} }
public ulong ModeratorID { get; set; } public ulong ModeratorID;
public ulong EventID { get; set; } public ulong EventID;
public uint Flags { get; set; } public uint Flags;
} }
class CalendarCopyEvent : ClientPacket class CalendarCopyEvent : ClientPacket
@@ -122,9 +122,9 @@ namespace Game.Network.Packets
Date = _worldPacket.ReadPackedTime(); Date = _worldPacket.ReadPackedTime();
} }
public ulong ModeratorID { get; set; } public ulong ModeratorID;
public ulong EventID { get; set; } public ulong EventID;
public long Date { get; set; } public long Date;
} }
class SCalendarEventInvite : ServerPacket class SCalendarEventInvite : ServerPacket
@@ -145,14 +145,14 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public ulong InviteID { get; set; } public ulong InviteID;
public long ResponseTime { get; set; } public long ResponseTime;
public byte Level { get; set; } = 100; public byte Level = 100;
public ObjectGuid InviteGuid { get; set; } public ObjectGuid InviteGuid;
public ulong EventID { get; set; } public ulong EventID;
public byte Type { get; set; } public byte Type;
public bool ClearPending { get; set; } public bool ClearPending;
public CalendarInviteStatus Status { get; set; } public CalendarInviteStatus Status;
} }
class CalendarSendCalendar : ServerPacket class CalendarSendCalendar : ServerPacket
@@ -176,10 +176,10 @@ namespace Game.Network.Packets
Event.Write(_worldPacket); Event.Write(_worldPacket);
} }
public long ServerTime { get; set; } public long ServerTime;
public List<CalendarSendCalendarInviteInfo> Invites { get; set; } = new List<CalendarSendCalendarInviteInfo>(); public List<CalendarSendCalendarInviteInfo> Invites = new List<CalendarSendCalendarInviteInfo>();
public List<CalendarSendCalendarRaidLockoutInfo> RaidLockouts { get; set; } = new List<CalendarSendCalendarRaidLockoutInfo>(); public List<CalendarSendCalendarRaidLockoutInfo> RaidLockouts = new List<CalendarSendCalendarRaidLockoutInfo>();
public List<CalendarSendCalendarEventInfo> Events { get; set; } = new List<CalendarSendCalendarEventInfo>(); public List<CalendarSendCalendarEventInfo> Events = new List<CalendarSendCalendarEventInfo>();
} }
class CalendarSendEvent : ServerPacket class CalendarSendEvent : ServerPacket
@@ -210,18 +210,18 @@ namespace Game.Network.Packets
_worldPacket.WriteString(Description); _worldPacket.WriteString(Description);
} }
public ObjectGuid OwnerGuid { get; set; } public ObjectGuid OwnerGuid;
public ObjectGuid EventGuildID { get; set; } public ObjectGuid EventGuildID;
public ulong EventID { get; set; } public ulong EventID;
public long Date { get; set; } public long Date;
public long LockDate { get; set; } public long LockDate;
public CalendarFlags Flags { get; set; } public CalendarFlags Flags;
public int TextureID { get; set; } public int TextureID;
public CalendarEventType GetEventType { get; set; } public CalendarEventType GetEventType;
public CalendarSendEventType EventType { get; set; } public CalendarSendEventType EventType;
public string Description { get; set; } public string Description;
public string EventName { get; set; } public string EventName;
public List<CalendarEventInviteInfo> Invites { get; set; } = new List<CalendarEventInviteInfo>(); public List<CalendarEventInviteInfo> Invites = new List<CalendarEventInviteInfo>();
} }
class CalendarEventInviteAlert : ServerPacket class CalendarEventInviteAlert : ServerPacket
@@ -249,18 +249,18 @@ namespace Game.Network.Packets
_worldPacket.WriteString(EventName); _worldPacket.WriteString(EventName);
} }
public ObjectGuid OwnerGuid { get; set; } public ObjectGuid OwnerGuid;
public ObjectGuid EventGuildID { get; set; } public ObjectGuid EventGuildID;
public ObjectGuid InvitedByGuid { get; set; } public ObjectGuid InvitedByGuid;
public ulong InviteID { get; set; } public ulong InviteID;
public ulong EventID { get; set; } public ulong EventID;
public CalendarFlags Flags { get; set; } public CalendarFlags Flags;
public long Date { get; set; } public long Date;
public int TextureID { get; set; } public int TextureID;
public CalendarInviteStatus Status { get; set; } public CalendarInviteStatus Status;
public CalendarEventType EventType { get; set; } public CalendarEventType EventType;
public CalendarModerationRank ModeratorStatus { get; set; } public CalendarModerationRank ModeratorStatus;
public string EventName { get; set; } public string EventName;
} }
class CalendarEventInvite : ClientPacket class CalendarEventInvite : ClientPacket
@@ -279,11 +279,11 @@ namespace Game.Network.Packets
Name = _worldPacket.ReadString(nameLen); Name = _worldPacket.ReadString(nameLen);
} }
public ulong ModeratorID { get; set; } public ulong ModeratorID;
public bool IsSignUp { get; set; } public bool IsSignUp;
public bool Creating { get; set; } = true; public bool Creating = true;
public ulong EventID { get; set; } public ulong EventID;
public string Name { get; set; } public string Name;
} }
class CalendarEventRSVP : ClientPacket class CalendarEventRSVP : ClientPacket
@@ -297,9 +297,9 @@ namespace Game.Network.Packets
Status = (CalendarInviteStatus)_worldPacket.ReadUInt8(); Status = (CalendarInviteStatus)_worldPacket.ReadUInt8();
} }
public ulong InviteID { get; set; } public ulong InviteID;
public ulong EventID { get; set; } public ulong EventID;
public CalendarInviteStatus Status { get; set; } public CalendarInviteStatus Status;
} }
class CalendarEventInviteStatus : ServerPacket class CalendarEventInviteStatus : ServerPacket
@@ -319,13 +319,13 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public CalendarFlags Flags { get; set; } public CalendarFlags Flags;
public ulong EventID { get; set; } public ulong EventID;
public CalendarInviteStatus Status { get; set; } public CalendarInviteStatus Status;
public bool ClearPending { get; set; } public bool ClearPending;
public long ResponseTime { get; set; } public long ResponseTime;
public long Date { get; set; } public long Date;
public ObjectGuid InviteGuid { get; set; } public ObjectGuid InviteGuid;
} }
class CalendarEventInviteRemoved : ServerPacket class CalendarEventInviteRemoved : ServerPacket
@@ -342,10 +342,10 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public ObjectGuid InviteGuid { get; set; } public ObjectGuid InviteGuid;
public ulong EventID { get; set; } public ulong EventID;
public uint Flags { get; set; } public uint Flags;
public bool ClearPending { get; set; } public bool ClearPending;
} }
class CalendarEventInviteModeratorStatus : ServerPacket class CalendarEventInviteModeratorStatus : ServerPacket
@@ -362,10 +362,10 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public ObjectGuid InviteGuid { get; set; } public ObjectGuid InviteGuid;
public ulong EventID { get; set; } public ulong EventID;
public CalendarInviteStatus Status { get; set; } public CalendarInviteStatus Status;
public bool ClearPending { get; set; } public bool ClearPending;
} }
class CalendarEventInviteRemovedAlert : ServerPacket class CalendarEventInviteRemovedAlert : ServerPacket
@@ -380,10 +380,10 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt8(Status); _worldPacket.WriteUInt8(Status);
} }
public ulong EventID { get; set; } public ulong EventID;
public long Date { get; set; } public long Date;
public CalendarFlags Flags { get; set; } public CalendarFlags Flags;
public CalendarInviteStatus Status { get; set; } public CalendarInviteStatus Status;
} }
class CalendarClearPendingAction : ServerPacket class CalendarClearPendingAction : ServerPacket
@@ -417,16 +417,16 @@ namespace Game.Network.Packets
_worldPacket.WriteString(Description); _worldPacket.WriteString(Description);
} }
public ulong EventID { get; set; } public ulong EventID;
public long Date { get; set; } public long Date;
public CalendarFlags Flags { get; set; } public CalendarFlags Flags;
public long LockDate { get; set; } public long LockDate;
public long OriginalDate { get; set; } public long OriginalDate;
public int TextureID { get; set; } public int TextureID;
public CalendarEventType EventType { get; set; } public CalendarEventType EventType;
public bool ClearPending { get; set; } public bool ClearPending;
public string Description { get; set; } public string Description;
public string EventName { get; set; } public string EventName;
} }
class CalendarEventRemovedAlert : ServerPacket class CalendarEventRemovedAlert : ServerPacket
@@ -442,9 +442,9 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public ulong EventID { get; set; } public ulong EventID;
public long Date { get; set; } public long Date;
public bool ClearPending { get; set; } public bool ClearPending;
} }
class CalendarSendNumPending : ServerPacket class CalendarSendNumPending : ServerPacket
@@ -459,7 +459,7 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(NumPending); _worldPacket.WriteUInt32(NumPending);
} }
public uint NumPending { get; set; } public uint NumPending;
} }
class CalendarGetNumPending : ClientPacket class CalendarGetNumPending : ClientPacket
@@ -479,8 +479,8 @@ namespace Game.Network.Packets
Tentative = _worldPacket.HasBit(); Tentative = _worldPacket.HasBit();
} }
public bool Tentative { get; set; } public bool Tentative;
public ulong EventID { get; set; } public ulong EventID;
} }
class CalendarRemoveInvite : ClientPacket class CalendarRemoveInvite : ClientPacket
@@ -495,10 +495,10 @@ namespace Game.Network.Packets
EventID = _worldPacket.ReadUInt64(); EventID = _worldPacket.ReadUInt64();
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
public ulong EventID { get; set; } public ulong EventID;
public ulong ModeratorID { get; set; } public ulong ModeratorID;
public ulong InviteID { get; set; } public ulong InviteID;
} }
class CalendarEventStatus : ClientPacket class CalendarEventStatus : ClientPacket
@@ -514,11 +514,11 @@ namespace Game.Network.Packets
Status = _worldPacket.ReadUInt8(); Status = _worldPacket.ReadUInt8();
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
public ulong EventID { get; set; } public ulong EventID;
public ulong ModeratorID { get; set; } public ulong ModeratorID;
public ulong InviteID { get; set; } public ulong InviteID;
public byte Status { get; set; } public byte Status;
} }
class SetSavedInstanceExtend : ClientPacket class SetSavedInstanceExtend : ClientPacket
@@ -532,9 +532,9 @@ namespace Game.Network.Packets
Extend = _worldPacket.HasBit(); Extend = _worldPacket.HasBit();
} }
public int MapID { get; set; } public int MapID;
public bool Extend { get; set; } public bool Extend;
public uint DifficultyID { get; set; } public uint DifficultyID;
} }
class CalendarEventModeratorStatus : ClientPacket class CalendarEventModeratorStatus : ClientPacket
@@ -550,11 +550,11 @@ namespace Game.Network.Packets
Status = _worldPacket.ReadUInt8(); Status = _worldPacket.ReadUInt8();
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
public ulong EventID { get; set; } public ulong EventID;
public ulong InviteID { get; set; } public ulong InviteID;
public ulong ModeratorID { get; set; } public ulong ModeratorID;
public byte Status { get; set; } public byte Status;
} }
class CalendarCommandResult : ServerPacket class CalendarCommandResult : ServerPacket
@@ -577,9 +577,9 @@ namespace Game.Network.Packets
_worldPacket.WriteString(Name); _worldPacket.WriteString(Name);
} }
public byte Command { get; set; } public byte Command;
public CalendarError Result { get; set; } public CalendarError Result;
public string Name { get; set; } public string Name;
} }
class CalendarRaidLockoutAdded : ServerPacket class CalendarRaidLockoutAdded : ServerPacket
@@ -595,11 +595,11 @@ namespace Game.Network.Packets
_worldPacket.WriteInt32(TimeRemaining); _worldPacket.WriteInt32(TimeRemaining);
} }
public ulong InstanceID { get; set; } public ulong InstanceID;
public Difficulty DifficultyID { get; set; } public Difficulty DifficultyID;
public int TimeRemaining { get; set; } public int TimeRemaining;
public uint ServerTime { get; set; } public uint ServerTime;
public int MapID { get; set; } public int MapID;
} }
class CalendarRaidLockoutRemoved : ServerPacket class CalendarRaidLockoutRemoved : ServerPacket
@@ -613,9 +613,9 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(DifficultyID); _worldPacket.WriteUInt32(DifficultyID);
} }
public ulong InstanceID { get; set; } public ulong InstanceID;
public int MapID { get; set; } public int MapID;
public Difficulty DifficultyID { get; set; } public Difficulty DifficultyID;
} }
class CalendarRaidLockoutUpdated : ServerPacket class CalendarRaidLockoutUpdated : ServerPacket
@@ -631,11 +631,11 @@ namespace Game.Network.Packets
_worldPacket.WriteInt32(OldTimeRemaining); _worldPacket.WriteInt32(OldTimeRemaining);
} }
public int MapID { get; set; } public int MapID;
public int OldTimeRemaining { get; set; } public int OldTimeRemaining;
public long ServerTime { get; set; } public long ServerTime;
public uint DifficultyID { get; set; } public uint DifficultyID;
public int NewTimeRemaining { get; set; } public int NewTimeRemaining;
} }
class CalendarEventInitialInvites : ServerPacket class CalendarEventInitialInvites : ServerPacket
@@ -652,7 +652,7 @@ namespace Game.Network.Packets
} }
} }
public List<CalendarEventInitialInviteInfo> Invites { get; set; } = new List<CalendarEventInitialInviteInfo>(); public List<CalendarEventInitialInviteInfo> Invites = new List<CalendarEventInitialInviteInfo>();
} }
class CalendarEventInviteStatusAlert : ServerPacket class CalendarEventInviteStatusAlert : ServerPacket
@@ -667,10 +667,10 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt8(Status); _worldPacket.WriteUInt8(Status);
} }
public ulong EventID { get; set; } public ulong EventID;
public uint Flags { get; set; } public uint Flags;
public long Date { get; set; } public long Date;
public byte Status { get; set; } public byte Status;
} }
class CalendarEventInviteNotesAlert : ServerPacket class CalendarEventInviteNotesAlert : ServerPacket
@@ -690,8 +690,8 @@ namespace Game.Network.Packets
_worldPacket.WriteString(Notes); _worldPacket.WriteString(Notes);
} }
public ulong EventID { get; set; } public ulong EventID;
public string Notes { get; set; } public string Notes;
} }
class CalendarEventInviteNotes : ServerPacket class CalendarEventInviteNotes : ServerPacket
@@ -709,10 +709,10 @@ namespace Game.Network.Packets
_worldPacket.WriteString(Notes); _worldPacket.WriteString(Notes);
} }
public ObjectGuid InviteGuid { get; set; } public ObjectGuid InviteGuid;
public ulong EventID { get; set; } public ulong EventID;
public string Notes { get; set; } = ""; public string Notes = "";
public bool ClearPending { get; set; } public bool ClearPending;
} }
class CalendarComplain : ClientPacket class CalendarComplain : ClientPacket
@@ -741,9 +741,9 @@ namespace Game.Network.Packets
Moderator = data.ReadUInt8(); Moderator = data.ReadUInt8();
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
public byte Status { get; set; } public byte Status;
public byte Moderator { get; set; } public byte Moderator;
} }
class CalendarAddEventInfo class CalendarAddEventInfo
@@ -770,25 +770,25 @@ namespace Game.Network.Packets
} }
} }
public string Title { get; set; } public string Title;
public string Description { get; set; } public string Description;
public byte EventType { get; set; } public byte EventType;
public int TextureID { get; set; } public int TextureID;
public long Time { get; set; } public long Time;
public uint Flags { get; set; } public uint Flags;
public CalendarAddEventInviteInfo[] Invites { get; set; } = new CalendarAddEventInviteInfo[(int)SharedConst.CalendarMaxInvites]; public CalendarAddEventInviteInfo[] Invites = new CalendarAddEventInviteInfo[(int)SharedConst.CalendarMaxInvites];
} }
struct CalendarUpdateEventInfo struct CalendarUpdateEventInfo
{ {
public ulong EventID { get; set; } public ulong EventID;
public ulong ModeratorID { get; set; } public ulong ModeratorID;
public string Title { get; set; } public string Title;
public string Description { get; set; } public string Description;
public byte EventType { get; set; } public byte EventType;
public uint TextureID { get; set; } public uint TextureID;
public long Time { get; set; } public long Time;
public uint Flags { get; set; } public uint Flags;
} }
struct CalendarSendCalendarInviteInfo struct CalendarSendCalendarInviteInfo
@@ -803,12 +803,12 @@ namespace Game.Network.Packets
data.WritePackedGuid(InviterGuid); data.WritePackedGuid(InviterGuid);
} }
public ulong EventID { get; set; } public ulong EventID;
public ulong InviteID { get; set; } public ulong InviteID;
public ObjectGuid InviterGuid { get; set; } public ObjectGuid InviterGuid;
public CalendarInviteStatus Status { get; set; } public CalendarInviteStatus Status;
public CalendarModerationRank Moderator { get; set; } public CalendarModerationRank Moderator;
public byte InviteType { get; set; } public byte InviteType;
} }
struct CalendarSendCalendarRaidLockoutInfo struct CalendarSendCalendarRaidLockoutInfo
{ {
@@ -820,10 +820,10 @@ namespace Game.Network.Packets
data.WriteUInt32(ExpireTime); data.WriteUInt32(ExpireTime);
} }
public ulong InstanceID { get; set; } public ulong InstanceID;
public int MapID { get; set; } public int MapID;
public uint DifficultyID { get; set; } public uint DifficultyID;
public long ExpireTime { get; set; } public long ExpireTime;
} }
struct CalendarSendCalendarEventInfo struct CalendarSendCalendarEventInfo
@@ -843,14 +843,14 @@ namespace Game.Network.Packets
data.WriteString(EventName); data.WriteString(EventName);
} }
public ulong EventID { get; set; } public ulong EventID;
public string EventName { get; set; } public string EventName;
public CalendarEventType EventType { get; set; } public CalendarEventType EventType;
public long Date { get; set; } public long Date;
public CalendarFlags Flags { get; set; } public CalendarFlags Flags;
public int TextureID { get; set; } public int TextureID;
public ObjectGuid EventGuildID { get; set; } public ObjectGuid EventGuildID;
public ObjectGuid OwnerGuid { get; set; } public ObjectGuid OwnerGuid;
} }
class CalendarEventInviteInfo class CalendarEventInviteInfo
@@ -872,14 +872,14 @@ namespace Game.Network.Packets
data.WriteString(Notes); data.WriteString(Notes);
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
public ulong InviteID { get; set; } public ulong InviteID;
public long ResponseTime { get; set; } public long ResponseTime;
public byte Level { get; set; } = 1; public byte Level = 1;
public CalendarInviteStatus Status { get; set; } public CalendarInviteStatus Status;
public CalendarModerationRank Moderator { get; set; } public CalendarModerationRank Moderator;
public byte InviteType { get; set; } public byte InviteType;
public string Notes { get; set; } public string Notes;
} }
class CalendarEventInitialInviteInfo class CalendarEventInitialInviteInfo
@@ -890,7 +890,7 @@ namespace Game.Network.Packets
Level = level; Level = level;
} }
public ObjectGuid InviteGuid { get; set; } public ObjectGuid InviteGuid;
public byte Level { get; set; } = 100; public byte Level = 100;
} }
} }
+49 -49
View File
@@ -44,10 +44,10 @@ namespace Game.Network.Packets
} }
} }
public List<ChannelPlayer> Members { get; set; } public List<ChannelPlayer> Members;
public string Channel; // Channel Name public string Channel; // Channel Name
public ChannelFlags ChannelFlags { get; set; } public ChannelFlags ChannelFlags;
public bool Display { get; set; } public bool Display;
public struct ChannelPlayer public struct ChannelPlayer
{ {
@@ -59,8 +59,8 @@ namespace Game.Network.Packets
} }
public ObjectGuid Guid; // Player Guid public ObjectGuid Guid; // Player Guid
public uint VirtualRealmAddress { get; set; } public uint VirtualRealmAddress;
public ChannelMemberFlags Flags { get; set; } public ChannelMemberFlags Flags;
} }
} }
@@ -91,17 +91,17 @@ namespace Game.Network.Packets
_worldPacket.WriteString(Sender); _worldPacket.WriteString(Sender);
} }
public string Sender { get; set; } = ""; public string Sender = "";
public ObjectGuid SenderGuid { get; set; } public ObjectGuid SenderGuid;
public ObjectGuid SenderAccountID { get; set; } public ObjectGuid SenderAccountID;
public ChatNotify Type { get; set; } public ChatNotify Type;
public ChannelMemberFlags OldFlags { get; set; } public ChannelMemberFlags OldFlags;
public ChannelMemberFlags NewFlags { get; set; } public ChannelMemberFlags NewFlags;
public string Channel { get; set; } public string Channel;
public uint SenderVirtualRealm { get; set; } public uint SenderVirtualRealm;
public ObjectGuid TargetGuid { get; set; } public ObjectGuid TargetGuid;
public uint TargetVirtualRealm { get; set; } public uint TargetVirtualRealm;
public int ChatChannelID { get; set; } public int ChatChannelID;
} }
public class ChannelNotifyJoined : ServerPacket public class ChannelNotifyJoined : ServerPacket
@@ -119,11 +119,11 @@ namespace Game.Network.Packets
_worldPacket.WriteString(ChannelWelcomeMsg); _worldPacket.WriteString(ChannelWelcomeMsg);
} }
public string ChannelWelcomeMsg { get; set; } = ""; public string ChannelWelcomeMsg = "";
public int ChatChannelID { get; set; } public int ChatChannelID;
public int InstanceID { get; set; } public int InstanceID;
public ChannelFlags ChannelFlags { get; set; } public ChannelFlags ChannelFlags;
public string Channel { get; set; } = ""; public string Channel = "";
} }
public class ChannelNotifyLeft : ServerPacket public class ChannelNotifyLeft : ServerPacket
@@ -138,9 +138,9 @@ namespace Game.Network.Packets
_worldPacket.WriteString(Channel); _worldPacket.WriteString(Channel);
} }
public string Channel { get; set; } public string Channel;
public uint ChatChannelID { get; set; } public uint ChatChannelID;
public bool Suspended { get; set; } public bool Suspended;
} }
class UserlistAdd : ServerPacket class UserlistAdd : ServerPacket
@@ -159,11 +159,11 @@ namespace Game.Network.Packets
_worldPacket.WriteString(ChannelName); _worldPacket.WriteString(ChannelName);
} }
public ObjectGuid AddedUserGUID { get; set; } public ObjectGuid AddedUserGUID;
public ChannelFlags ChannelFlags { get; set; } public ChannelFlags ChannelFlags;
public ChannelMemberFlags UserFlags { get; set; } public ChannelMemberFlags UserFlags;
public uint ChannelID { get; set; } public uint ChannelID;
public string ChannelName { get; set; } public string ChannelName;
} }
class UserlistRemove : ServerPacket class UserlistRemove : ServerPacket
@@ -181,10 +181,10 @@ namespace Game.Network.Packets
_worldPacket.WriteString(ChannelName); _worldPacket.WriteString(ChannelName);
} }
public ObjectGuid RemovedUserGUID { get; set; } public ObjectGuid RemovedUserGUID;
public ChannelFlags ChannelFlags { get; set; } public ChannelFlags ChannelFlags;
public uint ChannelID { get; set; } public uint ChannelID;
public string ChannelName { get; set; } public string ChannelName;
} }
class UserlistUpdate : ServerPacket class UserlistUpdate : ServerPacket
@@ -203,11 +203,11 @@ namespace Game.Network.Packets
_worldPacket.WriteString(ChannelName); _worldPacket.WriteString(ChannelName);
} }
public ObjectGuid UpdatedUserGUID { get; set; } public ObjectGuid UpdatedUserGUID;
public ChannelFlags ChannelFlags { get; set; } public ChannelFlags ChannelFlags;
public ChannelMemberFlags UserFlags { get; set; } public ChannelMemberFlags UserFlags;
public uint ChannelID { get; set; } public uint ChannelID;
public string ChannelName { get; set; } public string ChannelName;
} }
class ChannelCommand : ClientPacket class ChannelCommand : ClientPacket
@@ -234,7 +234,7 @@ namespace Game.Network.Packets
ChannelName = _worldPacket.ReadString(_worldPacket.ReadBits<uint>(7)); ChannelName = _worldPacket.ReadString(_worldPacket.ReadBits<uint>(7));
} }
public string ChannelName { get; set; } public string ChannelName;
} }
class ChannelPlayerCommand : ClientPacket class ChannelPlayerCommand : ClientPacket
@@ -269,7 +269,7 @@ namespace Game.Network.Packets
Name = _worldPacket.ReadString(nameLength); Name = _worldPacket.ReadString(nameLength);
} }
public string ChannelName { get; set; } public string ChannelName;
public string Name; public string Name;
} }
@@ -285,8 +285,8 @@ namespace Game.Network.Packets
Password = _worldPacket.ReadString(passwordLength); Password = _worldPacket.ReadString(passwordLength);
} }
public string ChannelName { get; set; } public string ChannelName;
public string Password { get; set; } public string Password;
} }
public class JoinChannel : ClientPacket public class JoinChannel : ClientPacket
@@ -304,11 +304,11 @@ namespace Game.Network.Packets
Password = _worldPacket.ReadString(passwordLength); Password = _worldPacket.ReadString(passwordLength);
} }
public string Password { get; set; } public string Password;
public string ChannelName { get; set; } public string ChannelName;
public bool CreateVoiceSession { get; set; } public bool CreateVoiceSession;
public int ChatChannelId { get; set; } public int ChatChannelId;
public bool Internal { get; set; } public bool Internal;
} }
public class LeaveChannel : ClientPacket public class LeaveChannel : ClientPacket
@@ -321,7 +321,7 @@ namespace Game.Network.Packets
ChannelName = _worldPacket.ReadString(_worldPacket.ReadBits<uint>(7)); ChannelName = _worldPacket.ReadString(_worldPacket.ReadBits<uint>(7));
} }
public int ZoneChannelID { get; set; } public int ZoneChannelID;
public string ChannelName { get; set; } public string ChannelName;
} }
} }
+146 -146
View File
@@ -106,17 +106,17 @@ namespace Game.Network.Packets
} }
} }
public bool Success { get; set; } public bool Success;
public bool IsDeletedCharacters; // used for character undelete list public bool IsDeletedCharacters; // used for character undelete list
public bool IsDemonHunterCreationAllowed { get; set; } = false; ///< used for demon hunter early access public bool IsDemonHunterCreationAllowed = false; ///< used for demon hunter early access
public bool HasDemonHunterOnRealm { get; set; } = false; public bool HasDemonHunterOnRealm = false;
public bool HasLevel70OnRealm { get; set; } = false; public bool HasLevel70OnRealm = false;
public bool Unknown7x { get; set; } = false; public bool Unknown7x = false;
public Optional<uint> DisabledClassesMask { get; set; } = new Optional<uint>(); public Optional<uint> DisabledClassesMask = new Optional<uint>();
public List<CharacterInfo> Characters { get; set; } = new List<CharacterInfo>(); // all characters on the list public List<CharacterInfo> Characters = new List<CharacterInfo>(); // all characters on the list
public List<RestrictedFactionChangeRuleInfo> FactionChangeRestrictions { get; set; } = new List<RestrictedFactionChangeRuleInfo>(); // @todo: research public List<RestrictedFactionChangeRuleInfo> FactionChangeRestrictions = new List<RestrictedFactionChangeRuleInfo>(); // @todo: research
public class CharacterInfo public class CharacterInfo
{ {
@@ -222,48 +222,48 @@ namespace Game.Network.Packets
} }
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
public string Name { get; set; } public string Name;
public byte ListPosition; // Order of the characters in list public byte ListPosition; // Order of the characters in list
public byte RaceId { get; set; } public byte RaceId;
public Class ClassId { get; set; } public Class ClassId;
public byte Sex { get; set; } public byte Sex;
public byte Skin { get; set; } public byte Skin;
public byte Face { get; set; } public byte Face;
public byte HairStyle { get; set; } public byte HairStyle;
public byte HairColor { get; set; } public byte HairColor;
public byte FacialHair { get; set; } public byte FacialHair;
public Array<byte> CustomDisplay { get; set; } = new Array<byte>(PlayerConst.CustomDisplaySize); public Array<byte> CustomDisplay = new Array<byte>(PlayerConst.CustomDisplaySize);
public byte Level { get; set; } public byte Level;
public uint ZoneId { get; set; } public uint ZoneId;
public uint MapId { get; set; } public uint MapId;
public Vector3 PreLoadPosition { get; set; } public Vector3 PreLoadPosition;
public ObjectGuid GuildGuid { get; set; } public ObjectGuid GuildGuid;
public CharacterFlags Flags; // Character flag @see enum CharacterFlags public CharacterFlags Flags; // Character flag @see enum CharacterFlags
public CharacterCustomizeFlags CustomizationFlag; // Character customization flags @see enum CharacterCustomizeFlags public CharacterCustomizeFlags CustomizationFlag; // Character customization flags @see enum CharacterCustomizeFlags
public uint Flags3; // Character flags 3 @todo research public uint Flags3; // Character flags 3 @todo research
public uint Flags4 { get; set; } public uint Flags4;
public bool FirstLogin { get; set; } public bool FirstLogin;
public byte unkWod61x { get; set; } public byte unkWod61x;
public uint LastPlayedTime { get; set; } public uint LastPlayedTime;
public ushort SpecID { get; set; } public ushort SpecID;
public uint Unknown703 { get; set; } public uint Unknown703;
public PetInfo Pet = new PetInfo(); public PetInfo Pet = new PetInfo();
public bool BoostInProgress; // @todo public bool BoostInProgress; // @todo
public uint[] ProfessionIds { get; set; } = new uint[2]; // @todo public uint[] ProfessionIds = new uint[2]; // @todo
public VisualItemInfo[] VisualItems { get; set; } = new VisualItemInfo[InventorySlots.BagEnd]; public VisualItemInfo[] VisualItems = new VisualItemInfo[InventorySlots.BagEnd];
public struct VisualItemInfo public struct VisualItemInfo
{ {
public uint DisplayId { get; set; } public uint DisplayId;
public uint DisplayEnchantId { get; set; } public uint DisplayEnchantId;
public byte InventoryType { get; set; } public byte InventoryType;
} }
public struct PetInfo public struct PetInfo
{ {
public uint CreatureDisplayId; // PetCreatureDisplayId public uint CreatureDisplayId; // PetCreatureDisplayID
public uint Level; // PetExperienceLevel public uint Level; // PetExperienceLevel
public uint CreatureFamily; // PetCreatureFamilyId public uint CreatureFamily; // PetCreatureFamilyID
} }
} }
@@ -275,8 +275,8 @@ namespace Game.Network.Packets
Race = race; Race = race;
} }
public uint Mask { get; set; } public uint Mask;
public byte Race { get; set; } public byte Race;
} }
} }
@@ -319,7 +319,7 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt8(Code); _worldPacket.WriteUInt8(Code);
} }
public ResponseCodes Code { get; set; } public ResponseCodes Code;
} }
public class CharDelete : ClientPacket public class CharDelete : ClientPacket
@@ -343,7 +343,7 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt8(Code); _worldPacket.WriteUInt8(Code);
} }
public ResponseCodes Code { get; set; } public ResponseCodes Code;
} }
public class CharacterRenameRequest : ClientPacket public class CharacterRenameRequest : ClientPacket
@@ -357,7 +357,7 @@ namespace Game.Network.Packets
RenameInfo.NewName = _worldPacket.ReadString(_worldPacket.ReadBits<uint>(6)); RenameInfo.NewName = _worldPacket.ReadString(_worldPacket.ReadBits<uint>(6));
} }
public CharacterRenameInfo RenameInfo { get; set; } public CharacterRenameInfo RenameInfo;
} }
public class CharacterRenameResult : ServerPacket public class CharacterRenameResult : ServerPacket
@@ -380,9 +380,9 @@ namespace Game.Network.Packets
_worldPacket.WriteString(Name); _worldPacket.WriteString(Name);
} }
public string Name { get; set; } public string Name;
public ResponseCodes Result { get; set; } = 0; public ResponseCodes Result = 0;
public Optional<ObjectGuid> Guid { get; set; } public Optional<ObjectGuid> Guid;
} }
public class CharCustomize : ClientPacket public class CharCustomize : ClientPacket
@@ -406,7 +406,7 @@ namespace Game.Network.Packets
CustomizeInfo.CharName = _worldPacket.ReadString(_worldPacket.ReadBits<uint>(6)); CustomizeInfo.CharName = _worldPacket.ReadString(_worldPacket.ReadBits<uint>(6));
} }
public CharCustomizeInfo CustomizeInfo { get; set; } public CharCustomizeInfo CustomizeInfo;
} }
// @todo: CharCustomizeResult // @todo: CharCustomizeResult
@@ -439,7 +439,7 @@ namespace Game.Network.Packets
RaceOrFactionChangeInfo.Name = _worldPacket.ReadString(nameLength); RaceOrFactionChangeInfo.Name = _worldPacket.ReadString(nameLength);
} }
public CharRaceOrFactionChangeInfo RaceOrFactionChangeInfo { get; set; } public CharRaceOrFactionChangeInfo RaceOrFactionChangeInfo;
} }
public class CharFactionChangeResult : ServerPacket public class CharFactionChangeResult : ServerPacket
@@ -471,21 +471,21 @@ namespace Game.Network.Packets
} }
} }
public ResponseCodes Result { get; set; } = 0; public ResponseCodes Result = 0;
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
public Optional<CharFactionChangeDisplayInfo> Display; public Optional<CharFactionChangeDisplayInfo> Display;
public class CharFactionChangeDisplayInfo public class CharFactionChangeDisplayInfo
{ {
public string Name { get; set; } public string Name;
public byte SexID { get; set; } public byte SexID;
public byte SkinID { get; set; } public byte SkinID;
public byte HairColorID { get; set; } public byte HairColorID;
public byte HairStyleID { get; set; } public byte HairStyleID;
public byte FacialHairStyleID { get; set; } public byte FacialHairStyleID;
public byte FaceID { get; set; } public byte FaceID;
public byte RaceID { get; set; } public byte RaceID;
public Array<byte> CustomDisplay { get; set; } = new Array<byte>(PlayerConst.CustomDisplaySize); public Array<byte> CustomDisplay = new Array<byte>(PlayerConst.CustomDisplaySize);
} }
} }
@@ -499,8 +499,8 @@ namespace Game.Network.Packets
Sex = _worldPacket.ReadUInt8(); Sex = _worldPacket.ReadUInt8();
} }
public byte Sex { get; set; } public byte Sex;
public byte Race { get; set; } public byte Race;
} }
public class GenerateRandomCharacterNameResult : ServerPacket public class GenerateRandomCharacterNameResult : ServerPacket
@@ -515,8 +515,8 @@ namespace Game.Network.Packets
_worldPacket.WriteString(Name); _worldPacket.WriteString(Name);
} }
public string Name { get; set; } public string Name;
public bool Success { get; set; } public bool Success;
} }
public class ReorderCharacters : ClientPacket public class ReorderCharacters : ClientPacket
@@ -528,19 +528,19 @@ namespace Game.Network.Packets
uint count = _worldPacket.ReadBits<uint>(9); uint count = _worldPacket.ReadBits<uint>(9);
for (var i = 0; i < count && i < WorldConfig.GetIntValue(WorldCfg.CharactersPerRealm); ++i) for (var i = 0; i < count && i < WorldConfig.GetIntValue(WorldCfg.CharactersPerRealm); ++i)
{ {
ReorderInfo reorderInfo = new ReorderInfo(); ReorderInfo reorderInfo;
reorderInfo.PlayerGUID = _worldPacket.ReadPackedGuid(); reorderInfo.PlayerGUID = _worldPacket.ReadPackedGuid();
reorderInfo.NewPosition = _worldPacket.ReadUInt8(); reorderInfo.NewPosition = _worldPacket.ReadUInt8();
Entries[i] = reorderInfo; Entries[i] = reorderInfo;
} }
} }
public ReorderInfo[] Entries { get; set; } = new ReorderInfo[WorldConfig.GetIntValue(WorldCfg.CharactersPerRealm)]; public ReorderInfo[] Entries = new ReorderInfo[WorldConfig.GetIntValue(WorldCfg.CharactersPerRealm)];
public struct ReorderInfo public struct ReorderInfo
{ {
public ObjectGuid PlayerGUID { get; set; } public ObjectGuid PlayerGUID;
public byte NewPosition { get; set; } public byte NewPosition;
} }
} }
@@ -555,7 +555,7 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(UndeleteInfo.CharacterGuid); _worldPacket.WritePackedGuid(UndeleteInfo.CharacterGuid);
} }
public CharacterUndeleteInfo UndeleteInfo { get; set; } public CharacterUndeleteInfo UndeleteInfo;
} }
public class UndeleteCharacterResponse : ServerPacket public class UndeleteCharacterResponse : ServerPacket
@@ -570,8 +570,8 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(UndeleteInfo.CharacterGuid); _worldPacket.WritePackedGuid(UndeleteInfo.CharacterGuid);
} }
public CharacterUndeleteInfo UndeleteInfo { get; set; } public CharacterUndeleteInfo UndeleteInfo;
public CharacterUndeleteResult Result { get; set; } public CharacterUndeleteResult Result;
} }
public class GetUndeleteCharacterCooldownStatus : ClientPacket public class GetUndeleteCharacterCooldownStatus : ClientPacket
@@ -592,9 +592,9 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(CurrentCooldown); _worldPacket.WriteUInt32(CurrentCooldown);
} }
public bool OnCooldown { get; set; } public bool OnCooldown; //
public uint MaxCooldown { get; set; } // Max. cooldown until next free character restoration. Displayed in undelete confirm message. (in sec) public uint MaxCooldown; // Max. cooldown until next free character restoration. Displayed in undelete confirm message. (in sec)
public uint CurrentCooldown { get; set; } // Current cooldown until next free character restoration. (in sec) public uint CurrentCooldown; // Current cooldown until next free character restoration. (in sec)
} }
public class PlayerLogin : ClientPacket public class PlayerLogin : ClientPacket
@@ -607,8 +607,8 @@ namespace Game.Network.Packets
FarClip = _worldPacket.ReadFloat(); FarClip = _worldPacket.ReadFloat();
} }
public ObjectGuid Guid; // Guid of the player that is logging in public ObjectGuid Guid; // Guid of the player that is logging in
float FarClip = 0.0f; // Visibility distance (for terrain) float FarClip = 0.0f; // Visibility distance (for terrain)
} }
public class LoginVerifyWorld : ServerPacket public class LoginVerifyWorld : ServerPacket
@@ -625,9 +625,9 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(Reason); _worldPacket.WriteUInt32(Reason);
} }
public int MapID { get; set; } = -1; public int MapID = -1;
public Position Pos { get; set; } public Position Pos;
public uint Reason { get; set; } = 0; public uint Reason = 0;
} }
public class CharacterLoginFailed : ServerPacket public class CharacterLoginFailed : ServerPacket
@@ -668,8 +668,8 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public int LogoutResult { get; set; } public int LogoutResult;
public bool Instant { get; set; } = false; public bool Instant = false;
} }
public class LogoutComplete : ServerPacket public class LogoutComplete : ServerPacket
@@ -717,8 +717,8 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt8(ServerExpansionTier); _worldPacket.WriteUInt8(ServerExpansionTier);
} }
public byte ServerExpansionTier { get; set; } public byte ServerExpansionTier;
public byte ServerExpansionLevel { get; set; } public byte ServerExpansionLevel;
} }
public class SetActionBarToggles : ClientPacket public class SetActionBarToggles : ClientPacket
@@ -730,7 +730,7 @@ namespace Game.Network.Packets
Mask = _worldPacket.ReadUInt8(); Mask = _worldPacket.ReadUInt8();
} }
public byte Mask { get; set; } public byte Mask;
} }
public class RequestPlayedTime : ClientPacket public class RequestPlayedTime : ClientPacket
@@ -742,7 +742,7 @@ namespace Game.Network.Packets
TriggerScriptEvent = _worldPacket.HasBit(); TriggerScriptEvent = _worldPacket.HasBit();
} }
public bool TriggerScriptEvent { get; set; } public bool TriggerScriptEvent;
} }
public class PlayedTime : ServerPacket public class PlayedTime : ServerPacket
@@ -757,14 +757,14 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public uint TotalTime { get; set; } public uint TotalTime;
public uint LevelTime { get; set; } public uint LevelTime;
public bool TriggerEvent { get; set; } public bool TriggerEvent;
} }
public class SetTitle : ClientPacket public class SetTitle : ClientPacket
{ {
public int TitleID { get; set; } public int TitleID;
public SetTitle(WorldPacket packet) : base(packet) { } public SetTitle(WorldPacket packet) : base(packet) { }
@@ -790,12 +790,12 @@ namespace Game.Network.Packets
NewCustomDisplay.Add(_worldPacket.ReadUInt32()); NewCustomDisplay.Add(_worldPacket.ReadUInt32());
} }
public uint NewHairStyle { get; set; } public uint NewHairStyle;
public uint NewHairColor { get; set; } public uint NewHairColor;
public uint NewFacialHair { get; set; } public uint NewFacialHair;
public uint NewSkinColor { get; set; } public uint NewSkinColor;
public uint NewFace { get; set; } public uint NewFace;
public Array<uint> NewCustomDisplay { get; set; } = new Array<uint>(PlayerConst.CustomDisplaySize); public Array<uint> NewCustomDisplay = new Array<uint>(PlayerConst.CustomDisplaySize);
} }
public class BarberShopResult : ServerPacket public class BarberShopResult : ServerPacket
@@ -810,7 +810,7 @@ namespace Game.Network.Packets
_worldPacket.WriteInt32(Result); _worldPacket.WriteInt32(Result);
} }
public ResultEnum Result { get; set; } public ResultEnum Result;
public enum ResultEnum public enum ResultEnum
{ {
@@ -836,12 +836,12 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public ObjectGuid Victim { get; set; } public ObjectGuid Victim;
public int Original { get; set; } public int Original;
public PlayerLogXPReason Reason { get; set; } public PlayerLogXPReason Reason;
public int Amount { get; set; } public int Amount;
public float GroupBonus { get; set; } public float GroupBonus;
public bool ReferAFriend { get; set; } public bool ReferAFriend;
} }
class TitleEarned : ServerPacket class TitleEarned : ServerPacket
@@ -853,7 +853,7 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(Index); _worldPacket.WriteUInt32(Index);
} }
public uint Index { get; set; } public uint Index;
} }
class SetFactionAtWar : ClientPacket class SetFactionAtWar : ClientPacket
@@ -865,7 +865,7 @@ namespace Game.Network.Packets
FactionIndex = _worldPacket.ReadUInt8(); FactionIndex = _worldPacket.ReadUInt8();
} }
public byte FactionIndex { get; set; } public byte FactionIndex;
} }
class SetFactionNotAtWar : ClientPacket class SetFactionNotAtWar : ClientPacket
@@ -877,7 +877,7 @@ namespace Game.Network.Packets
FactionIndex = _worldPacket.ReadUInt8(); FactionIndex = _worldPacket.ReadUInt8();
} }
public byte FactionIndex { get; set; } public byte FactionIndex;
} }
class SetFactionInactive : ClientPacket class SetFactionInactive : ClientPacket
@@ -890,8 +890,8 @@ namespace Game.Network.Packets
State = _worldPacket.HasBit(); State = _worldPacket.HasBit();
} }
public uint Index { get; set; } public uint Index;
public bool State { get; set; } public bool State;
} }
class SetWatchedFaction : ClientPacket class SetWatchedFaction : ClientPacket
@@ -903,7 +903,7 @@ namespace Game.Network.Packets
FactionIndex = _worldPacket.ReadUInt32(); FactionIndex = _worldPacket.ReadUInt32();
} }
public uint FactionIndex { get; set; } public uint FactionIndex;
} }
class SetFactionVisible : ServerPacket class SetFactionVisible : ServerPacket
@@ -915,7 +915,7 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(FactionIndex); _worldPacket.WriteUInt32(FactionIndex);
} }
public uint FactionIndex { get; set; } public uint FactionIndex;
} }
class CharCustomizeResponse : ServerPacket class CharCustomizeResponse : ServerPacket
@@ -956,7 +956,7 @@ namespace Game.Network.Packets
byte HairStyleID; byte HairStyleID;
byte FacialHairStyleID; byte FacialHairStyleID;
byte FaceID; byte FaceID;
public Array<byte> CustomDisplay { get; set; } = new Array<byte>(PlayerConst.CustomDisplaySize); public Array<byte> CustomDisplay = new Array<byte>(PlayerConst.CustomDisplaySize);
} }
class CharCustomizeFailed : ServerPacket class CharCustomizeFailed : ServerPacket
@@ -969,8 +969,8 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(CharGUID); _worldPacket.WritePackedGuid(CharGUID);
} }
public byte Result { get; set; } public byte Result;
public ObjectGuid CharGUID { get; set; } public ObjectGuid CharGUID;
} }
class SetPlayerDeclinedNames : ClientPacket class SetPlayerDeclinedNames : ClientPacket
@@ -993,8 +993,8 @@ namespace Game.Network.Packets
DeclinedNames.name[i] = _worldPacket.ReadString(stringLengths[i]); DeclinedNames.name[i] = _worldPacket.ReadString(stringLengths[i]);
} }
public ObjectGuid Player { get; set; } public ObjectGuid Player;
public DeclinedName DeclinedNames { get; set; } public DeclinedName DeclinedNames;
} }
class SetPlayerDeclinedNamesResult : ServerPacket class SetPlayerDeclinedNamesResult : ServerPacket
@@ -1007,71 +1007,71 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(Player); _worldPacket.WritePackedGuid(Player);
} }
public ObjectGuid Player { get; set; } public ObjectGuid Player;
public DeclinedNameResult ResultCode { get; set; } public DeclinedNameResult ResultCode;
} }
//Structs //Structs
public class CharacterCreateInfo public class CharacterCreateInfo
{ {
// User specified variables // User specified variables
public Race RaceId { get; set; } = Race.None; public Race RaceId = Race.None;
public Class ClassId { get; set; } = Class.None; public Class ClassId = Class.None;
public Gender Sex { get; set; } = Gender.None; public Gender Sex = Gender.None;
public byte Skin { get; set; } = 0; public byte Skin = 0;
public byte Face { get; set; } = 0; public byte Face = 0;
public byte HairStyle { get; set; } = 0; public byte HairStyle = 0;
public byte HairColor { get; set; } = 0; public byte HairColor = 0;
public byte FacialHairStyle { get; set; } = 0; public byte FacialHairStyle = 0;
public Array<byte> CustomDisplay { get; set; } = new Array<byte>(PlayerConst.CustomDisplaySize); public Array<byte> CustomDisplay = new Array<byte>(PlayerConst.CustomDisplaySize);
public byte OutfitId { get; set; } = 0; public byte OutfitId = 0;
public Optional<uint> TemplateSet = new Optional<uint>(); public Optional<uint> TemplateSet = new Optional<uint>();
public string Name; public string Name;
// Server side data // Server side data
public byte CharCount { get; set; } = 0; public byte CharCount = 0;
} }
public class CharacterRenameInfo public class CharacterRenameInfo
{ {
public string NewName; public string NewName;
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
} }
public class CharCustomizeInfo public class CharCustomizeInfo
{ {
public byte HairStyleID { get; set; } = 0; public byte HairStyleID = 0;
public byte FaceID { get; set; } = 0; public byte FaceID = 0;
public ObjectGuid CharGUID { get; set; } public ObjectGuid CharGUID;
public Gender SexID { get; set; } = Gender.None; public Gender SexID = Gender.None;
public string CharName; public string CharName;
public byte HairColorID { get; set; } = 0; public byte HairColorID = 0;
public byte FacialHairStyleID { get; set; } = 0; public byte FacialHairStyleID = 0;
public byte SkinID { get; set; } = 0; public byte SkinID = 0;
public Array<byte> CustomDisplay { get; set; } = new Array<byte>(PlayerConst.CustomDisplaySize); public Array<byte> CustomDisplay = new Array<byte>(PlayerConst.CustomDisplaySize);
} }
public class CharRaceOrFactionChangeInfo public class CharRaceOrFactionChangeInfo
{ {
public byte HairColorID { get; set; } public byte HairColorID;
public Race RaceID { get; set; } = Race.None; public Race RaceID = Race.None;
public Gender SexID { get; set; } = Gender.None; public Gender SexID = Gender.None;
public byte SkinID { get; set; } public byte SkinID;
public byte FacialHairStyleID { get; set; } public byte FacialHairStyleID;
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
public bool FactionChange { get; set; } = false; public bool FactionChange = false;
public string Name; public string Name;
public byte FaceID { get; set; } public byte FaceID;
public byte HairStyleID { get; set; } public byte HairStyleID;
public Array<byte> CustomDisplay { get; set; } = new Array<byte>(PlayerConst.CustomDisplaySize); public Array<byte> CustomDisplay = new Array<byte>(PlayerConst.CustomDisplaySize);
} }
public class CharacterUndeleteInfo public class CharacterUndeleteInfo
{ // User specified variables { // User specified variables
public ObjectGuid CharacterGuid; // Guid of the character to restore public ObjectGuid CharacterGuid; // Guid of the character to restore
public int ClientToken { get; set; } = 0; // @todo: research public int ClientToken = 0; // @todo: research
// Server side data // Server side data
public string Name { get; set; } public string Name;
} }
} }
+56 -56
View File
@@ -32,8 +32,8 @@ namespace Game.Network.Packets
Text = _worldPacket.ReadString(len); Text = _worldPacket.ReadString(len);
} }
public string Text { get; set; } public string Text;
public Language Language { get; set; } = Language.Universal; public Language Language = Language.Universal;
} }
public class ChatMessageWhisper : ClientPacket public class ChatMessageWhisper : ClientPacket
@@ -49,9 +49,9 @@ namespace Game.Network.Packets
Text = _worldPacket.ReadString(textLen); Text = _worldPacket.ReadString(textLen);
} }
public Language Language { get; set; } = Language.Universal; public Language Language = Language.Universal;
public string Text { get; set; } public string Text;
public string Target { get; set; } public string Target;
} }
public class ChatMessageChannel : ClientPacket public class ChatMessageChannel : ClientPacket
@@ -67,9 +67,9 @@ namespace Game.Network.Packets
Text = _worldPacket.ReadString(textLen); Text = _worldPacket.ReadString(textLen);
} }
public Language Language { get; set; } = Language.Universal; public Language Language = Language.Universal;
public string Text { get; set; } public string Text;
public string Target { get; set; } public string Target;
} }
public class ChatAddonMessage : ClientPacket public class ChatAddonMessage : ClientPacket
@@ -84,8 +84,8 @@ namespace Game.Network.Packets
Text = _worldPacket.ReadString(textLen); Text = _worldPacket.ReadString(textLen);
} }
public string Prefix { get; set; } public string Prefix;
public string Text { get; set; } public string Text;
} }
public class ChatAddonMessageWhisper : ClientPacket public class ChatAddonMessageWhisper : ClientPacket
@@ -102,9 +102,9 @@ namespace Game.Network.Packets
Text = _worldPacket.ReadString(textLen); Text = _worldPacket.ReadString(textLen);
} }
public string Prefix { get; set; } public string Prefix;
public string Target { get; set; } public string Target;
public string Text { get; set; } public string Text;
} }
class ChatAddonMessageChannel : ClientPacket class ChatAddonMessageChannel : ClientPacket
@@ -121,9 +121,9 @@ namespace Game.Network.Packets
Text = _worldPacket.ReadString(textLen); Text = _worldPacket.ReadString(textLen);
} }
public string Text { get; set; } public string Text;
public string Target { get; set; } public string Target;
public string Prefix { get; set; } public string Prefix;
} }
public class ChatMessageDND : ClientPacket public class ChatMessageDND : ClientPacket
@@ -136,7 +136,7 @@ namespace Game.Network.Packets
Text = _worldPacket.ReadString(len); Text = _worldPacket.ReadString(len);
} }
public string Text { get; set; } public string Text;
} }
public class ChatMessageAFK : ClientPacket public class ChatMessageAFK : ClientPacket
@@ -149,7 +149,7 @@ namespace Game.Network.Packets
Text = _worldPacket.ReadString(len); Text = _worldPacket.ReadString(len);
} }
public string Text { get; set; } public string Text;
} }
public class ChatMessageEmote : ClientPacket public class ChatMessageEmote : ClientPacket
@@ -162,7 +162,7 @@ namespace Game.Network.Packets
Text = _worldPacket.ReadString(len); Text = _worldPacket.ReadString(len);
} }
public string Text { get; set; } public string Text;
} }
public class ChatPkt : ServerPacket public class ChatPkt : ServerPacket
@@ -260,25 +260,25 @@ namespace Game.Network.Packets
_worldPacket.WriteString(ChatText); _worldPacket.WriteString(ChatText);
} }
public ChatMsg SlashCmd { get; set; } = 0; public ChatMsg SlashCmd = 0;
public Language _Language { get; set; } = Language.Universal; public Language _Language = Language.Universal;
public ObjectGuid SenderGUID { get; set; } public ObjectGuid SenderGUID;
public ObjectGuid SenderGuildGUID { get; set; } public ObjectGuid SenderGuildGUID;
public ObjectGuid SenderAccountGUID { get; set; } public ObjectGuid SenderAccountGUID;
public ObjectGuid TargetGUID { get; set; } public ObjectGuid TargetGUID;
public ObjectGuid PartyGUID { get; set; } public ObjectGuid PartyGUID;
public uint SenderVirtualAddress { get; set; } public uint SenderVirtualAddress;
public uint TargetVirtualAddress { get; set; } public uint TargetVirtualAddress;
public string SenderName { get; set; } = ""; public string SenderName = "";
public string TargetName { get; set; } = ""; public string TargetName = "";
public string Prefix { get; set; } = ""; public string Prefix = "";
public string Channel { get; set; } = ""; public string Channel = "";
public string ChatText { get; set; } = ""; public string ChatText = "";
public uint AchievementID { get; set; } = 0; public uint AchievementID = 0;
public ChatFlags _ChatFlags { get; set; } = 0; public ChatFlags _ChatFlags = 0;
public float DisplayTime { get; set; } = 0.0f; public float DisplayTime = 0.0f;
public bool HideChatLog { get; set; } = false; public bool HideChatLog = false;
public bool FakeSenderName { get; set; } = false; public bool FakeSenderName = false;
} }
public class EmoteMessage : ServerPacket public class EmoteMessage : ServerPacket
@@ -291,8 +291,8 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(EmoteID); _worldPacket.WriteUInt32(EmoteID);
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
public int EmoteID { get; set; } public int EmoteID;
} }
public class CTextEmote : ClientPacket public class CTextEmote : ClientPacket
@@ -306,9 +306,9 @@ namespace Game.Network.Packets
SoundIndex = _worldPacket.ReadInt32(); SoundIndex = _worldPacket.ReadInt32();
} }
public ObjectGuid Target { get; set; } public ObjectGuid Target;
public int EmoteID { get; set; } public int EmoteID;
public int SoundIndex { get; set; } public int SoundIndex;
} }
public class STextEmote : ServerPacket public class STextEmote : ServerPacket
@@ -324,11 +324,11 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(TargetGUID); _worldPacket.WritePackedGuid(TargetGUID);
} }
public ObjectGuid SourceGUID { get; set; } public ObjectGuid SourceGUID;
public ObjectGuid SourceAccountGUID { get; set; } public ObjectGuid SourceAccountGUID;
public ObjectGuid TargetGUID { get; set; } public ObjectGuid TargetGUID;
public int SoundIndex { get; set; } = -1; public int SoundIndex = -1;
public int EmoteID { get; set; } public int EmoteID;
} }
public class PrintNotification : ServerPacket public class PrintNotification : ServerPacket
@@ -344,7 +344,7 @@ namespace Game.Network.Packets
_worldPacket.WriteString(NotifyText); _worldPacket.WriteString(NotifyText);
} }
public string NotifyText { get; set; } public string NotifyText;
} }
public class EmoteClient : ClientPacket public class EmoteClient : ClientPacket
@@ -413,8 +413,8 @@ namespace Game.Network.Packets
_worldPacket.WriteString(StringParam); _worldPacket.WriteString(StringParam);
} }
public int MessageID { get; set; } public int MessageID;
public string StringParam { get; set; } = ""; public string StringParam = "";
} }
class ChatRegisterAddonPrefixes : ClientPacket class ChatRegisterAddonPrefixes : ClientPacket
@@ -429,7 +429,7 @@ namespace Game.Network.Packets
Prefixes[i] = _worldPacket.ReadString(_worldPacket.ReadBits<uint>(5)); Prefixes[i] = _worldPacket.ReadString(_worldPacket.ReadBits<uint>(5));
} }
public string[] Prefixes { get; set; } = new string[64]; public string[] Prefixes = new string[64];
} }
class ChatUnregisterAllAddonPrefixes : ClientPacket class ChatUnregisterAllAddonPrefixes : ClientPacket
@@ -451,8 +451,8 @@ namespace Game.Network.Packets
_worldPacket.WriteString(MessageText); _worldPacket.WriteString(MessageText);
} }
public uint ZoneID { get; set; } public uint ZoneID;
public string MessageText { get; set; } = ""; public string MessageText = "";
} }
class ChatReportIgnored : ClientPacket class ChatReportIgnored : ClientPacket
@@ -465,7 +465,7 @@ namespace Game.Network.Packets
Reason = _worldPacket.ReadUInt8(); Reason = _worldPacket.ReadUInt8();
} }
public ObjectGuid IgnoredGUID { get; set; } public ObjectGuid IgnoredGUID;
public byte Reason { get; set; } public byte Reason;
} }
} }
@@ -33,9 +33,9 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(AccountTimes[i]); _worldPacket.WriteUInt32(AccountTimes[i]);
} }
public ObjectGuid PlayerGuid { get; set; } public ObjectGuid PlayerGuid;
public uint ServerTime { get; set; } = 0; public uint ServerTime = 0;
public uint[] AccountTimes { get; set; } = new uint[(int)AccountDataTypes.Max]; public uint[] AccountTimes = new uint[(int)AccountDataTypes.Max];
} }
public class ClientCacheVersion : ServerPacket public class ClientCacheVersion : ServerPacket
@@ -47,7 +47,7 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(CacheVersion); _worldPacket.WriteUInt32(CacheVersion);
} }
public uint CacheVersion { get; set; } = 0; public uint CacheVersion = 0;
} }
public class RequestAccountData : ClientPacket public class RequestAccountData : ClientPacket
@@ -60,8 +60,8 @@ namespace Game.Network.Packets
DataType = (AccountDataTypes)_worldPacket.ReadBits<uint>(3); DataType = (AccountDataTypes)_worldPacket.ReadBits<uint>(3);
} }
public ObjectGuid PlayerGuid { get; set; } public ObjectGuid PlayerGuid;
public AccountDataTypes DataType { get; set; } = 0; public AccountDataTypes DataType = 0;
} }
public class UpdateAccountData : ServerPacket public class UpdateAccountData : ServerPacket
@@ -80,11 +80,11 @@ namespace Game.Network.Packets
_worldPacket.WriteBytes(bytes); _worldPacket.WriteBytes(bytes);
} }
public ObjectGuid Player { get; set; } public ObjectGuid Player;
public uint Time { get; set; } = 0; // UnixTime public uint Time = 0; // UnixTime
public uint Size { get; set; } = 0; // decompressed size public uint Size = 0; // decompressed size
public AccountDataTypes DataType { get; set; } = 0; public AccountDataTypes DataType = 0;
public ByteBuffer CompressedData { get; set; } public ByteBuffer CompressedData;
} }
public class UserClientUpdateAccountData : ClientPacket public class UserClientUpdateAccountData : ClientPacket
@@ -105,11 +105,11 @@ namespace Game.Network.Packets
} }
} }
public ObjectGuid PlayerGuid { get; set; } public ObjectGuid PlayerGuid;
public uint Time { get; set; } = 0; // UnixTime public uint Time = 0; // UnixTime
public uint Size { get; set; } = 0; // decompressed size public uint Size = 0; // decompressed size
public AccountDataTypes DataType { get; set; } = 0; public AccountDataTypes DataType = 0;
public ByteBuffer CompressedData { get; set; } public ByteBuffer CompressedData;
} }
class SetAdvancedCombatLogging : ClientPacket class SetAdvancedCombatLogging : ClientPacket
@@ -121,6 +121,6 @@ namespace Game.Network.Packets
Enable = _worldPacket.HasBit(); Enable = _worldPacket.HasBit();
} }
public bool Enable { get; set; } public bool Enable;
} }
} }
@@ -36,8 +36,8 @@ namespace Game.Network.Packets
IsFavorite = _worldPacket.HasBit(); IsFavorite = _worldPacket.HasBit();
} }
public CollectionType Type { get; set; } public CollectionType Type;
public uint ID { get; set; } public uint ID;
public bool IsFavorite { get; set; } public bool IsFavorite;
} }
} }
+140 -140
View File
@@ -85,21 +85,21 @@ namespace Game.Network.Packets
SandboxScaling.Value.Write(_worldPacket); SandboxScaling.Value.Write(_worldPacket);
} }
public ObjectGuid Me { get; set; } public ObjectGuid Me;
public ObjectGuid CasterGUID { get; set; } public ObjectGuid CasterGUID;
public ObjectGuid CastID { get; set; } public ObjectGuid CastID;
public int SpellID { get; set; } public int SpellID;
public int SpellXSpellVisualID { get; set; } public int SpellXSpellVisualID;
public int Damage { get; set; } public int Damage;
public int Overkill { get; set; } public int Overkill;
public byte SchoolMask { get; set; } public byte SchoolMask;
public int ShieldBlock { get; set; } public int ShieldBlock;
public int Resisted { get; set; } public int Resisted;
public bool Periodic { get; set; } public bool Periodic;
public int Absorbed { get; set; } public int Absorbed;
public int Flags { get; set; } public int Flags;
// Optional<SpellNonMeleeDamageLogDebugInfo> DebugInfo; // Optional<SpellNonMeleeDamageLogDebugInfo> DebugInfo;
public Optional<SandboxScalingData> SandboxScaling { get; set; } = new Optional<SandboxScalingData>(); public Optional<SandboxScalingData> SandboxScaling = new Optional<SandboxScalingData>();
} }
class EnvironmentalDamageLog : CombatLogServerPacket class EnvironmentalDamageLog : CombatLogServerPacket
@@ -119,11 +119,11 @@ namespace Game.Network.Packets
WriteLogData(); WriteLogData();
} }
public ObjectGuid Victim { get; set; } public ObjectGuid Victim;
public EnviromentalDamage Type { get; set; } public EnviromentalDamage Type;
public int Amount { get; set; } public int Amount;
public int Resisted { get; set; } public int Resisted;
public int Absorbed { get; set; } public int Absorbed;
} }
class SpellExecuteLog : CombatLogServerPacket class SpellExecuteLog : CombatLogServerPacket
@@ -184,20 +184,20 @@ namespace Game.Network.Packets
WriteLogData(); WriteLogData();
} }
public ObjectGuid Caster { get; set; } public ObjectGuid Caster;
public uint SpellID { get; set; } public uint SpellID;
public List<SpellLogEffect> Effects { get; set; } = new List<SpellLogEffect>(); public List<SpellLogEffect> Effects = new List<SpellLogEffect>();
public class SpellLogEffect public class SpellLogEffect
{ {
public int Effect { get; set; } public int Effect;
public List<SpellLogEffectPowerDrainParams> PowerDrainTargets { get; set; } = new List<SpellLogEffectPowerDrainParams>(); public List<SpellLogEffectPowerDrainParams> PowerDrainTargets = new List<SpellLogEffectPowerDrainParams>();
public List<SpellLogEffectExtraAttacksParams> ExtraAttacksTargets { get; set; } = new List<SpellLogEffectExtraAttacksParams>(); public List<SpellLogEffectExtraAttacksParams> ExtraAttacksTargets = new List<SpellLogEffectExtraAttacksParams>();
public List<SpellLogEffectDurabilityDamageParams> DurabilityDamageTargets { get; set; } = new List<SpellLogEffectDurabilityDamageParams>(); public List<SpellLogEffectDurabilityDamageParams> DurabilityDamageTargets = new List<SpellLogEffectDurabilityDamageParams>();
public List<SpellLogEffectGenericVictimParams> GenericVictimTargets { get; set; } = new List<SpellLogEffectGenericVictimParams>(); public List<SpellLogEffectGenericVictimParams> GenericVictimTargets = new List<SpellLogEffectGenericVictimParams>();
public List<SpellLogEffectTradeSkillItemParams> TradeSkillTargets { get; set; } = new List<SpellLogEffectTradeSkillItemParams>(); public List<SpellLogEffectTradeSkillItemParams> TradeSkillTargets = new List<SpellLogEffectTradeSkillItemParams>();
public List<SpellLogEffectFeedPetParams> FeedPetTargets { get; set; } = new List<SpellLogEffectFeedPetParams>(); public List<SpellLogEffectFeedPetParams> FeedPetTargets = new List<SpellLogEffectFeedPetParams>();
} }
} }
@@ -235,15 +235,15 @@ namespace Game.Network.Packets
SandboxScaling.Value.Write(_worldPacket); SandboxScaling.Value.Write(_worldPacket);
} }
public ObjectGuid CasterGUID { get; set; } public ObjectGuid CasterGUID;
public ObjectGuid TargetGUID { get; set; } public ObjectGuid TargetGUID;
public uint SpellID { get; set; } public uint SpellID;
public uint Health { get; set; } public uint Health;
public uint OverHeal { get; set; } public uint OverHeal;
public uint Absorbed { get; set; } public uint Absorbed;
public bool Crit { get; set; } public bool Crit;
public Optional<float> CritRollMade { get; set; } public Optional<float> CritRollMade;
public Optional<float> CritRollNeeded { get; set; } public Optional<float> CritRollNeeded;
Optional<SandboxScalingData> SandboxScaling = new Optional<SandboxScalingData>(); Optional<SandboxScalingData> SandboxScaling = new Optional<SandboxScalingData>();
} }
@@ -265,15 +265,15 @@ namespace Game.Network.Packets
WriteLogData(); WriteLogData();
} }
public ObjectGuid TargetGUID { get; set; } public ObjectGuid TargetGUID;
public ObjectGuid CasterGUID { get; set; } public ObjectGuid CasterGUID;
public uint SpellID { get; set; } public uint SpellID;
public List<SpellLogEffect> Effects { get; set; } = new List<SpellLogEffect>(); public List<SpellLogEffect> Effects = new List<SpellLogEffect>();
public struct PeriodicalAuraLogEffectDebugInfo public struct PeriodicalAuraLogEffectDebugInfo
{ {
public float CritRollMade { get; set; } public float CritRollMade;
public float CritRollNeeded { get; set; } public float CritRollNeeded;
} }
public class SpellLogEffect public class SpellLogEffect
@@ -302,15 +302,15 @@ namespace Game.Network.Packets
} }
} }
public uint Effect { get; set; } public uint Effect;
public uint Amount { get; set; } public uint Amount;
public uint OverHealOrKill { get; set; } public uint OverHealOrKill;
public uint SchoolMaskOrPower { get; set; } public uint SchoolMaskOrPower;
public uint AbsorbedOrAmplitude { get; set; } public uint AbsorbedOrAmplitude;
public uint Resisted { get; set; } public uint Resisted;
public bool Crit { get; set; } public bool Crit;
public Optional<PeriodicalAuraLogEffectDebugInfo> DebugInfo { get; set; } public Optional<PeriodicalAuraLogEffectDebugInfo> DebugInfo;
public Optional<SandboxScalingData> SandboxScaling { get; set; } = new Optional<SandboxScalingData>(); public Optional<SandboxScalingData> SandboxScaling = new Optional<SandboxScalingData>();
} }
} }
@@ -326,10 +326,10 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(SpellID); _worldPacket.WriteUInt32(SpellID);
} }
public ObjectGuid Caster { get; set; } public ObjectGuid Caster;
public ObjectGuid Victim { get; set; } public ObjectGuid Victim;
public uint InterruptedSpellID { get; set; } public uint InterruptedSpellID;
public uint SpellID { get; set; } public uint SpellID;
} }
class SpellDispellLog : ServerPacket class SpellDispellLog : ServerPacket
@@ -360,12 +360,12 @@ namespace Game.Network.Packets
} }
} }
public List<SpellDispellData> DispellData { get; set; } = new List<SpellDispellData>(); public List<SpellDispellData> DispellData = new List<SpellDispellData>();
public ObjectGuid CasterGUID { get; set; } public ObjectGuid CasterGUID;
public ObjectGuid TargetGUID { get; set; } public ObjectGuid TargetGUID;
public uint DispelledBySpellID { get; set; } public uint DispelledBySpellID;
public bool IsBreak { get; set; } public bool IsBreak;
public bool IsSteal { get; set; } public bool IsSteal;
} }
@@ -388,12 +388,12 @@ namespace Game.Network.Packets
WriteLogData(); WriteLogData();
} }
public ObjectGuid TargetGUID { get; set; } public ObjectGuid TargetGUID;
public ObjectGuid CasterGUID { get; set; } public ObjectGuid CasterGUID;
public uint SpellID { get; set; } public uint SpellID;
public PowerType Type { get; set; } public PowerType Type;
public int Amount { get; set; } public int Amount;
public int OverEnergize { get; set; } public int OverEnergize;
} }
class SpellInstakillLog : ServerPacket class SpellInstakillLog : ServerPacket
@@ -407,9 +407,9 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(SpellID); _worldPacket.WriteUInt32(SpellID);
} }
public ObjectGuid Target { get; set; } public ObjectGuid Target;
public ObjectGuid Caster { get; set; } public ObjectGuid Caster;
public uint SpellID { get; set; } public uint SpellID;
} }
class SpellMissLog : ServerPacket class SpellMissLog : ServerPacket
@@ -426,9 +426,9 @@ namespace Game.Network.Packets
missEntry.Write(_worldPacket); missEntry.Write(_worldPacket);
} }
public uint SpellID { get; set; } public uint SpellID;
public ObjectGuid Caster { get; set; } public ObjectGuid Caster;
public List<SpellLogMissEntry> Entries { get; set; } = new List<SpellLogMissEntry>(); public List<SpellLogMissEntry> Entries = new List<SpellLogMissEntry>();
} }
class ProcResist : ServerPacket class ProcResist : ServerPacket
@@ -451,11 +451,11 @@ namespace Game.Network.Packets
_worldPacket.WriteFloat(Needed.Value); _worldPacket.WriteFloat(Needed.Value);
} }
public ObjectGuid Caster { get; set; } public ObjectGuid Caster;
public ObjectGuid Target { get; set; } public ObjectGuid Target;
public uint SpellID { get; set; } public uint SpellID;
public Optional<float> Rolled { get; set; } public Optional<float> Rolled;
public Optional<float> Needed { get; set; } public Optional<float> Needed;
} }
class SpellOrDamageImmune : ServerPacket class SpellOrDamageImmune : ServerPacket
@@ -471,10 +471,10 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public ObjectGuid CasterGUID { get; set; } public ObjectGuid CasterGUID;
public ObjectGuid VictimGUID { get; set; } public ObjectGuid VictimGUID;
public uint SpellID { get; set; } public uint SpellID;
public bool IsPeriodic { get; set; } public bool IsPeriodic;
} }
class SpellDamageShield : CombatLogServerPacket class SpellDamageShield : CombatLogServerPacket
@@ -496,13 +496,13 @@ namespace Game.Network.Packets
WriteLogData(); WriteLogData();
} }
public ObjectGuid Attacker { get; set; } public ObjectGuid Attacker;
public ObjectGuid Defender { get; set; } public ObjectGuid Defender;
public uint SpellID { get; set; } public uint SpellID;
public uint TotalDamage { get; set; } public uint TotalDamage;
public uint OverKill { get; set; } public uint OverKill;
public uint SchoolMask { get; set; } public uint SchoolMask;
public uint LogAbsorbed { get; set; } public uint LogAbsorbed;
} }
class AttackerStateUpdate : CombatLogServerPacket class AttackerStateUpdate : CombatLogServerPacket
@@ -581,56 +581,56 @@ namespace Game.Network.Packets
} }
public HitInfo hitInfo; // Flags public HitInfo hitInfo; // Flags
public ObjectGuid AttackerGUID { get; set; } public ObjectGuid AttackerGUID;
public ObjectGuid VictimGUID { get; set; } public ObjectGuid VictimGUID;
public int Damage { get; set; } public int Damage;
public int OverDamage { get; set; } = -1; // (damage - health) or -1 if unit is still alive public int OverDamage = -1; // (damage - health) or -1 if unit is still alive
public Optional<SubDamage> SubDmg { get; set; } public Optional<SubDamage> SubDmg;
public byte VictimState { get; set; } public byte VictimState;
public uint AttackerState { get; set; } public uint AttackerState;
public uint MeleeSpellID { get; set; } public uint MeleeSpellID;
public int BlockAmount { get; set; } public int BlockAmount;
public int RageGained { get; set; } public int RageGained;
public UnkAttackerState UnkState { get; set; } public UnkAttackerState UnkState;
public float Unk { get; set; } public float Unk;
public SandboxScalingData SandboxScaling { get; set; } = new SandboxScalingData(); public SandboxScalingData SandboxScaling = new SandboxScalingData();
} }
//Structs //Structs
struct SpellLogEffectPowerDrainParams struct SpellLogEffectPowerDrainParams
{ {
public ObjectGuid Victim { get; set; } public ObjectGuid Victim;
public uint Points { get; set; } public uint Points;
public uint PowerType { get; set; } public uint PowerType;
public float Amplitude { get; set; } public float Amplitude;
} }
struct SpellLogEffectExtraAttacksParams struct SpellLogEffectExtraAttacksParams
{ {
public ObjectGuid Victim { get; set; } public ObjectGuid Victim;
public uint NumAttacks { get; set; } public uint NumAttacks;
} }
struct SpellLogEffectDurabilityDamageParams struct SpellLogEffectDurabilityDamageParams
{ {
public ObjectGuid Victim { get; set; } public ObjectGuid Victim;
public int ItemID { get; set; } public int ItemID;
public int Amount { get; set; } public int Amount;
} }
struct SpellLogEffectGenericVictimParams struct SpellLogEffectGenericVictimParams
{ {
public ObjectGuid Victim { get; set; } public ObjectGuid Victim;
} }
struct SpellLogEffectTradeSkillItemParams struct SpellLogEffectTradeSkillItemParams
{ {
public int ItemID { get; set; } public int ItemID;
} }
struct SpellLogEffectFeedPetParams struct SpellLogEffectFeedPetParams
{ {
public int ItemID { get; set; } public int ItemID;
} }
struct SpellLogMissDebug struct SpellLogMissDebug
@@ -641,8 +641,8 @@ namespace Game.Network.Packets
data.WriteFloat(HitRollNeeded); data.WriteFloat(HitRollNeeded);
} }
public float HitRoll { get; set; } public float HitRoll;
public float HitRollNeeded { get; set; } public float HitRollNeeded;
} }
public struct SpellLogMissEntry public struct SpellLogMissEntry
@@ -664,41 +664,41 @@ namespace Game.Network.Packets
data.FlushBits(); data.FlushBits();
} }
public ObjectGuid Victim { get; set; } public ObjectGuid Victim;
public byte MissReason { get; set; } public byte MissReason;
Optional<SpellLogMissDebug> Debug; Optional<SpellLogMissDebug> Debug;
} }
struct SpellDispellData struct SpellDispellData
{ {
public uint SpellID { get; set; } public uint SpellID;
public bool Harmful { get; set; } public bool Harmful;
public Optional<int> Rolled { get; set; } public Optional<int> Rolled;
public Optional<int> Needed { get; set; } public Optional<int> Needed;
} }
public struct SubDamage public struct SubDamage
{ {
public int SchoolMask { get; set; } public int SchoolMask;
public float FDamage; // Float damage (Most of the time equals to Damage) public float FDamage; // Float damage (Most of the time equals to Damage)
public int Damage { get; set; } public int Damage;
public int Absorbed { get; set; } public int Absorbed;
public int Resisted { get; set; } public int Resisted;
} }
public struct UnkAttackerState public struct UnkAttackerState
{ {
public uint State1 { get; set; } public uint State1;
public float State2 { get; set; } public float State2;
public float State3 { get; set; } public float State3;
public float State4 { get; set; } public float State4;
public float State5 { get; set; } public float State5;
public float State6 { get; set; } public float State6;
public float State7 { get; set; } public float State7;
public float State8 { get; set; } public float State8;
public float State9 { get; set; } public float State9;
public float State10 { get; set; } public float State10;
public float State11 { get; set; } public float State11;
public uint State12 { get; set; } public uint State12;
} }
} }
+30 -30
View File
@@ -30,7 +30,7 @@ namespace Game.Network.Packets
Victim = _worldPacket.ReadPackedGuid(); Victim = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid Victim { get; set; } public ObjectGuid Victim;
} }
public class AttackSwingError : ServerPacket public class AttackSwingError : ServerPacket
@@ -66,8 +66,8 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(Victim); _worldPacket.WritePackedGuid(Victim);
} }
public ObjectGuid Attacker { get; set; } public ObjectGuid Attacker;
public ObjectGuid Victim { get; set; } public ObjectGuid Victim;
} }
public class SAttackStop : ServerPacket public class SAttackStop : ServerPacket
@@ -90,9 +90,9 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public ObjectGuid Attacker { get; set; } public ObjectGuid Attacker;
public ObjectGuid Victim { get; set; } public ObjectGuid Victim;
public bool NowDead { get; set; } = false; public bool NowDead = false;
} }
public class ThreatUpdate : ServerPacket public class ThreatUpdate : ServerPacket
@@ -110,8 +110,8 @@ namespace Game.Network.Packets
} }
} }
public ObjectGuid UnitGUID { get; set; } public ObjectGuid UnitGUID;
public List<ThreatInfo> ThreatList { get; set; } = new List<ThreatInfo>(); public List<ThreatInfo> ThreatList = new List<ThreatInfo>();
} }
public class HighestThreatUpdate : ServerPacket public class HighestThreatUpdate : ServerPacket
@@ -130,9 +130,9 @@ namespace Game.Network.Packets
} }
} }
public ObjectGuid UnitGUID { get; set; } public ObjectGuid UnitGUID;
public List<ThreatInfo> ThreatList { get; set; } = new List<ThreatInfo>(); public List<ThreatInfo> ThreatList = new List<ThreatInfo>();
public ObjectGuid HighestThreatGUID { get; set; } public ObjectGuid HighestThreatGUID;
} }
public class ThreatRemove : ServerPacket public class ThreatRemove : ServerPacket
@@ -159,8 +159,8 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(Reaction); _worldPacket.WriteUInt32(Reaction);
} }
public ObjectGuid UnitGUID { get; set; } public ObjectGuid UnitGUID;
public AiReaction Reaction { get; set; } public AiReaction Reaction;
} }
public class CancelCombat : ServerPacket public class CancelCombat : ServerPacket
@@ -188,8 +188,8 @@ namespace Game.Network.Packets
} }
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
public List<PowerUpdatePower> Powers { get; set; } public List<PowerUpdatePower> Powers;
} }
public class SetSheathed : ClientPacket public class SetSheathed : ClientPacket
@@ -202,8 +202,8 @@ namespace Game.Network.Packets
Animate = _worldPacket.HasBit(); Animate = _worldPacket.HasBit();
} }
public int CurrentSheathState { get; set; } public int CurrentSheathState;
public bool Animate { get; set; } = true; public bool Animate = true;
} }
public class CancelAutoRepeat : ServerPacket public class CancelAutoRepeat : ServerPacket
@@ -215,7 +215,7 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(Guid); _worldPacket.WritePackedGuid(Guid);
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
} }
public class HealthUpdate : ServerPacket public class HealthUpdate : ServerPacket
@@ -228,8 +228,8 @@ namespace Game.Network.Packets
_worldPacket.WriteInt64(Health); _worldPacket.WriteInt64(Health);
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
public long Health { get; set; } public long Health;
} }
public class ThreatClear : ServerPacket public class ThreatClear : ServerPacket
@@ -241,7 +241,7 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(UnitGUID); _worldPacket.WritePackedGuid(UnitGUID);
} }
public ObjectGuid UnitGUID { get; set; } public ObjectGuid UnitGUID;
} }
class PvPCredit : ServerPacket class PvPCredit : ServerPacket
@@ -256,10 +256,10 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(Rank); _worldPacket.WriteUInt32(Rank);
} }
public int OriginalHonor { get; set; } public int OriginalHonor;
public int Honor { get; set; } public int Honor;
public ObjectGuid Target { get; set; } public ObjectGuid Target;
public uint Rank { get; set; } public uint Rank;
} }
class BreakTarget : ServerPacket class BreakTarget : ServerPacket
@@ -271,14 +271,14 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(UnitGUID); _worldPacket.WritePackedGuid(UnitGUID);
} }
public ObjectGuid UnitGUID { get; set; } public ObjectGuid UnitGUID;
} }
//Structs //Structs
public struct ThreatInfo public struct ThreatInfo
{ {
public ObjectGuid UnitGUID { get; set; } public ObjectGuid UnitGUID;
public long Threat { get; set; } public long Threat;
} }
public struct PowerUpdatePower public struct PowerUpdatePower
@@ -289,7 +289,7 @@ namespace Game.Network.Packets
PowerType = powerType; PowerType = powerType;
} }
public int Power { get; set; } public int Power;
public byte PowerType { get; set; } public byte PowerType;
} }
} }
+14 -14
View File
@@ -29,7 +29,7 @@ namespace Game.Network.Packets
TargetGUID = _worldPacket.ReadPackedGuid(); TargetGUID = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid TargetGUID { get; set; } public ObjectGuid TargetGUID;
} }
public class CanDuelResult : ServerPacket public class CanDuelResult : ServerPacket
@@ -43,8 +43,8 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public ObjectGuid TargetGUID { get; set; } public ObjectGuid TargetGUID;
public bool Result { get; set; } public bool Result;
} }
public class DuelComplete : ServerPacket public class DuelComplete : ServerPacket
@@ -57,7 +57,7 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public bool Started { get; set; } public bool Started;
} }
public class DuelCountdown : ServerPacket public class DuelCountdown : ServerPacket
@@ -100,9 +100,9 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(RequestedByWowAccount); _worldPacket.WritePackedGuid(RequestedByWowAccount);
} }
public ObjectGuid ArbiterGUID { get; set; } public ObjectGuid ArbiterGUID;
public ObjectGuid RequestedByGUID { get; set; } public ObjectGuid RequestedByGUID;
public ObjectGuid RequestedByWowAccount { get; set; } public ObjectGuid RequestedByWowAccount;
} }
public class DuelResponse : ClientPacket public class DuelResponse : ClientPacket
@@ -115,8 +115,8 @@ namespace Game.Network.Packets
Accepted = _worldPacket.HasBit(); Accepted = _worldPacket.HasBit();
} }
public ObjectGuid ArbiterGUID { get; set; } public ObjectGuid ArbiterGUID;
public bool Accepted { get; set; } public bool Accepted;
} }
public class DuelWinner : ServerPacket public class DuelWinner : ServerPacket
@@ -134,10 +134,10 @@ namespace Game.Network.Packets
_worldPacket.WriteString(WinnerName); _worldPacket.WriteString(WinnerName);
} }
public string BeatenName { get; set; } public string BeatenName;
public string WinnerName { get; set; } public string WinnerName;
public uint BeatenVirtualRealmAddress { get; set; } public uint BeatenVirtualRealmAddress;
public uint WinnerVirtualRealmAddress { get; set; } public uint WinnerVirtualRealmAddress;
public bool Fled { get; set; } public bool Fled;
} }
} }
+10 -10
View File
@@ -33,7 +33,7 @@ namespace Game.Network.Packets
} }
public ulong GUID; // Set Identifier public ulong GUID; // Set Identifier
public int Type { get; set; } public int Type;
public uint SetID; // Index public uint SetID; // Index
} }
@@ -73,7 +73,7 @@ namespace Game.Network.Packets
} }
} }
public List<EquipmentSetInfo.EquipmentSetData> SetData { get; set; } = new List<EquipmentSetInfo.EquipmentSetData>(); public List<EquipmentSetInfo.EquipmentSetData> SetData = new List<EquipmentSetInfo.EquipmentSetData>();
} }
public class SaveEquipmentSet : ClientPacket public class SaveEquipmentSet : ClientPacket
@@ -111,7 +111,7 @@ namespace Game.Network.Packets
Set.SetIcon = _worldPacket.ReadString(setIconLength); Set.SetIcon = _worldPacket.ReadString(setIconLength);
} }
public EquipmentSetInfo.EquipmentSetData Set { get; set; } public EquipmentSetInfo.EquipmentSetData Set;
} }
class DeleteEquipmentSet : ClientPacket class DeleteEquipmentSet : ClientPacket
@@ -123,7 +123,7 @@ namespace Game.Network.Packets
ID = _worldPacket.ReadUInt64(); ID = _worldPacket.ReadUInt64();
} }
public ulong ID { get; set; } public ulong ID;
} }
class UseEquipmentSet : ClientPacket class UseEquipmentSet : ClientPacket
@@ -144,15 +144,15 @@ namespace Game.Network.Packets
GUID = _worldPacket.ReadUInt64(); GUID = _worldPacket.ReadUInt64();
} }
public InvUpdate Inv { get; set; } public InvUpdate Inv;
public EquipmentSetItem[] Items { get; set; } = new EquipmentSetItem[EquipmentSlot.End]; public EquipmentSetItem[] Items = new EquipmentSetItem[EquipmentSlot.End];
public ulong GUID; //Set Identifier public ulong GUID; //Set Identifier
public struct EquipmentSetItem public struct EquipmentSetItem
{ {
public ObjectGuid Item { get; set; } public ObjectGuid Item;
public byte ContainerSlot { get; set; } public byte ContainerSlot;
public byte Slot { get; set; } public byte Slot;
} }
} }
@@ -167,6 +167,6 @@ namespace Game.Network.Packets
} }
public ulong GUID; //Set Identifier public ulong GUID; //Set Identifier
public byte Reason { get; set; } public byte Reason;
} }
} }
@@ -29,7 +29,7 @@ namespace Game.Network.Packets
Guid = _worldPacket.ReadPackedGuid(); Guid = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
} }
public class GameObjReportUse : ClientPacket public class GameObjReportUse : ClientPacket
@@ -41,7 +41,7 @@ namespace Game.Network.Packets
Guid = _worldPacket.ReadPackedGuid(); Guid = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
} }
class GameObjectDespawn : ServerPacket class GameObjectDespawn : ServerPacket
@@ -53,7 +53,7 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(ObjectGUID); _worldPacket.WritePackedGuid(ObjectGUID);
} }
public ObjectGuid ObjectGUID { get; set; } public ObjectGuid ObjectGUID;
} }
class PageTextPkt : ServerPacket class PageTextPkt : ServerPacket
@@ -65,7 +65,7 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(GameObjectGUID); _worldPacket.WritePackedGuid(GameObjectGUID);
} }
public ObjectGuid GameObjectGUID { get; set; } public ObjectGuid GameObjectGUID;
} }
class GameObjectActivateAnimKit : ServerPacket class GameObjectActivateAnimKit : ServerPacket
@@ -80,9 +80,9 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public ObjectGuid ObjectGUID { get; set; } public ObjectGuid ObjectGUID;
public int AnimKitID { get; set; } public int AnimKitID;
public bool Maintain { get; set; } public bool Maintain;
} }
class DestructibleBuildingDamage : ServerPacket class DestructibleBuildingDamage : ServerPacket
@@ -98,11 +98,11 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(SpellID); _worldPacket.WriteUInt32(SpellID);
} }
public ObjectGuid Target { get; set; } public ObjectGuid Target;
public ObjectGuid Caster { get; set; } public ObjectGuid Caster;
public ObjectGuid Owner { get; set; } public ObjectGuid Owner;
public int Damage { get; set; } public int Damage;
public uint SpellID { get; set; } public uint SpellID;
} }
class FishNotHooked : ServerPacket class FishNotHooked : ServerPacket
@@ -131,8 +131,8 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public ObjectGuid ObjectGUID { get; set; } public ObjectGuid ObjectGUID;
public uint CustomAnim { get; set; } public uint CustomAnim;
public bool PlayAsDespawn { get; set; } public bool PlayAsDespawn;
} }
} }
+110 -110
View File
@@ -32,8 +32,8 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(GarrSiteLevelID); _worldPacket.WriteUInt32(GarrSiteLevelID);
} }
public uint GarrSiteLevelID { get; set; } public uint GarrSiteLevelID;
public uint Result { get; set; } public uint Result;
} }
class GarrisonDeleteResult : ServerPacket class GarrisonDeleteResult : ServerPacket
@@ -46,8 +46,8 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(GarrSiteID); _worldPacket.WriteUInt32(GarrSiteID);
} }
public GarrisonError Result { get; set; } public GarrisonError Result;
public uint GarrSiteID { get; set; } public uint GarrSiteID;
} }
class GetGarrisonInfo : ClientPacket class GetGarrisonInfo : ClientPacket
@@ -74,9 +74,9 @@ namespace Game.Network.Packets
garrison.Write(_worldPacket); garrison.Write(_worldPacket);
} }
public uint FactionIndex { get; set; } public uint FactionIndex;
public List<GarrisonInfo> Garrisons { get; set; } = new List<GarrisonInfo>(); public List<GarrisonInfo> Garrisons = new List<GarrisonInfo>();
public List<FollowerSoftCapInfo> FollowerSoftCaps { get; set; } = new List<FollowerSoftCapInfo>(); public List<FollowerSoftCapInfo> FollowerSoftCaps = new List<FollowerSoftCapInfo>();
} }
class GarrisonRemoteInfo : ServerPacket class GarrisonRemoteInfo : ServerPacket
@@ -90,7 +90,7 @@ namespace Game.Network.Packets
site.Write(_worldPacket); site.Write(_worldPacket);
} }
public List<GarrisonRemoteSiteInfo> Sites { get; set; } = new List<GarrisonRemoteSiteInfo>(); public List<GarrisonRemoteSiteInfo> Sites = new List<GarrisonRemoteSiteInfo>();
} }
class GarrisonPurchaseBuilding : ClientPacket class GarrisonPurchaseBuilding : ClientPacket
@@ -104,9 +104,9 @@ namespace Game.Network.Packets
BuildingID = _worldPacket.ReadUInt32(); BuildingID = _worldPacket.ReadUInt32();
} }
public ObjectGuid NpcGUID { get; set; } public ObjectGuid NpcGUID;
public uint BuildingID { get; set; } public uint BuildingID;
public uint PlotInstanceID { get; set; } public uint PlotInstanceID;
} }
class GarrisonPlaceBuildingResult : ServerPacket class GarrisonPlaceBuildingResult : ServerPacket
@@ -122,10 +122,10 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public GarrisonType GarrTypeID { get; set; } public GarrisonType GarrTypeID;
public GarrisonError Result { get; set; } public GarrisonError Result;
public GarrisonBuildingInfo BuildingInfo { get; set; } = new GarrisonBuildingInfo(); public GarrisonBuildingInfo BuildingInfo = new GarrisonBuildingInfo();
public bool PlayActivationCinematic { get; set; } public bool PlayActivationCinematic;
} }
class GarrisonCancelConstruction : ClientPacket class GarrisonCancelConstruction : ClientPacket
@@ -138,8 +138,8 @@ namespace Game.Network.Packets
PlotInstanceID = _worldPacket.ReadUInt32(); PlotInstanceID = _worldPacket.ReadUInt32();
} }
public ObjectGuid NpcGUID { get; set; } public ObjectGuid NpcGUID;
public uint PlotInstanceID { get; set; } public uint PlotInstanceID;
} }
class GarrisonBuildingRemoved : ServerPacket class GarrisonBuildingRemoved : ServerPacket
@@ -154,10 +154,10 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(GarrBuildingID); _worldPacket.WriteUInt32(GarrBuildingID);
} }
public GarrisonType GarrTypeID { get; set; } public GarrisonType GarrTypeID;
public GarrisonError Result { get; set; } public GarrisonError Result;
public uint GarrPlotInstanceID { get; set; } public uint GarrPlotInstanceID;
public uint GarrBuildingID { get; set; } public uint GarrBuildingID;
} }
class GarrisonLearnBlueprintResult : ServerPacket class GarrisonLearnBlueprintResult : ServerPacket
@@ -171,9 +171,9 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(BuildingID); _worldPacket.WriteUInt32(BuildingID);
} }
public GarrisonType GarrTypeID { get; set; } public GarrisonType GarrTypeID;
public uint BuildingID { get; set; } public uint BuildingID;
public GarrisonError Result { get; set; } public GarrisonError Result;
} }
class GarrisonUnlearnBlueprintResult : ServerPacket class GarrisonUnlearnBlueprintResult : ServerPacket
@@ -187,9 +187,9 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(BuildingID); _worldPacket.WriteUInt32(BuildingID);
} }
public GarrisonType GarrTypeID { get; set; } public GarrisonType GarrTypeID;
public uint BuildingID { get; set; } public uint BuildingID;
public GarrisonError Result { get; set; } public GarrisonError Result;
} }
class GarrisonRequestBlueprintAndSpecializationData : ClientPacket class GarrisonRequestBlueprintAndSpecializationData : ClientPacket
@@ -217,9 +217,9 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(specialization); _worldPacket.WriteUInt32(specialization);
} }
public GarrisonType GarrTypeID { get; set; } public GarrisonType GarrTypeID;
public List<uint> SpecializationsKnown { get; set; } = null; public List<uint> SpecializationsKnown = null;
public List<uint> BlueprintsKnown { get; set; } = null; public List<uint> BlueprintsKnown = null;
} }
class GarrisonGetBuildingLandmarks : ClientPacket class GarrisonGetBuildingLandmarks : ClientPacket
@@ -240,7 +240,7 @@ namespace Game.Network.Packets
landmark.Write(_worldPacket); landmark.Write(_worldPacket);
} }
public List<GarrisonBuildingLandmark> Landmarks { get; set; } = new List<GarrisonBuildingLandmark>(); public List<GarrisonBuildingLandmark> Landmarks = new List<GarrisonBuildingLandmark>();
} }
class GarrisonPlotPlaced : ServerPacket class GarrisonPlotPlaced : ServerPacket
@@ -253,8 +253,8 @@ namespace Game.Network.Packets
PlotInfo.Write(_worldPacket); PlotInfo.Write(_worldPacket);
} }
public GarrisonType GarrTypeID { get; set; } public GarrisonType GarrTypeID;
public GarrisonPlotInfo PlotInfo { get; set; } public GarrisonPlotInfo PlotInfo;
} }
class GarrisonPlotRemoved : ServerPacket class GarrisonPlotRemoved : ServerPacket
@@ -266,7 +266,7 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(GarrPlotInstanceID); _worldPacket.WriteUInt32(GarrPlotInstanceID);
} }
public uint GarrPlotInstanceID { get; set; } public uint GarrPlotInstanceID;
} }
class GarrisonAddFollowerResult : ServerPacket class GarrisonAddFollowerResult : ServerPacket
@@ -280,9 +280,9 @@ namespace Game.Network.Packets
Follower.Write(_worldPacket); Follower.Write(_worldPacket);
} }
public GarrisonType GarrTypeID { get; set; } public GarrisonType GarrTypeID;
public GarrisonFollower Follower { get; set; } public GarrisonFollower Follower;
public GarrisonError Result { get; set; } public GarrisonError Result;
} }
class GarrisonRemoveFollowerResult : ServerPacket class GarrisonRemoveFollowerResult : ServerPacket
@@ -297,10 +297,10 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(Destroyed); _worldPacket.WriteUInt32(Destroyed);
} }
public ulong FollowerDBID { get; set; } public ulong FollowerDBID;
public int GarrTypeID { get; set; } public int GarrTypeID;
public uint Result { get; set; } public uint Result;
public uint Destroyed { get; set; } public uint Destroyed;
} }
class GarrisonBuildingActivated : ServerPacket class GarrisonBuildingActivated : ServerPacket
@@ -312,7 +312,7 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(GarrPlotInstanceID); _worldPacket.WriteUInt32(GarrPlotInstanceID);
} }
public uint GarrPlotInstanceID { get; set; } public uint GarrPlotInstanceID;
} }
//Structs //Structs
@@ -325,9 +325,9 @@ namespace Game.Network.Packets
data.WriteUInt32(PlotType); data.WriteUInt32(PlotType);
} }
public uint GarrPlotInstanceID { get; set; } public uint GarrPlotInstanceID;
public Position PlotPos { get; set; } public Position PlotPos;
public uint PlotType { get; set; } public uint PlotType;
} }
public class GarrisonBuildingInfo public class GarrisonBuildingInfo
@@ -343,12 +343,12 @@ namespace Game.Network.Packets
data.FlushBits(); data.FlushBits();
} }
public uint GarrPlotInstanceID { get; set; } public uint GarrPlotInstanceID;
public uint GarrBuildingID { get; set; } public uint GarrBuildingID;
public long TimeBuilt { get; set; } public long TimeBuilt;
public uint CurrentGarSpecID { get; set; } public uint CurrentGarSpecID;
public long TimeSpecCooldown { get; set; } = 2288912640; // 06/07/1906 18:35:44 - another in the series of magic blizz dates public long TimeSpecCooldown = 2288912640; // 06/07/1906 18:35:44 - another in the series of magic blizz dates
public bool Active { get; set; } public bool Active;
} }
public class GarrisonFollower public class GarrisonFollower
@@ -376,20 +376,20 @@ namespace Game.Network.Packets
data.WriteString(CustomName); data.WriteString(CustomName);
} }
public ulong DbID { get; set; } public ulong DbID;
public uint GarrFollowerID { get; set; } public uint GarrFollowerID;
public uint Quality { get; set; } public uint Quality;
public uint FollowerLevel { get; set; } public uint FollowerLevel;
public uint ItemLevelWeapon { get; set; } public uint ItemLevelWeapon;
public uint ItemLevelArmor { get; set; } public uint ItemLevelArmor;
public uint Xp { get; set; } public uint Xp;
public uint Durability { get; set; } public uint Durability;
public uint CurrentBuildingID { get; set; } public uint CurrentBuildingID;
public uint CurrentMissionID { get; set; } public uint CurrentMissionID;
public List<GarrAbilityRecord> AbilityID { get; set; } = new List<GarrAbilityRecord>(); public List<GarrAbilityRecord> AbilityID = new List<GarrAbilityRecord>();
public uint ZoneSupportSpellID { get; set; } public uint ZoneSupportSpellID;
public uint FollowerStatus { get; set; } public uint FollowerStatus;
public string CustomName { get; set; } = ""; public string CustomName = "";
} }
class GarrisonMission class GarrisonMission
@@ -408,16 +408,16 @@ namespace Game.Network.Packets
data.WriteUInt32(Unknown2); data.WriteUInt32(Unknown2);
} }
public ulong DbID { get; set; } public ulong DbID;
public uint MissionRecID { get; set; } public uint MissionRecID;
public long OfferTime { get; set; } public long OfferTime;
public uint OfferDuration { get; set; } public uint OfferDuration;
public long StartTime { get; set; } = 2288912640; public long StartTime = 2288912640;
public uint TravelDuration { get; set; } public uint TravelDuration;
public uint MissionDuration { get; set; } public uint MissionDuration;
public uint MissionState { get; set; } public uint MissionState;
public uint Unknown1 { get; set; } = 0; public uint Unknown1 = 0;
public uint Unknown2 { get; set; } = 0; public uint Unknown2 = 0;
} }
struct GarrisonMissionReward struct GarrisonMissionReward
@@ -433,13 +433,13 @@ namespace Game.Network.Packets
data.WriteInt32(Unknown); data.WriteInt32(Unknown);
} }
public int ItemID { get; set; } public int ItemID;
public uint Quantity { get; set; } public uint Quantity;
public int CurrencyID { get; set; } public int CurrencyID;
public uint CurrencyQuantity { get; set; } public uint CurrencyQuantity;
public uint FollowerXP { get; set; } public uint FollowerXP;
public uint BonusAbilityID { get; set; } public uint BonusAbilityID;
public int Unknown { get; set; } public int Unknown;
} }
struct GarrisonMissionAreaBonus struct GarrisonMissionAreaBonus
@@ -450,8 +450,8 @@ namespace Game.Network.Packets
data.WriteUInt32(StartTime); data.WriteUInt32(StartTime);
} }
public uint GarrMssnBonusAbilityID { get; set; } public uint GarrMssnBonusAbilityID;
public long StartTime { get; set; } public long StartTime;
} }
struct GarrisonTalent struct GarrisonTalent
@@ -463,9 +463,9 @@ namespace Game.Network.Packets
data.WriteInt32(Flags); data.WriteInt32(Flags);
} }
public int GarrTalentID { get; set; } public int GarrTalentID;
public long ResearchStartTime { get; set; } public long ResearchStartTime;
public int Flags { get; set; } public int Flags;
} }
class GarrisonInfo class GarrisonInfo
@@ -529,21 +529,21 @@ namespace Game.Network.Packets
follower.Write(data); follower.Write(data);
} }
public GarrisonType GarrTypeID { get; set; } public GarrisonType GarrTypeID;
public uint GarrSiteID { get; set; } public uint GarrSiteID;
public uint GarrSiteLevelID { get; set; } public uint GarrSiteLevelID;
public uint NumFollowerActivationsRemaining { get; set; } public uint NumFollowerActivationsRemaining;
public uint NumMissionsStartedToday { get; set; } // might mean something else, but sending 0 here enables follower abilities "Increase success chance of the first mission of the day by %. public uint NumMissionsStartedToday; // might mean something else, but sending 0 here enables follower abilities "Increase success chance of the first mission of the day by %."
public List<GarrisonPlotInfo> Plots { get; set; } = new List<GarrisonPlotInfo>(); public List<GarrisonPlotInfo> Plots = new List<GarrisonPlotInfo>();
public List<GarrisonBuildingInfo> Buildings { get; set; } = new List<GarrisonBuildingInfo>(); public List<GarrisonBuildingInfo> Buildings = new List<GarrisonBuildingInfo>();
public List<GarrisonFollower> Followers { get; set; } = new List<GarrisonFollower>(); public List<GarrisonFollower> Followers = new List<GarrisonFollower>();
public List<GarrisonMission> Missions { get; set; } = new List<GarrisonMission>(); public List<GarrisonMission> Missions = new List<GarrisonMission>();
public List<List<GarrisonMissionReward>> MissionRewards { get; set; } = new List<List<GarrisonMissionReward>>(); public List<List<GarrisonMissionReward>> MissionRewards = new List<List<GarrisonMissionReward>>();
public List<List<GarrisonMissionReward>> MissionOvermaxRewards { get; set; } = new List<List<GarrisonMissionReward>>(); public List<List<GarrisonMissionReward>> MissionOvermaxRewards = new List<List<GarrisonMissionReward>>();
public List<GarrisonMissionAreaBonus> MissionAreaBonuses { get; set; } = new List<GarrisonMissionAreaBonus>(); public List<GarrisonMissionAreaBonus> MissionAreaBonuses = new List<GarrisonMissionAreaBonus>();
public List<GarrisonTalent> Talents { get; set; } = new List<GarrisonTalent>(); public List<GarrisonTalent> Talents = new List<GarrisonTalent>();
public List<bool> CanStartMission { get; set; } = new List<bool>(); public List<bool> CanStartMission = new List<bool>();
public List<int> ArchivedMissions { get; set; } = new List<int>(); public List<int> ArchivedMissions = new List<int>();
} }
struct FollowerSoftCapInfo struct FollowerSoftCapInfo
@@ -554,8 +554,8 @@ namespace Game.Network.Packets
data.WriteUInt32(Count); data.WriteUInt32(Count);
} }
public int GarrFollowerTypeID { get; set; } public int GarrFollowerTypeID;
public uint Count { get; set; } public uint Count;
} }
struct GarrisonRemoteBuildingInfo struct GarrisonRemoteBuildingInfo
@@ -572,8 +572,8 @@ namespace Game.Network.Packets
data.WriteUInt32(GarrBuildingID); data.WriteUInt32(GarrBuildingID);
} }
public uint GarrPlotInstanceID { get; set; } public uint GarrPlotInstanceID;
public uint GarrBuildingID { get; set; } public uint GarrBuildingID;
} }
class GarrisonRemoteSiteInfo class GarrisonRemoteSiteInfo
@@ -586,8 +586,8 @@ namespace Game.Network.Packets
building.Write(data); building.Write(data);
} }
public uint GarrSiteLevelID { get; set; } public uint GarrSiteLevelID;
public List<GarrisonRemoteBuildingInfo> Buildings { get; set; } = new List<GarrisonRemoteBuildingInfo>(); public List<GarrisonRemoteBuildingInfo> Buildings = new List<GarrisonRemoteBuildingInfo>();
} }
struct GarrisonBuildingLandmark struct GarrisonBuildingLandmark
@@ -604,7 +604,7 @@ namespace Game.Network.Packets
data.WriteXYZ(Pos); data.WriteXYZ(Pos);
} }
public uint GarrBuildingPlotInstID { get; set; } public uint GarrBuildingPlotInstID;
public Position Pos { get; set; } public Position Pos;
} }
} }
@@ -35,11 +35,11 @@ namespace Game.Network.Packets
Comment = _worldPacket.ReadString(_worldPacket.ReadBits<uint>(10)); Comment = _worldPacket.ReadString(_worldPacket.ReadBits<uint>(10));
} }
public ObjectGuid GuildGUID { get; set; } public ObjectGuid GuildGUID;
public uint Availability { get; set; } public uint Availability;
public uint ClassRoles { get; set; } public uint ClassRoles;
public uint PlayStyle { get; set; } public uint PlayStyle;
public string Comment { get; set; } public string Comment;
} }
class LFGuildApplicationsListChanged : ServerPacket class LFGuildApplicationsListChanged : ServerPacket
@@ -68,10 +68,10 @@ namespace Game.Network.Packets
CharacterLevel = _worldPacket.ReadUInt32(); CharacterLevel = _worldPacket.ReadUInt32();
} }
public uint CharacterLevel { get; set; } public uint CharacterLevel;
public uint Availability { get; set; } public uint Availability;
public uint ClassRoles { get; set; } public uint ClassRoles;
public uint PlayStyle { get; set; } public uint PlayStyle;
} }
class LFGuildBrowseResult : ServerPacket class LFGuildBrowseResult : ServerPacket
@@ -85,7 +85,7 @@ namespace Game.Network.Packets
guildData.Write(_worldPacket); guildData.Write(_worldPacket);
} }
public List<LFGuildBrowseData> Post { get; set; } = new List<LFGuildBrowseData>(); public List<LFGuildBrowseData> Post = new List<LFGuildBrowseData>();
} }
class LFGuildDeclineRecruit : ClientPacket class LFGuildDeclineRecruit : ClientPacket
@@ -97,7 +97,7 @@ namespace Game.Network.Packets
RecruitGUID = _worldPacket.ReadPackedGuid(); RecruitGUID = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid RecruitGUID { get; set; } public ObjectGuid RecruitGUID;
} }
class LFGuildGetApplications : ClientPacket class LFGuildGetApplications : ClientPacket
@@ -119,8 +119,8 @@ namespace Game.Network.Packets
application.Write(_worldPacket); application.Write(_worldPacket);
} }
public List<LFGuildApplicationData> Application { get; set; } = new List<LFGuildApplicationData>(); public List<LFGuildApplicationData> Application = new List<LFGuildApplicationData>();
public int NumRemaining { get; set; } public int NumRemaining;
} }
class LFGuildGetGuildPost : ClientPacket class LFGuildGetGuildPost : ClientPacket
@@ -154,7 +154,7 @@ namespace Game.Network.Packets
LastUpdate = _worldPacket.ReadUInt32(); LastUpdate = _worldPacket.ReadUInt32();
} }
public uint LastUpdate { get; set; } public uint LastUpdate;
} }
class LFGuildRecruits : ServerPacket class LFGuildRecruits : ServerPacket
@@ -169,8 +169,8 @@ namespace Game.Network.Packets
recruit.Write(_worldPacket); recruit.Write(_worldPacket);
} }
public List<LFGuildRecruitData> Recruits { get; set; } = new List<LFGuildRecruitData>(); public List<LFGuildRecruitData> Recruits = new List<LFGuildRecruitData>();
public long UpdateTime { get; set; } public long UpdateTime;
} }
class LFGuildRemoveRecruit : ClientPacket class LFGuildRemoveRecruit : ClientPacket
@@ -182,7 +182,7 @@ namespace Game.Network.Packets
GuildGUID = _worldPacket.ReadPackedGuid(); GuildGUID = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid GuildGUID { get; set; } public ObjectGuid GuildGUID;
} }
class LFGuildSetGuildPost : ClientPacket class LFGuildSetGuildPost : ClientPacket
@@ -199,12 +199,12 @@ namespace Game.Network.Packets
Comment = _worldPacket.ReadString(_worldPacket.ReadBits<uint>(10)); Comment = _worldPacket.ReadString(_worldPacket.ReadBits<uint>(10));
} }
public uint Availability { get; set; } public uint Availability;
public uint PlayStyle { get; set; } public uint PlayStyle;
public uint ClassRoles { get; set; } public uint ClassRoles;
public uint LevelRange { get; set; } public uint LevelRange;
public bool Active { get; set; } public bool Active;
public string Comment { get; set; } public string Comment;
} }
//Structs //Structs
@@ -234,23 +234,23 @@ namespace Game.Network.Packets
data.WriteString(Comment); data.WriteString(Comment);
} }
public string GuildName { get; set; } = ""; public string GuildName = "";
public ObjectGuid GuildGUID { get; set; } public ObjectGuid GuildGUID;
public uint GuildVirtualRealm { get; set; } public uint GuildVirtualRealm;
public int GuildMembers { get; set; } public int GuildMembers;
public uint GuildAchievementPoints { get; set; } public uint GuildAchievementPoints;
public int PlayStyle { get; set; } public int PlayStyle;
public int Availability { get; set; } public int Availability;
public int ClassRoles { get; set; } public int ClassRoles;
public int LevelRange { get; set; } public int LevelRange;
public uint EmblemStyle { get; set; } public uint EmblemStyle;
public uint EmblemColor { get; set; } public uint EmblemColor;
public uint BorderStyle { get; set; } public uint BorderStyle;
public uint BorderColor { get; set; } public uint BorderColor;
public uint Background { get; set; } public uint Background;
public string Comment { get; set; } = ""; public string Comment = "";
public sbyte Cached { get; set; } public sbyte Cached;
public sbyte MembershipRequested { get; set; } public sbyte MembershipRequested;
} }
class LFGuildApplicationData class LFGuildApplicationData
@@ -271,15 +271,15 @@ namespace Game.Network.Packets
data.WriteString(Comment); data.WriteString(Comment);
} }
public ObjectGuid GuildGUID { get; set; } public ObjectGuid GuildGUID;
public uint GuildVirtualRealm { get; set; } public uint GuildVirtualRealm;
public string GuildName { get; set; } = ""; public string GuildName = "";
public int ClassRoles { get; set; } public int ClassRoles;
public int PlayStyle { get; set; } public int PlayStyle;
public int Availability { get; set; } public int Availability;
public uint SecondsSinceCreated { get; set; } public uint SecondsSinceCreated;
public uint SecondsUntilExpiration { get; set; } public uint SecondsUntilExpiration;
public string Comment { get; set; } = ""; public string Comment = "";
} }
class GuildPostData class GuildPostData
@@ -296,13 +296,13 @@ namespace Game.Network.Packets
data.WriteString(Comment); data.WriteString(Comment);
} }
public bool Active { get; set; } public bool Active;
public int PlayStyle { get; set; } public int PlayStyle;
public int Availability { get; set; } public int Availability;
public int ClassRoles { get; set; } public int ClassRoles;
public int LevelRange { get; set; } public int LevelRange;
public long SecondsRemaining { get; set; } public long SecondsRemaining;
public string Comment { get; set; } = ""; public string Comment = "";
} }
class LFGuildRecruitData class LFGuildRecruitData
@@ -326,17 +326,17 @@ namespace Game.Network.Packets
data.WriteString(Comment); data.WriteString(Comment);
} }
public ObjectGuid RecruitGUID { get; set; } public ObjectGuid RecruitGUID;
public string Name { get; set; } = ""; public string Name = "";
public uint RecruitVirtualRealm { get; set; } public uint RecruitVirtualRealm;
public string Comment { get; set; } = ""; public string Comment = "";
public int CharacterClass { get; set; } public int CharacterClass;
public int CharacterGender { get; set; } public int CharacterGender;
public int CharacterLevel { get; set; } public int CharacterLevel;
public int ClassRoles { get; set; } public int ClassRoles;
public int PlayStyle { get; set; } public int PlayStyle;
public int Availability { get; set; } public int Availability;
public uint SecondsSinceCreated { get; set; } public uint SecondsSinceCreated;
public uint SecondsUntilExpiration { get; set; } public uint SecondsUntilExpiration;
} }
} }
+253 -253
View File
@@ -32,8 +32,8 @@ namespace Game.Network.Packets
PlayerGuid = _worldPacket.ReadPackedGuid(); PlayerGuid = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid GuildGuid { get; set; } public ObjectGuid GuildGuid;
public ObjectGuid PlayerGuid { get; set; } public ObjectGuid PlayerGuid;
} }
public class QueryGuildInfoResponse : ServerPacket public class QueryGuildInfoResponse : ServerPacket
@@ -73,23 +73,23 @@ namespace Game.Network.Packets
} }
public ObjectGuid GuildGUID { get; set; } public ObjectGuid GuildGUID;
public GuildInfo Info { get; set; } = new GuildInfo(); public GuildInfo Info = new GuildInfo();
public bool HasGuildInfo { get; set; } public bool HasGuildInfo;
public class GuildInfo public class GuildInfo
{ {
public ObjectGuid GuildGuid { get; set; } public ObjectGuid GuildGuid;
public uint VirtualRealmAddress; // a special identifier made from the Index, BattleGroup and Region. public uint VirtualRealmAddress; // a special identifier made from the Index, BattleGroup and Region.
public uint EmblemStyle { get; set; } public uint EmblemStyle;
public uint EmblemColor { get; set; } public uint EmblemColor;
public uint BorderStyle { get; set; } public uint BorderStyle;
public uint BorderColor { get; set; } public uint BorderColor;
public uint BackgroundColor { get; set; } public uint BackgroundColor;
public List<RankInfo> Ranks { get; set; } = new List<RankInfo>(); public List<RankInfo> Ranks = new List<RankInfo>();
public string GuildName { get; set; } = ""; public string GuildName = "";
public struct RankInfo public struct RankInfo
{ {
@@ -100,9 +100,9 @@ namespace Game.Network.Packets
RankName = name; RankName = name;
} }
public uint RankID { get; set; } public uint RankID;
public uint RankOrder { get; set; } public uint RankOrder;
public string RankName { get; set; } public string RankName;
} }
} }
} }
@@ -137,12 +137,12 @@ namespace Game.Network.Packets
_worldPacket.WriteString(InfoText); _worldPacket.WriteString(InfoText);
} }
public List<GuildRosterMemberData> MemberData { get; set; } public List<GuildRosterMemberData> MemberData;
public string WelcomeText { get; set; } public string WelcomeText;
public string InfoText { get; set; } public string InfoText;
public uint CreateDate { get; set; } public uint CreateDate;
public int NumAccounts { get; set; } public int NumAccounts;
public int GuildFlags { get; set; } public int GuildFlags;
} }
public class GuildRosterUpdate : ServerPacket public class GuildRosterUpdate : ServerPacket
@@ -159,7 +159,7 @@ namespace Game.Network.Packets
MemberData.ForEach(p => p.Write(_worldPacket)); MemberData.ForEach(p => p.Write(_worldPacket));
} }
public List<GuildRosterMemberData> MemberData { get; set; } public List<GuildRosterMemberData> MemberData;
} }
public class GuildUpdateMotdText : ClientPacket public class GuildUpdateMotdText : ClientPacket
@@ -172,7 +172,7 @@ namespace Game.Network.Packets
MotdText = _worldPacket.ReadString(textLen); MotdText = _worldPacket.ReadString(textLen);
} }
public string MotdText { get; set; } public string MotdText;
} }
public class GuildCommandResult : ServerPacket public class GuildCommandResult : ServerPacket
@@ -188,9 +188,9 @@ namespace Game.Network.Packets
_worldPacket.WriteString(Name); _worldPacket.WriteString(Name);
} }
public string Name { get; set; } public string Name;
public GuildCommandError Result { get; set; } public GuildCommandError Result;
public GuildCommandType Command { get; set; } public GuildCommandType Command;
} }
public class AcceptGuildInvite : ClientPacket public class AcceptGuildInvite : ClientPacket
@@ -216,7 +216,7 @@ namespace Game.Network.Packets
Allow = _worldPacket.HasBit(); Allow = _worldPacket.HasBit();
} }
public bool Allow { get; set; } public bool Allow;
} }
public class GuildInviteByName : ClientPacket public class GuildInviteByName : ClientPacket
@@ -259,20 +259,20 @@ namespace Game.Network.Packets
_worldPacket.WriteString(OldGuildName); _worldPacket.WriteString(OldGuildName);
} }
public ObjectGuid GuildGUID { get; set; } public ObjectGuid GuildGUID;
public ObjectGuid OldGuildGUID { get; set; } public ObjectGuid OldGuildGUID;
public int AchievementPoints { get; set; } public int AchievementPoints;
public uint EmblemColor { get; set; } public uint EmblemColor;
public uint EmblemStyle { get; set; } public uint EmblemStyle;
public uint BorderStyle { get; set; } public uint BorderStyle;
public uint BorderColor { get; set; } public uint BorderColor;
public uint Background { get; set; } public uint Background;
public uint GuildVirtualRealmAddress { get; set; } public uint GuildVirtualRealmAddress;
public uint OldGuildVirtualRealmAddress { get; set; } public uint OldGuildVirtualRealmAddress;
public uint InviterVirtualRealmAddress { get; set; } public uint InviterVirtualRealmAddress;
public string InviterName { get; set; } public string InviterName;
public string GuildName { get; set; } public string GuildName;
public string OldGuildName { get; set; } public string OldGuildName;
} }
public class GuildEventPresenceChange : ServerPacket public class GuildEventPresenceChange : ServerPacket
@@ -291,11 +291,11 @@ namespace Game.Network.Packets
_worldPacket.WriteString(Name); _worldPacket.WriteString(Name);
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
public uint VirtualRealmAddress { get; set; } public uint VirtualRealmAddress;
public string Name { get; set; } public string Name;
public bool Mobile { get; set; } public bool Mobile;
public bool LoggedOn { get; set; } public bool LoggedOn;
} }
public class GuildEventMotd : ServerPacket public class GuildEventMotd : ServerPacket
@@ -308,7 +308,7 @@ namespace Game.Network.Packets
_worldPacket.WriteString(MotdText); _worldPacket.WriteString(MotdText);
} }
public string MotdText { get; set; } public string MotdText;
} }
public class GuildEventPlayerJoined : ServerPacket public class GuildEventPlayerJoined : ServerPacket
@@ -324,9 +324,9 @@ namespace Game.Network.Packets
_worldPacket.WriteString(Name); _worldPacket.WriteString(Name);
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
public string Name { get; set; } public string Name;
public uint VirtualRealmAddress { get; set; } public uint VirtualRealmAddress;
} }
public class GuildEventRankChanged : ServerPacket public class GuildEventRankChanged : ServerPacket
@@ -338,7 +338,7 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(RankID); _worldPacket.WriteUInt32(RankID);
} }
public uint RankID { get; set; } public uint RankID;
} }
public class GuildEventRanksUpdated : ServerPacket public class GuildEventRanksUpdated : ServerPacket
@@ -357,7 +357,7 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt64(Money); _worldPacket.WriteUInt64(Money);
} }
public ulong Money { get; set; } public ulong Money;
} }
public class GuildEventDisbanded : ServerPacket public class GuildEventDisbanded : ServerPacket
@@ -395,7 +395,7 @@ namespace Game.Network.Packets
} }
} }
public List<GuildEventEntry> Entry { get; set; } public List<GuildEventEntry> Entry;
} }
public class GuildEventPlayerLeft : ServerPacket public class GuildEventPlayerLeft : ServerPacket
@@ -421,13 +421,13 @@ namespace Game.Network.Packets
_worldPacket.WriteString(LeaverName); _worldPacket.WriteString(LeaverName);
} }
public ObjectGuid LeaverGUID { get; set; } public ObjectGuid LeaverGUID;
public string LeaverName { get; set; } public string LeaverName;
public uint LeaverVirtualRealmAddress { get; set; } public uint LeaverVirtualRealmAddress;
public ObjectGuid RemoverGUID { get; set; } public ObjectGuid RemoverGUID;
public string RemoverName { get; set; } public string RemoverName;
public uint RemoverVirtualRealmAddress { get; set; } public uint RemoverVirtualRealmAddress;
public bool Removed { get; set; } public bool Removed;
} }
public class GuildEventNewLeader : ServerPacket public class GuildEventNewLeader : ServerPacket
@@ -449,13 +449,13 @@ namespace Game.Network.Packets
_worldPacket.WriteString(OldLeaderName); _worldPacket.WriteString(OldLeaderName);
} }
public ObjectGuid NewLeaderGUID { get; set; } public ObjectGuid NewLeaderGUID;
public string NewLeaderName { get; set; } public string NewLeaderName;
public uint NewLeaderVirtualRealmAddress { get; set; } public uint NewLeaderVirtualRealmAddress;
public ObjectGuid OldLeaderGUID { get; set; } public ObjectGuid OldLeaderGUID;
public string OldLeaderName { get; set; } = ""; public string OldLeaderName = "";
public uint OldLeaderVirtualRealmAddress { get; set; } public uint OldLeaderVirtualRealmAddress;
public bool SelfPromoted { get; set; } public bool SelfPromoted;
} }
public class GuildEventTabAdded : ServerPacket public class GuildEventTabAdded : ServerPacket
@@ -481,9 +481,9 @@ namespace Game.Network.Packets
_worldPacket.WriteString(Icon); _worldPacket.WriteString(Icon);
} }
public string Icon { get; set; } public string Icon;
public string Name { get; set; } public string Name;
public int Tab { get; set; } public int Tab;
} }
public class GuildEventTabTextChanged : ServerPacket public class GuildEventTabTextChanged : ServerPacket
@@ -495,7 +495,7 @@ namespace Game.Network.Packets
_worldPacket.WriteInt32(Tab); _worldPacket.WriteInt32(Tab);
} }
public int Tab { get; set; } public int Tab;
} }
public class GuildEventBankContentsChanged : ServerPacket public class GuildEventBankContentsChanged : ServerPacket
@@ -534,16 +534,16 @@ namespace Game.Network.Packets
} }
} }
public int NumTabs { get; set; } public int NumTabs;
public int WithdrawGoldLimit { get; set; } public int WithdrawGoldLimit;
public int Flags { get; set; } public int Flags;
public uint RankID { get; set; } public uint RankID;
public List<GuildRankTabPermissions> Tab { get; set; } public List<GuildRankTabPermissions> Tab;
public struct GuildRankTabPermissions public struct GuildRankTabPermissions
{ {
public int Flags { get; set; } public int Flags;
public int WithdrawItemLimit { get; set; } public int WithdrawItemLimit;
} }
} }
@@ -571,14 +571,14 @@ namespace Game.Network.Packets
RankName = _worldPacket.ReadString(rankNameLen); RankName = _worldPacket.ReadString(rankNameLen);
} }
public int RankID { get; set; } public int RankID;
public int RankOrder { get; set; } public int RankOrder;
public int WithdrawGoldLimit { get; set; } public int WithdrawGoldLimit;
public uint Flags { get; set; } public uint Flags;
public uint OldFlags { get; set; } public uint OldFlags;
public int[] TabFlags { get; set; } = new int[GuildConst.MaxBankTabs]; public int[] TabFlags = new int[GuildConst.MaxBankTabs];
public int[] TabWithdrawItemLimit { get; set; } = new int[GuildConst.MaxBankTabs]; public int[] TabWithdrawItemLimit = new int[GuildConst.MaxBankTabs];
public string RankName { get; set; } public string RankName;
} }
public class GuildAddRank : ClientPacket public class GuildAddRank : ClientPacket
@@ -594,8 +594,8 @@ namespace Game.Network.Packets
Name = _worldPacket.ReadString(nameLen); Name = _worldPacket.ReadString(nameLen);
} }
public string Name { get; set; } public string Name;
public int RankOrder { get; set; } public int RankOrder;
} }
public class GuildAssignMemberRank : ClientPacket public class GuildAssignMemberRank : ClientPacket
@@ -608,8 +608,8 @@ namespace Game.Network.Packets
RankOrder = _worldPacket.ReadInt32(); RankOrder = _worldPacket.ReadInt32();
} }
public ObjectGuid Member { get; set; } public ObjectGuid Member;
public int RankOrder { get; set; } public int RankOrder;
} }
public class GuildDeleteRank : ClientPacket public class GuildDeleteRank : ClientPacket
@@ -621,7 +621,7 @@ namespace Game.Network.Packets
RankOrder = _worldPacket.ReadInt32(); RankOrder = _worldPacket.ReadInt32();
} }
public int RankOrder { get; set; } public int RankOrder;
} }
public class GuildGetRanks : ClientPacket public class GuildGetRanks : ClientPacket
@@ -633,7 +633,7 @@ namespace Game.Network.Packets
GuildGUID = _worldPacket.ReadPackedGuid(); GuildGUID = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid GuildGUID { get; set; } public ObjectGuid GuildGUID;
} }
public class GuildRanks : ServerPacket public class GuildRanks : ServerPacket
@@ -650,7 +650,7 @@ namespace Game.Network.Packets
Ranks.ForEach(p => p.Write(_worldPacket)); Ranks.ForEach(p => p.Write(_worldPacket));
} }
public List<GuildRankData> Ranks { get; set; } public List<GuildRankData> Ranks;
} }
public class GuildSendRankChange : ServerPacket public class GuildSendRankChange : ServerPacket
@@ -667,10 +667,10 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public ObjectGuid Other { get; set; } public ObjectGuid Other;
public ObjectGuid Officer { get; set; } public ObjectGuid Officer;
public bool Promote { get; set; } public bool Promote;
public uint RankID { get; set; } public uint RankID;
} }
public class GuildShiftRank : ClientPacket public class GuildShiftRank : ClientPacket
@@ -683,8 +683,8 @@ namespace Game.Network.Packets
ShiftUp = _worldPacket.HasBit(); ShiftUp = _worldPacket.HasBit();
} }
public bool ShiftUp { get; set; } public bool ShiftUp;
public int RankOrder { get; set; } public int RankOrder;
} }
public class GuildUpdateInfoText : ClientPacket public class GuildUpdateInfoText : ClientPacket
@@ -697,7 +697,7 @@ namespace Game.Network.Packets
InfoText = _worldPacket.ReadString(textLen); InfoText = _worldPacket.ReadString(textLen);
} }
public string InfoText { get; set; } public string InfoText;
} }
public class GuildSetMemberNote : ClientPacket public class GuildSetMemberNote : ClientPacket
@@ -714,9 +714,9 @@ namespace Game.Network.Packets
Note = _worldPacket.ReadString(noteLen); Note = _worldPacket.ReadString(noteLen);
} }
public ObjectGuid NoteeGUID { get; set; } public ObjectGuid NoteeGUID;
public bool IsPublic { get; set; } ///< 0 == Officer, 1 == Public public bool IsPublic; ///< 0 == Officer, 1 == Public
public string Note { get; set; } public string Note;
} }
public class GuildMemberUpdateNote : ServerPacket public class GuildMemberUpdateNote : ServerPacket
@@ -734,9 +734,9 @@ namespace Game.Network.Packets
_worldPacket.WriteString(Note); _worldPacket.WriteString(Note);
} }
public ObjectGuid Member { get; set; } public ObjectGuid Member;
public bool IsPublic; ///< 0 == Officer, 1 == Public public bool IsPublic; ///< 0 == Officer, 1 == Public
public string Note { get; set; } public string Note;
} }
public class GuildMemberDailyReset : ServerPacket public class GuildMemberDailyReset : ServerPacket
@@ -762,7 +762,7 @@ namespace Game.Network.Packets
Demotee = _worldPacket.ReadPackedGuid(); Demotee = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid Demotee { get; set; } public ObjectGuid Demotee;
} }
public class GuildPromoteMember : ClientPacket public class GuildPromoteMember : ClientPacket
@@ -774,7 +774,7 @@ namespace Game.Network.Packets
Promotee = _worldPacket.ReadPackedGuid(); Promotee = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid Promotee { get; set; } public ObjectGuid Promotee;
} }
public class GuildOfficerRemoveMember : ClientPacket public class GuildOfficerRemoveMember : ClientPacket
@@ -786,7 +786,7 @@ namespace Game.Network.Packets
Removee = _worldPacket.ReadPackedGuid(); Removee = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid Removee { get; set; } public ObjectGuid Removee;
} }
public class GuildLeave : ClientPacket public class GuildLeave : ClientPacket
@@ -806,7 +806,7 @@ namespace Game.Network.Packets
NewName = _worldPacket.ReadString(nameLen); NewName = _worldPacket.ReadString(nameLen);
} }
public string NewName { get; set; } public string NewName;
} }
public class GuildFlaggedForRename : ServerPacket public class GuildFlaggedForRename : ServerPacket
@@ -818,7 +818,7 @@ namespace Game.Network.Packets
_worldPacket.WriteBit(FlagSet); _worldPacket.WriteBit(FlagSet);
} }
public bool FlagSet { get; set; } public bool FlagSet;
} }
public class RequestGuildPartyState : ClientPacket public class RequestGuildPartyState : ClientPacket
@@ -830,7 +830,7 @@ namespace Game.Network.Packets
GuildGUID = _worldPacket.ReadPackedGuid(); GuildGUID = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid GuildGUID { get; set; } public ObjectGuid GuildGUID;
} }
public class GuildPartyState : ServerPacket public class GuildPartyState : ServerPacket
@@ -847,10 +847,10 @@ namespace Game.Network.Packets
_worldPacket.WriteFloat(GuildXPEarnedMult); _worldPacket.WriteFloat(GuildXPEarnedMult);
} }
public float GuildXPEarnedMult { get; set; } = 0.0f; public float GuildXPEarnedMult = 0.0f;
public int NumMembers { get; set; } public int NumMembers;
public int NumRequired { get; set; } public int NumRequired;
public bool InGuildParty { get; set; } public bool InGuildParty;
} }
public class RequestGuildRewardsList : ClientPacket public class RequestGuildRewardsList : ClientPacket
@@ -862,7 +862,7 @@ namespace Game.Network.Packets
CurrentVersion = _worldPacket.ReadUInt32(); CurrentVersion = _worldPacket.ReadUInt32();
} }
public uint CurrentVersion { get; set; } public uint CurrentVersion;
} }
public class GuildRewardList : ServerPacket public class GuildRewardList : ServerPacket
@@ -881,8 +881,8 @@ namespace Game.Network.Packets
item.Write(_worldPacket); item.Write(_worldPacket);
} }
public List<GuildRewardItem> RewardItems { get; set; } public List<GuildRewardItem> RewardItems;
public uint Version { get; set; } public uint Version;
} }
public class GuildBankActivate : ClientPacket public class GuildBankActivate : ClientPacket
@@ -895,8 +895,8 @@ namespace Game.Network.Packets
FullUpdate = _worldPacket.HasBit(); FullUpdate = _worldPacket.HasBit();
} }
public ObjectGuid Banker { get; set; } public ObjectGuid Banker;
public bool FullUpdate { get; set; } public bool FullUpdate;
} }
public class GuildBankBuyTab : ClientPacket public class GuildBankBuyTab : ClientPacket
@@ -909,8 +909,8 @@ namespace Game.Network.Packets
BankTab = _worldPacket.ReadUInt8(); BankTab = _worldPacket.ReadUInt8();
} }
public ObjectGuid Banker { get; set; } public ObjectGuid Banker;
public byte BankTab { get; set; } public byte BankTab;
} }
public class GuildBankUpdateTab : ClientPacket public class GuildBankUpdateTab : ClientPacket
@@ -930,10 +930,10 @@ namespace Game.Network.Packets
Icon = _worldPacket.ReadString(iconLen); Icon = _worldPacket.ReadString(iconLen);
} }
public ObjectGuid Banker { get; set; } public ObjectGuid Banker;
public byte BankTab { get; set; } public byte BankTab;
public string Name { get; set; } public string Name;
public string Icon { get; set; } public string Icon;
} }
public class GuildBankDepositMoney : ClientPacket public class GuildBankDepositMoney : ClientPacket
@@ -946,8 +946,8 @@ namespace Game.Network.Packets
Money = _worldPacket.ReadUInt64(); Money = _worldPacket.ReadUInt64();
} }
public ObjectGuid Banker { get; set; } public ObjectGuid Banker;
public ulong Money { get; set; } public ulong Money;
} }
public class GuildBankQueryTab : ClientPacket public class GuildBankQueryTab : ClientPacket
@@ -962,9 +962,9 @@ namespace Game.Network.Packets
FullUpdate = _worldPacket.HasBit(); FullUpdate = _worldPacket.HasBit();
} }
public ObjectGuid Banker { get; set; } public ObjectGuid Banker;
public byte Tab { get; set; } public byte Tab;
public bool FullUpdate { get; set; } public bool FullUpdate;
} }
public class GuildBankRemainingWithdrawMoneyQuery : ClientPacket public class GuildBankRemainingWithdrawMoneyQuery : ClientPacket
@@ -983,7 +983,7 @@ namespace Game.Network.Packets
_worldPacket .WriteInt64( RemainingWithdrawMoney); _worldPacket .WriteInt64( RemainingWithdrawMoney);
} }
public long RemainingWithdrawMoney { get; set; } public long RemainingWithdrawMoney;
} }
public class GuildBankWithdrawMoney : ClientPacket public class GuildBankWithdrawMoney : ClientPacket
@@ -996,8 +996,8 @@ namespace Game.Network.Packets
Money = _worldPacket.ReadUInt64(); Money = _worldPacket.ReadUInt64();
} }
public ObjectGuid Banker { get; set; } public ObjectGuid Banker;
public ulong Money { get; set; } public ulong Money;
} }
public class GuildBankQueryResults : ServerPacket public class GuildBankQueryResults : ServerPacket
@@ -1048,12 +1048,12 @@ namespace Game.Network.Packets
} }
} }
public List<GuildBankItemInfo> ItemInfo { get; set; } public List<GuildBankItemInfo> ItemInfo;
public List<GuildBankTabInfo> TabInfo { get; set; } public List<GuildBankTabInfo> TabInfo;
public int WithdrawalsRemaining { get; set; } public int WithdrawalsRemaining;
public int Tab { get; set; } public int Tab;
public ulong Money { get; set; } public ulong Money;
public bool FullUpdate { get; set; } public bool FullUpdate;
} }
public class GuildBankSwapItems : ClientPacket public class GuildBankSwapItems : ClientPacket
@@ -1080,20 +1080,20 @@ namespace Game.Network.Packets
AutoStore = _worldPacket.HasBit(); AutoStore = _worldPacket.HasBit();
} }
public ObjectGuid Banker { get; set; } public ObjectGuid Banker;
public int StackCount { get; set; } public int StackCount;
public int BankItemCount { get; set; } public int BankItemCount;
public uint ItemID { get; set; } public uint ItemID;
public uint ItemID1 { get; set; } public uint ItemID1;
public byte ToSlot { get; set; } public byte ToSlot;
public byte BankSlot { get; set; } public byte BankSlot;
public byte BankSlot1 { get; set; } public byte BankSlot1;
public byte BankTab { get; set; } public byte BankTab;
public byte BankTab1 { get; set; } public byte BankTab1;
public byte ContainerSlot { get; set; } public byte ContainerSlot;
public byte ContainerItemSlot { get; set; } public byte ContainerItemSlot;
public bool AutoStore { get; set; } public bool AutoStore;
public bool BankOnly { get; set; } public bool BankOnly;
} }
public class GuildBankLogQuery : ClientPacket public class GuildBankLogQuery : ClientPacket
@@ -1105,7 +1105,7 @@ namespace Game.Network.Packets
Tab = _worldPacket.ReadInt32(); Tab = _worldPacket.ReadInt32();
} }
public int Tab { get; set; } public int Tab;
} }
public class GuildBankLogQueryResults : ServerPacket public class GuildBankLogQueryResults : ServerPacket
@@ -1151,9 +1151,9 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt64(WeeklyBonusMoney.Value); _worldPacket.WriteUInt64(WeeklyBonusMoney.Value);
} }
public int Tab { get; set; } public int Tab;
public List<GuildBankLogEntry> Entry { get; set; } public List<GuildBankLogEntry> Entry;
public Optional<ulong> WeeklyBonusMoney { get; set; } public Optional<ulong> WeeklyBonusMoney;
} }
public class GuildBankTextQuery : ClientPacket public class GuildBankTextQuery : ClientPacket
@@ -1165,7 +1165,7 @@ namespace Game.Network.Packets
Tab = _worldPacket.ReadInt32(); Tab = _worldPacket.ReadInt32();
} }
public int Tab { get; set; } public int Tab;
} }
public class GuildBankTextQueryResult : ServerPacket public class GuildBankTextQueryResult : ServerPacket
@@ -1180,8 +1180,8 @@ namespace Game.Network.Packets
_worldPacket.WriteString(Text); _worldPacket.WriteString(Text);
} }
public int Tab { get; set; } public int Tab;
public string Text { get; set; } public string Text;
} }
public class GuildBankSetTabText : ClientPacket public class GuildBankSetTabText : ClientPacket
@@ -1194,8 +1194,8 @@ namespace Game.Network.Packets
TabText = _worldPacket.ReadString(_worldPacket.ReadBits<uint>(14)); TabText = _worldPacket.ReadString(_worldPacket.ReadBits<uint>(14));
} }
public int Tab { get; set; } public int Tab;
public string TabText { get; set; } public string TabText;
} }
public class GuildQueryNews : ClientPacket public class GuildQueryNews : ClientPacket
@@ -1207,7 +1207,7 @@ namespace Game.Network.Packets
GuildGUID = _worldPacket.ReadPackedGuid(); GuildGUID = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid GuildGUID { get; set; } public ObjectGuid GuildGUID;
} }
public class GuildNewsPkt : ServerPacket public class GuildNewsPkt : ServerPacket
@@ -1224,7 +1224,7 @@ namespace Game.Network.Packets
newsEvent.Write(_worldPacket); newsEvent.Write(_worldPacket);
} }
public List<GuildNewsEvent> NewsEvents { get; set; } public List<GuildNewsEvent> NewsEvents;
} }
public class GuildNewsUpdateSticky : ClientPacket public class GuildNewsUpdateSticky : ClientPacket
@@ -1239,9 +1239,9 @@ namespace Game.Network.Packets
Sticky = _worldPacket.HasBit(); Sticky = _worldPacket.HasBit();
} }
public int NewsID { get; set; } public int NewsID;
public ObjectGuid GuildGUID { get; set; } public ObjectGuid GuildGUID;
public bool Sticky { get; set; } public bool Sticky;
} }
public class GuildSetGuildMaster : ClientPacket public class GuildSetGuildMaster : ClientPacket
@@ -1254,7 +1254,7 @@ namespace Game.Network.Packets
NewMasterName = _worldPacket.ReadString(nameLen); NewMasterName = _worldPacket.ReadString(nameLen);
} }
public string NewMasterName { get; set; } public string NewMasterName;
} }
public class GuildChallengeUpdateRequest : ClientPacket public class GuildChallengeUpdateRequest : ClientPacket
@@ -1283,10 +1283,10 @@ namespace Game.Network.Packets
_worldPacket.WriteInt32(Gold[i]); _worldPacket.WriteInt32(Gold[i]);
} }
public int[] CurrentCount { get; set; } = new int[GuildConst.ChallengesTypes]; public int[] CurrentCount = new int[GuildConst.ChallengesTypes];
public int[] MaxCount { get; set; } = new int[GuildConst.ChallengesTypes]; public int[] MaxCount = new int[GuildConst.ChallengesTypes];
public int[] Gold { get; set; } = new int[GuildConst.ChallengesTypes]; public int[] Gold = new int[GuildConst.ChallengesTypes];
public int[] MaxLevelGold { get; set; } = new int[GuildConst.ChallengesTypes]; public int[] MaxLevelGold = new int[GuildConst.ChallengesTypes];
} }
public class SaveGuildEmblem : ClientPacket public class SaveGuildEmblem : ClientPacket
@@ -1303,12 +1303,12 @@ namespace Game.Network.Packets
Bg = _worldPacket.ReadUInt32(); Bg = _worldPacket.ReadUInt32();
} }
public ObjectGuid Vendor { get; set; } public ObjectGuid Vendor;
public uint BStyle { get; set; } public uint BStyle;
public uint EStyle { get; set; } public uint EStyle;
public uint BColor { get; set; } public uint BColor;
public uint EColor { get; set; } public uint EColor;
public uint Bg { get; set; } public uint Bg;
} }
public class PlayerSaveGuildEmblem : ServerPacket public class PlayerSaveGuildEmblem : ServerPacket
@@ -1320,7 +1320,7 @@ namespace Game.Network.Packets
_worldPacket.WriteInt32(Error); _worldPacket.WriteInt32(Error);
} }
public GuildEmblemError Error { get; set; } public GuildEmblemError Error;
} }
class GuildSetAchievementTracking : ClientPacket class GuildSetAchievementTracking : ClientPacket
@@ -1335,7 +1335,7 @@ namespace Game.Network.Packets
AchievementIDs.Add(_worldPacket.ReadUInt32()); AchievementIDs.Add(_worldPacket.ReadUInt32());
} }
public List<uint> AchievementIDs { get; set; } = new List<uint>(); public List<uint> AchievementIDs = new List<uint>();
} }
class GuildNameChanged : ServerPacket class GuildNameChanged : ServerPacket
@@ -1350,8 +1350,8 @@ namespace Game.Network.Packets
_worldPacket.WriteString(GuildName); _worldPacket.WriteString(GuildName);
} }
public ObjectGuid GuildGUID { get; set; } public ObjectGuid GuildGUID;
public string GuildName { get; set; } public string GuildName;
} }
//Structs //Structs
@@ -1364,9 +1364,9 @@ namespace Game.Network.Packets
data.WriteInt32(Step); data.WriteInt32(Step);
} }
public int DbID { get; set; } public int DbID;
public int Rank { get; set; } public int Rank;
public int Step { get; set; } public int Step;
} }
public class GuildRosterMemberData public class GuildRosterMemberData
@@ -1400,35 +1400,35 @@ namespace Game.Network.Packets
data.WriteString(OfficerNote); data.WriteString(OfficerNote);
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
public long WeeklyXP { get; set; } public long WeeklyXP;
public long TotalXP { get; set; } public long TotalXP;
public int RankID { get; set; } public int RankID;
public int AreaID { get; set; } public int AreaID;
public int PersonalAchievementPoints { get; set; } public int PersonalAchievementPoints;
public int GuildReputation { get; set; } public int GuildReputation;
public int GuildRepToCap { get; set; } public int GuildRepToCap;
public float LastSave { get; set; } public float LastSave;
public string Name { get; set; } public string Name;
public uint VirtualRealmAddress { get; set; } public uint VirtualRealmAddress;
public string Note { get; set; } public string Note;
public string OfficerNote { get; set; } public string OfficerNote;
public byte Status { get; set; } public byte Status;
public byte Level { get; set; } public byte Level;
public byte ClassID { get; set; } public byte ClassID;
public byte Gender { get; set; } public byte Gender;
public bool Authenticated { get; set; } public bool Authenticated;
public bool SorEligible { get; set; } public bool SorEligible;
public GuildRosterProfessionData[] Profession { get; set; } = new GuildRosterProfessionData[2]; public GuildRosterProfessionData[] Profession = new GuildRosterProfessionData[2];
} }
public struct GuildEventEntry public struct GuildEventEntry
{ {
public ObjectGuid PlayerGUID { get; set; } public ObjectGuid PlayerGUID;
public ObjectGuid OtherGUID { get; set; } public ObjectGuid OtherGUID;
public byte TransactionType { get; set; } public byte TransactionType;
public byte RankID { get; set; } public byte RankID;
public uint TransactionDate { get; set; } public uint TransactionDate;
} }
public class GuildRankData public class GuildRankData
@@ -1450,13 +1450,13 @@ namespace Game.Network.Packets
data.WriteString(RankName); data.WriteString(RankName);
} }
public uint RankID { get; set; } public uint RankID;
public uint RankOrder { get; set; } public uint RankOrder;
public uint Flags { get; set; } public uint Flags;
public uint WithdrawGoldLimit { get; set; } public uint WithdrawGoldLimit;
public string RankName { get; set; } public string RankName;
public uint[] TabFlags { get; set; } = new uint[GuildConst.MaxBankTabs]; public uint[] TabFlags = new uint[GuildConst.MaxBankTabs];
public uint[] TabWithdrawItemLimit { get; set; } = new uint[GuildConst.MaxBankTabs]; public uint[] TabWithdrawItemLimit = new uint[GuildConst.MaxBankTabs];
} }
public class GuildRewardItem public class GuildRewardItem
@@ -1475,44 +1475,44 @@ namespace Game.Network.Packets
data.WriteUInt32(achievementId); data.WriteUInt32(achievementId);
} }
public uint ItemID { get; set; } public uint ItemID;
public uint Unk4 { get; set; } public uint Unk4;
public List<uint> AchievementsRequired { get; set; } = new List<uint>(); public List<uint> AchievementsRequired = new List<uint>();
public uint RaceMask { get; set; } public uint RaceMask;
public int MinGuildLevel { get; set; } public int MinGuildLevel;
public int MinGuildRep { get; set; } public int MinGuildRep;
public ulong Cost { get; set; } public ulong Cost;
} }
public class GuildBankItemInfo public class GuildBankItemInfo
{ {
public ItemInstance Item { get; set; } public ItemInstance Item;
public int Slot { get; set; } public int Slot;
public int Count { get; set; } public int Count;
public int EnchantmentID { get; set; } public int EnchantmentID;
public int Charges { get; set; } public int Charges;
public int OnUseEnchantmentID { get; set; } public int OnUseEnchantmentID;
public int Flags { get; set; } public int Flags;
public bool Locked { get; set; } public bool Locked;
public List<ItemGemData> SocketEnchant { get; set; } = new List<ItemGemData>(); public List<ItemGemData> SocketEnchant = new List<ItemGemData>();
} }
public struct GuildBankTabInfo public struct GuildBankTabInfo
{ {
public int TabIndex { get; set; } public int TabIndex;
public string Name { get; set; } public string Name;
public string Icon { get; set; } public string Icon;
} }
public struct GuildBankLogEntry public struct GuildBankLogEntry
{ {
public ObjectGuid PlayerGUID { get; set; } public ObjectGuid PlayerGUID;
public uint TimeOffset { get; set; } public uint TimeOffset;
public sbyte EntryType { get; set; } public sbyte EntryType;
public Optional<ulong> Money { get; set; } public Optional<ulong> Money;
public Optional<int> ItemID { get; set; } public Optional<int> ItemID;
public Optional<int> Count { get; set; } public Optional<int> Count;
public Optional<sbyte> OtherTab { get; set; } public Optional<sbyte> OtherTab;
} }
public class GuildNewsEvent public class GuildNewsEvent
@@ -1540,13 +1540,13 @@ namespace Game.Network.Packets
Item.Value.Write(data); Item.Value.Write(data);
} }
public int Id { get; set; } public int Id;
public uint CompletedDate { get; set; } public uint CompletedDate;
public int Type { get; set; } public int Type;
public int Flags { get; set; } public int Flags;
public int[] Data { get; set; } = new int[2]; public int[] Data = new int[2];
public ObjectGuid MemberGuid { get; set; } public ObjectGuid MemberGuid;
public List<ObjectGuid> MemberList { get; set; } = new List<ObjectGuid>(); public List<ObjectGuid> MemberList = new List<ObjectGuid>();
public Optional<ItemInstance> Item { get; set; } public Optional<ItemInstance> Item;
} }
} }
+15 -15
View File
@@ -38,8 +38,8 @@ namespace Game.Network.Packets
} }
} }
public uint TableHash { get; set; } public uint TableHash;
public List<DBQueryRecord> Queries { get; set; } = new List<DBQueryRecord>(); public List<DBQueryRecord> Queries = new List<DBQueryRecord>();
public struct DBQueryRecord public struct DBQueryRecord
{ {
@@ -49,8 +49,8 @@ namespace Game.Network.Packets
RecordID = recordId; RecordID = recordId;
} }
public ObjectGuid GUID { get; set; } public ObjectGuid GUID;
public uint RecordID { get; set; } public uint RecordID;
} }
} }
@@ -68,12 +68,12 @@ namespace Game.Network.Packets
_worldPacket.WriteBytes(Data.GetData()); _worldPacket.WriteBytes(Data.GetData());
} }
public uint TableHash { get; set; } public uint TableHash;
public uint Timestamp { get; set; } public uint Timestamp;
public uint RecordID { get; set; } public uint RecordID;
public bool Allow { get; set; } public bool Allow;
public ByteBuffer Data { get; set; } = new ByteBuffer(); public ByteBuffer Data = new ByteBuffer();
} }
class HotfixList : ServerPacket class HotfixList : ServerPacket
@@ -93,8 +93,8 @@ namespace Game.Network.Packets
_worldPacket.WriteInt64(hotfixEntry.Key); _worldPacket.WriteInt64(hotfixEntry.Key);
} }
public int HotfixCacheVersion { get; set; } public int HotfixCacheVersion;
public Dictionary<ulong, int> Hotfixes { get; set; } = new Dictionary<ulong, int>(); public Dictionary<ulong, int> Hotfixes = new Dictionary<ulong, int>();
} }
class HotfixQuery : ClientPacket class HotfixQuery : ClientPacket
@@ -111,7 +111,7 @@ namespace Game.Network.Packets
Hotfixes.Add(_worldPacket.ReadUInt64()); Hotfixes.Add(_worldPacket.ReadUInt64());
} }
public List<ulong> Hotfixes { get; set; } = new List<ulong>(); public List<ulong> Hotfixes = new List<ulong>();
} }
class HotfixQueryResponse : ServerPacket class HotfixQueryResponse : ServerPacket
@@ -125,7 +125,7 @@ namespace Game.Network.Packets
hotfix.Write(_worldPacket); hotfix.Write(_worldPacket);
} }
public List<HotfixData> Hotfixes { get; set; } = new List<HotfixData>(); public List<HotfixData> Hotfixes = new List<HotfixData>();
public class HotfixData public class HotfixData
{ {
@@ -141,8 +141,8 @@ namespace Game.Network.Packets
} }
} }
public ulong ID { get; set; } public ulong ID;
public int RecordID { get; set; } public int RecordID;
public Optional<ByteBuffer> Data; public Optional<ByteBuffer> Data;
} }
} }
+40 -40
View File
@@ -31,7 +31,7 @@ namespace Game.Network.Packets
Target = _worldPacket.ReadPackedGuid(); Target = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid Target { get; set; } public ObjectGuid Target;
} }
public class InspectResult : ServerPacket public class InspectResult : ServerPacket
@@ -67,15 +67,15 @@ namespace Game.Network.Packets
GuildData.Value.Write(_worldPacket); GuildData.Value.Write(_worldPacket);
} }
public ObjectGuid InspecteeGUID { get; set; } public ObjectGuid InspecteeGUID;
public List<InspectItemData> Items { get; set; } = new List<InspectItemData>(); public List<InspectItemData> Items = new List<InspectItemData>();
public List<ushort> Glyphs { get; set; } = new List<ushort>(); public List<ushort> Glyphs = new List<ushort>();
public List<ushort> Talents { get; set; } = new List<ushort>(); public List<ushort> Talents = new List<ushort>();
public List<ushort> PvpTalents { get; set; } = new List<ushort>(); public List<ushort> PvpTalents = new List<ushort>();
public Class ClassID { get; set; } = Class.None; public Class ClassID = Class.None;
public Gender GenderID { get; set; } = Gender.None; public Gender GenderID = Gender.None;
public Optional<InspectGuildData> GuildData = new Optional<InspectGuildData>(); public Optional<InspectGuildData> GuildData = new Optional<InspectGuildData>();
public int SpecializationID { get; set; } public int SpecializationID;
} }
public class RequestHonorStats : ClientPacket public class RequestHonorStats : ClientPacket
@@ -87,7 +87,7 @@ namespace Game.Network.Packets
TargetGUID = _worldPacket.ReadPackedGuid(); TargetGUID = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid TargetGUID { get; set; } public ObjectGuid TargetGUID;
} }
public class InspectHonorStats : ServerPacket public class InspectHonorStats : ServerPacket
@@ -103,11 +103,11 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(LifetimeHK); _worldPacket.WriteUInt32(LifetimeHK);
} }
public ObjectGuid PlayerGUID { get; set; } public ObjectGuid PlayerGUID;
public uint LifetimeHK { get; set; } public uint LifetimeHK;
public ushort YesterdayHK { get; set; } public ushort YesterdayHK;
public ushort TodayHK { get; set; } public ushort TodayHK;
public byte LifetimeMaxRank { get; set; } public byte LifetimeMaxRank;
} }
public class InspectPVPRequest : ClientPacket public class InspectPVPRequest : ClientPacket
@@ -120,8 +120,8 @@ namespace Game.Network.Packets
InspectRealmAddress = _worldPacket.ReadUInt32(); InspectRealmAddress = _worldPacket.ReadUInt32();
} }
public ObjectGuid InspectTarget { get; set; } public ObjectGuid InspectTarget;
public uint InspectRealmAddress { get; set; } public uint InspectRealmAddress;
} }
public class InspectPVPResponse : ServerPacket public class InspectPVPResponse : ServerPacket
@@ -138,8 +138,8 @@ namespace Game.Network.Packets
Bracket.ForEach(p => p.Write(_worldPacket)); Bracket.ForEach(p => p.Write(_worldPacket));
} }
public List<PVPBracketData> Bracket { get; set; } public List<PVPBracketData> Bracket;
public ObjectGuid ClientGUID { get; set; } public ObjectGuid ClientGUID;
} }
public class QueryInspectAchievements : ClientPacket public class QueryInspectAchievements : ClientPacket
@@ -151,7 +151,7 @@ namespace Game.Network.Packets
Guid = _worldPacket.ReadPackedGuid(); Guid = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
} }
/// RespondInspectAchievements in AchievementPackets /// RespondInspectAchievements in AchievementPackets
@@ -172,8 +172,8 @@ namespace Game.Network.Packets
data.WriteUInt8(Index); data.WriteUInt8(Index);
} }
public uint Id { get; set; } public uint Id;
public byte Index { get; set; } public byte Index;
} }
public class InspectItemData public class InspectItemData
@@ -224,12 +224,12 @@ namespace Game.Network.Packets
Enchants[i].Write(data); Enchants[i].Write(data);
} }
public ObjectGuid CreatorGUID { get; set; } public ObjectGuid CreatorGUID;
public ItemInstance Item { get; set; } public ItemInstance Item;
public byte Index { get; set; } public byte Index;
public bool Usable { get; set; } public bool Usable;
public List<InspectEnchantData> Enchants { get; set; } = new List<InspectEnchantData>(); public List<InspectEnchantData> Enchants = new List<InspectEnchantData>();
public List<ItemGemData> Gems { get; set; } = new List<ItemGemData>(); public List<ItemGemData> Gems = new List<ItemGemData>();
} }
public struct InspectGuildData public struct InspectGuildData
@@ -241,9 +241,9 @@ namespace Game.Network.Packets
data.WriteInt32(AchievementPoints); data.WriteInt32(AchievementPoints);
} }
public ObjectGuid GuildGUID { get; set; } public ObjectGuid GuildGUID;
public int NumGuildMembers { get; set; } public int NumGuildMembers;
public int AchievementPoints { get; set; } public int AchievementPoints;
} }
public struct PVPBracketData public struct PVPBracketData
@@ -261,15 +261,15 @@ namespace Game.Network.Packets
data.WriteUInt8(Bracket); data.WriteUInt8(Bracket);
} }
public int Rating { get; set; } public int Rating;
public int Rank { get; set; } public int Rank;
public int WeeklyPlayed { get; set; } public int WeeklyPlayed;
public int WeeklyWon { get; set; } public int WeeklyWon;
public int SeasonPlayed { get; set; } public int SeasonPlayed;
public int SeasonWon { get; set; } public int SeasonWon;
public int WeeklyBestRating { get; set; } public int WeeklyBestRating;
public int Unk710 { get; set; } public int Unk710;
public byte Bracket { get; set; } public byte Bracket;
} }
} }
+35 -35
View File
@@ -30,7 +30,7 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(MapID); _worldPacket.WriteUInt32(MapID);
} }
public uint MapID { get; set; } public uint MapID;
} }
class InstanceInfoPkt : ServerPacket class InstanceInfoPkt : ServerPacket
@@ -45,7 +45,7 @@ namespace Game.Network.Packets
lockInfos.Write(_worldPacket); lockInfos.Write(_worldPacket);
} }
public List<InstanceLockInfos> LockList { get; set; } = new List<InstanceLockInfos>(); public List<InstanceLockInfos> LockList = new List<InstanceLockInfos>();
} }
class ResetInstances : ClientPacket class ResetInstances : ClientPacket
@@ -64,7 +64,7 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(MapID); _worldPacket.WriteUInt32(MapID);
} }
public uint MapID { get; set; } public uint MapID;
} }
class InstanceResetFailed : ServerPacket class InstanceResetFailed : ServerPacket
@@ -78,8 +78,8 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public uint MapID { get; set; } public uint MapID;
public ResetFailedReason ResetFailedReason { get; set; } public ResetFailedReason ResetFailedReason;
} }
class ResetFailedNotify : ServerPacket class ResetFailedNotify : ServerPacket
@@ -99,7 +99,7 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public bool Gm { get; set; } public bool Gm;
} }
class InstanceLockResponse : ClientPacket class InstanceLockResponse : ClientPacket
@@ -111,7 +111,7 @@ namespace Game.Network.Packets
AcceptLock = _worldPacket.HasBit(); AcceptLock = _worldPacket.HasBit();
} }
public bool AcceptLock { get; set; } public bool AcceptLock;
} }
class RaidGroupOnly : ServerPacket class RaidGroupOnly : ServerPacket
@@ -124,8 +124,8 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(Reason); _worldPacket.WriteUInt32(Reason);
} }
public int Delay { get; set; } public int Delay;
public RaidGroupReason Reason { get; set; } public RaidGroupReason Reason;
} }
class PendingRaidLock : ServerPacket class PendingRaidLock : ServerPacket
@@ -141,10 +141,10 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public int TimeUntilLock { get; set; } public int TimeUntilLock;
public uint CompletedMask { get; set; } public uint CompletedMask;
public bool Extending { get; set; } public bool Extending;
public bool WarningOnly { get; set; } public bool WarningOnly;
} }
class RaidInstanceMessage : ServerPacket class RaidInstanceMessage : ServerPacket
@@ -161,11 +161,11 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public InstanceResetWarningType Type { get; set; } public InstanceResetWarningType Type;
public uint MapID { get; set; } public uint MapID;
public Difficulty DifficultyID { get; set; } public Difficulty DifficultyID;
public bool Locked { get; set; } public bool Locked;
public bool Extended { get; set; } public bool Extended;
} }
class InstanceEncounterEngageUnit : ServerPacket class InstanceEncounterEngageUnit : ServerPacket
@@ -178,7 +178,7 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt8(TargetFramePriority); _worldPacket.WriteUInt8(TargetFramePriority);
} }
public ObjectGuid Unit { get; set; } public ObjectGuid Unit;
public byte TargetFramePriority; // used to set the initial position of the frame if multiple frames are sent public byte TargetFramePriority; // used to set the initial position of the frame if multiple frames are sent
} }
@@ -191,7 +191,7 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(Unit); _worldPacket.WritePackedGuid(Unit);
} }
public ObjectGuid Unit { get; set; } public ObjectGuid Unit;
} }
class InstanceEncounterChangePriority : ServerPacket class InstanceEncounterChangePriority : ServerPacket
@@ -204,7 +204,7 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt8(TargetFramePriority); _worldPacket.WriteUInt8(TargetFramePriority);
} }
public ObjectGuid Unit { get; set; } public ObjectGuid Unit;
public byte TargetFramePriority; // used to update the position of the unit's current frame public byte TargetFramePriority; // used to update the position of the unit's current frame
} }
@@ -220,10 +220,10 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(NextCombatResChargeTime); _worldPacket.WriteUInt32(NextCombatResChargeTime);
} }
public uint InCombatResCount; // amount of usable battle ressurection. public uint InCombatResCount; // amount of usable battle ressurections
public uint MaxInCombatResCount { get; set; } public uint MaxInCombatResCount;
public uint CombatResChargeRecovery { get; set; } public uint CombatResChargeRecovery;
public uint NextCombatResChargeTime { get; set; } public uint NextCombatResChargeTime;
} }
class InstanceEncounterEnd : ServerPacket class InstanceEncounterEnd : ServerPacket
@@ -250,8 +250,8 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(CombatResChargeRecovery); _worldPacket.WriteUInt32(CombatResChargeRecovery);
} }
public int InCombatResCount { get; set; } public int InCombatResCount;
public uint CombatResChargeRecovery { get; set; } public uint CombatResChargeRecovery;
} }
class BossKillCredit : ServerPacket class BossKillCredit : ServerPacket
@@ -263,7 +263,7 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(DungeonEncounterID); _worldPacket.WriteUInt32(DungeonEncounterID);
} }
public uint DungeonEncounterID { get; set; } public uint DungeonEncounterID;
} }
//Structs //Structs
@@ -282,13 +282,13 @@ namespace Game.Network.Packets
data.FlushBits(); data.FlushBits();
} }
public ulong InstanceID { get; set; } public ulong InstanceID;
public uint MapID { get; set; } public uint MapID;
public uint DifficultyID { get; set; } public uint DifficultyID;
public int TimeRemaining { get; set; } public int TimeRemaining;
public uint CompletedMask { get; set; } public uint CompletedMask;
public bool Locked { get; set; } public bool Locked;
public bool Extended { get; set; } public bool Extended;
} }
} }
+142 -142
View File
@@ -33,8 +33,8 @@ namespace Game.Network.Packets
Slot = _worldPacket.ReadUInt32(); Slot = _worldPacket.ReadUInt32();
} }
public ObjectGuid VendorGUID { get; set; } public ObjectGuid VendorGUID;
public uint Slot { get; set; } public uint Slot;
} }
public class BuyItem : ClientPacket public class BuyItem : ClientPacket
@@ -55,13 +55,13 @@ namespace Game.Network.Packets
ItemType = (ItemVendorType)_worldPacket.ReadBits<int>(2); ItemType = (ItemVendorType)_worldPacket.ReadBits<int>(2);
} }
public ObjectGuid VendorGUID { get; set; } public ObjectGuid VendorGUID;
public ItemInstance Item { get; set; } public ItemInstance Item;
public uint Muid { get; set; } public uint Muid;
public uint Slot { get; set; } public uint Slot;
public ItemVendorType ItemType { get; set; } public ItemVendorType ItemType;
public int Quantity { get; set; } public int Quantity;
public ObjectGuid ContainerGUID { get; set; } public ObjectGuid ContainerGUID;
} }
public class BuySucceeded : ServerPacket public class BuySucceeded : ServerPacket
@@ -76,10 +76,10 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(QuantityBought); _worldPacket.WriteUInt32(QuantityBought);
} }
public ObjectGuid VendorGUID { get; set; } public ObjectGuid VendorGUID;
public uint Muid { get; set; } public uint Muid;
public uint QuantityBought { get; set; } public uint QuantityBought;
public uint NewQuantity { get; set; } public uint NewQuantity;
} }
public class BuyFailed : ServerPacket public class BuyFailed : ServerPacket
@@ -93,9 +93,9 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt8(Reason); _worldPacket.WriteUInt8(Reason);
} }
public ObjectGuid VendorGUID { get; set; } public ObjectGuid VendorGUID;
public uint Muid { get; set; } public uint Muid;
public BuyResult Reason { get; set; } = BuyResult.CantFindItem; public BuyResult Reason = BuyResult.CantFindItem;
} }
public class GetItemPurchaseData : ClientPacket public class GetItemPurchaseData : ClientPacket
@@ -107,7 +107,7 @@ namespace Game.Network.Packets
ItemGUID = _worldPacket.ReadPackedGuid(); ItemGUID = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid ItemGUID { get; set; } public ObjectGuid ItemGUID;
} }
class SetItemPurchaseData : ServerPacket class SetItemPurchaseData : ServerPacket
@@ -122,10 +122,10 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(PurchaseTime); _worldPacket.WriteUInt32(PurchaseTime);
} }
public uint PurchaseTime { get; set; } public uint PurchaseTime;
public uint Flags { get; set; } public uint Flags;
public ItemPurchaseContents Contents { get; set; } = new ItemPurchaseContents(); public ItemPurchaseContents Contents = new ItemPurchaseContents();
public ObjectGuid ItemGUID { get; set; } public ObjectGuid ItemGUID;
} }
class ItemPurchaseRefund : ClientPacket class ItemPurchaseRefund : ClientPacket
@@ -137,7 +137,7 @@ namespace Game.Network.Packets
ItemGUID = _worldPacket.ReadPackedGuid(); ItemGUID = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid ItemGUID { get; set; } public ObjectGuid ItemGUID;
} }
class ItemPurchaseRefundResult : ServerPacket class ItemPurchaseRefundResult : ServerPacket
@@ -154,8 +154,8 @@ namespace Game.Network.Packets
Contents.Value.Write(_worldPacket); Contents.Value.Write(_worldPacket);
} }
public byte Result { get; set; } public byte Result;
public ObjectGuid ItemGUID { get; set; } public ObjectGuid ItemGUID;
public Optional<ItemPurchaseContents> Contents; public Optional<ItemPurchaseContents> Contents;
} }
@@ -168,7 +168,7 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(ItemGUID); _worldPacket.WritePackedGuid(ItemGUID);
} }
public ObjectGuid ItemGUID { get; set; } public ObjectGuid ItemGUID;
} }
public class RepairItem : ClientPacket public class RepairItem : ClientPacket
@@ -182,9 +182,9 @@ namespace Game.Network.Packets
UseGuildBank = _worldPacket.HasBit(); UseGuildBank = _worldPacket.HasBit();
} }
public ObjectGuid NpcGUID { get; set; } public ObjectGuid NpcGUID;
public ObjectGuid ItemGUID { get; set; } public ObjectGuid ItemGUID;
public bool UseGuildBank { get; set; } public bool UseGuildBank;
} }
public class SellItem : ClientPacket public class SellItem : ClientPacket
@@ -198,9 +198,9 @@ namespace Game.Network.Packets
Amount = _worldPacket.ReadUInt32(); Amount = _worldPacket.ReadUInt32();
} }
public ObjectGuid VendorGUID { get; set; } public ObjectGuid VendorGUID;
public ObjectGuid ItemGUID { get; set; } public ObjectGuid ItemGUID;
public uint Amount { get; set; } public uint Amount;
} }
public class ItemTimeUpdate : ServerPacket public class ItemTimeUpdate : ServerPacket
@@ -213,8 +213,8 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(DurationLeft); _worldPacket.WriteUInt32(DurationLeft);
} }
public ObjectGuid ItemGuid { get; set; } public ObjectGuid ItemGuid;
public uint DurationLeft { get; set; } public uint DurationLeft;
} }
public class SetProficiency : ServerPacket public class SetProficiency : ServerPacket
@@ -227,8 +227,8 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt8(ProficiencyClass); _worldPacket.WriteUInt8(ProficiencyClass);
} }
public uint ProficiencyMask { get; set; } public uint ProficiencyMask;
public byte ProficiencyClass { get; set; } public byte ProficiencyClass;
} }
public class InventoryChangeFailure : ServerPacket public class InventoryChangeFailure : ServerPacket
@@ -261,14 +261,14 @@ namespace Game.Network.Packets
} }
} }
public InventoryResult BagResult { get; set; } public InventoryResult BagResult;
public byte ContainerBSlot { get; set; } public byte ContainerBSlot;
public ObjectGuid SrcContainer { get; set; } public ObjectGuid SrcContainer;
public ObjectGuid DstContainer { get; set; } public ObjectGuid DstContainer;
public int SrcSlot { get; set; } public int SrcSlot;
public int LimitCategory { get; set; } public int LimitCategory;
public int Level { get; set; } public int Level;
public ObjectGuid[] Item { get; set; } = new ObjectGuid[2]; public ObjectGuid[] Item = new ObjectGuid[2];
} }
public class SplitItem : ClientPacket public class SplitItem : ClientPacket
@@ -285,12 +285,12 @@ namespace Game.Network.Packets
Quantity = _worldPacket.ReadInt32(); Quantity = _worldPacket.ReadInt32();
} }
public byte ToSlot { get; set; } public byte ToSlot;
public byte ToPackSlot { get; set; } public byte ToPackSlot;
public byte FromPackSlot { get; set; } public byte FromPackSlot;
public int Quantity { get; set; } public int Quantity;
public InvUpdate Inv { get; set; } public InvUpdate Inv;
public byte FromSlot { get; set; } public byte FromSlot;
} }
public class SwapInvItem : ClientPacket public class SwapInvItem : ClientPacket
@@ -304,7 +304,7 @@ namespace Game.Network.Packets
Slot1 = _worldPacket.ReadUInt8(); Slot1 = _worldPacket.ReadUInt8();
} }
public InvUpdate Inv { get; set; } public InvUpdate Inv;
public byte Slot1; /// Source Slot public byte Slot1; /// Source Slot
public byte Slot2; /// Destination Slot public byte Slot2; /// Destination Slot
} }
@@ -322,11 +322,11 @@ namespace Game.Network.Packets
SlotA = _worldPacket.ReadUInt8(); SlotA = _worldPacket.ReadUInt8();
} }
public InvUpdate Inv { get; set; } public InvUpdate Inv;
public byte SlotA { get; set; } public byte SlotA;
public byte ContainerSlotB { get; set; } public byte ContainerSlotB;
public byte SlotB { get; set; } public byte SlotB;
public byte ContainerSlotA { get; set; } public byte ContainerSlotA;
} }
public class AutoEquipItem : ClientPacket public class AutoEquipItem : ClientPacket
@@ -340,9 +340,9 @@ namespace Game.Network.Packets
Slot = _worldPacket.ReadUInt8(); Slot = _worldPacket.ReadUInt8();
} }
public byte Slot { get; set; } public byte Slot;
public InvUpdate Inv { get; set; } public InvUpdate Inv;
public byte PackSlot { get; set; } public byte PackSlot;
} }
class AutoEquipItemSlot : ClientPacket class AutoEquipItemSlot : ClientPacket
@@ -356,9 +356,9 @@ namespace Game.Network.Packets
ItemDstSlot = _worldPacket.ReadUInt8(); ItemDstSlot = _worldPacket.ReadUInt8();
} }
public ObjectGuid Item { get; set; } public ObjectGuid Item;
public byte ItemDstSlot { get; set; } public byte ItemDstSlot;
public InvUpdate Inv { get; set; } public InvUpdate Inv;
} }
public class AutoStoreBagItem : ClientPacket public class AutoStoreBagItem : ClientPacket
@@ -373,10 +373,10 @@ namespace Game.Network.Packets
SlotA = _worldPacket.ReadUInt8(); SlotA = _worldPacket.ReadUInt8();
} }
public byte ContainerSlotB { get; set; } public byte ContainerSlotB;
public InvUpdate Inv { get; set; } public InvUpdate Inv;
public byte ContainerSlotA { get; set; } public byte ContainerSlotA;
public byte SlotA { get; set; } public byte SlotA;
} }
public class DestroyItem : ClientPacket public class DestroyItem : ClientPacket
@@ -390,9 +390,9 @@ namespace Game.Network.Packets
SlotNum = _worldPacket.ReadUInt8(); SlotNum = _worldPacket.ReadUInt8();
} }
public uint Count { get; set; } public uint Count;
public byte SlotNum { get; set; } public byte SlotNum;
public byte ContainerId { get; set; } public byte ContainerId;
} }
public class SellResponse : ServerPacket public class SellResponse : ServerPacket
@@ -406,9 +406,9 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt8(Reason); _worldPacket.WriteUInt8(Reason);
} }
public ObjectGuid VendorGUID { get; set; } public ObjectGuid VendorGUID;
public ObjectGuid ItemGUID { get; set; } public ObjectGuid ItemGUID;
public SellResult Reason { get; set; } = SellResult.Unk; public SellResult Reason = SellResult.Unk;
} }
class ItemPushResult : ServerPacket class ItemPushResult : ServerPacket
@@ -439,25 +439,25 @@ namespace Game.Network.Packets
Item.Write(_worldPacket); Item.Write(_worldPacket);
} }
public ObjectGuid PlayerGUID { get; set; } public ObjectGuid PlayerGUID;
public byte Slot { get; set; } public byte Slot;
public int SlotInBag { get; set; } public int SlotInBag;
public ItemInstance Item { get; set; } public ItemInstance Item;
public int QuestLogItemID { get; set; } // Item ID used for updating quest progress public int QuestLogItemID;// Item ID used for updating quest progress
// only set if different than real ID (similar to CreatureTemplate.KillCredit) // only set if different than real ID (similar to CreatureTemplate.KillCredit)
public uint Quantity { get; set; } public uint Quantity;
public uint QuantityInInventory { get; set; } public uint QuantityInInventory;
public int DungeonEncounterID { get; set; } public int DungeonEncounterID;
public int BattlePetBreedID { get; set; } public int BattlePetBreedID;
public uint BattlePetBreedQuality { get; set; } public uint BattlePetBreedQuality;
public int BattlePetSpeciesID { get; set; } public int BattlePetSpeciesID;
public int BattlePetLevel { get; set; } public int BattlePetLevel;
public ObjectGuid ItemGUID { get; set; } public ObjectGuid ItemGUID;
public bool Pushed { get; set; } public bool Pushed;
public DisplayType DisplayText { get; set; } public DisplayType DisplayText;
public bool Created { get; set; } public bool Created;
public bool IsBonusRoll { get; set; } public bool IsBonusRoll;
public bool IsEncounterLoot { get; set; } public bool IsEncounterLoot;
public enum DisplayType public enum DisplayType
@@ -478,8 +478,8 @@ namespace Game.Network.Packets
Slot = _worldPacket.ReadUInt8(); Slot = _worldPacket.ReadUInt8();
} }
public byte PackSlot { get; set; } public byte PackSlot;
public byte Slot { get; set; } public byte Slot;
} }
class ReadItemResultFailed : ServerPacket class ReadItemResultFailed : ServerPacket
@@ -494,9 +494,9 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public ObjectGuid Item { get; set; } public ObjectGuid Item;
public byte Subcode { get; set; } public byte Subcode;
public uint Delay { get; set; } public uint Delay;
} }
class ReadItemResultOK : ServerPacket class ReadItemResultOK : ServerPacket
@@ -508,7 +508,7 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(Item); _worldPacket.WritePackedGuid(Item);
} }
public ObjectGuid Item { get; set; } public ObjectGuid Item;
} }
class WrapItem : ClientPacket class WrapItem : ClientPacket
@@ -520,7 +520,7 @@ namespace Game.Network.Packets
Inv = new InvUpdate(_worldPacket); Inv = new InvUpdate(_worldPacket);
} }
public InvUpdate Inv { get; set; } public InvUpdate Inv;
} }
class EnchantmentLog : ServerPacket class EnchantmentLog : ServerPacket
@@ -537,12 +537,12 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(EnchantSlot); _worldPacket.WriteUInt32(EnchantSlot);
} }
public ObjectGuid Caster { get; set; } public ObjectGuid Caster;
public ObjectGuid Owner { get; set; } public ObjectGuid Owner;
public ObjectGuid ItemGUID { get; set; } public ObjectGuid ItemGUID;
public uint ItemID { get; set; } public uint ItemID;
public uint EnchantSlot { get; set; } public uint EnchantSlot;
public uint Enchantment { get; set; } public uint Enchantment;
} }
class CancelTempEnchantment : ClientPacket class CancelTempEnchantment : ClientPacket
@@ -554,7 +554,7 @@ namespace Game.Network.Packets
Slot = _worldPacket.ReadInt32(); Slot = _worldPacket.ReadInt32();
} }
public int Slot { get; set; } public int Slot;
} }
class ItemCooldown : ServerPacket class ItemCooldown : ServerPacket
@@ -568,9 +568,9 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(Cooldown); _worldPacket.WriteUInt32(Cooldown);
} }
public ObjectGuid ItemGuid { get; set; } public ObjectGuid ItemGuid;
public uint SpellID { get; set; } public uint SpellID;
public uint Cooldown { get; set; } public uint Cooldown;
} }
class ItemEnchantTimeUpdate : ServerPacket class ItemEnchantTimeUpdate : ServerPacket
@@ -585,10 +585,10 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(OwnerGuid); _worldPacket.WritePackedGuid(OwnerGuid);
} }
public ObjectGuid OwnerGuid { get; set; } public ObjectGuid OwnerGuid;
public ObjectGuid ItemGuid { get; set; } public ObjectGuid ItemGuid;
public uint DurationLeft { get; set; } public uint DurationLeft;
public uint Slot { get; set; } public uint Slot;
} }
class UseCritterItem : ClientPacket class UseCritterItem : ClientPacket
@@ -600,7 +600,7 @@ namespace Game.Network.Packets
ItemGuid = _worldPacket.ReadPackedGuid(); ItemGuid = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid ItemGuid { get; set; } public ObjectGuid ItemGuid;
} }
class UpgradeItem : ClientPacket class UpgradeItem : ClientPacket
@@ -616,11 +616,11 @@ namespace Game.Network.Packets
Slot = _worldPacket.ReadInt32(); Slot = _worldPacket.ReadInt32();
} }
public ObjectGuid ItemMaster { get; set; } public ObjectGuid ItemMaster;
public ObjectGuid ItemGUID { get; set; } public ObjectGuid ItemGUID;
public int ContainerSlot { get; set; } public int ContainerSlot;
public int UpgradeID { get; set; } public int UpgradeID;
public int Slot { get; set; } public int Slot;
} }
class ItemUpgradeResult : ServerPacket class ItemUpgradeResult : ServerPacket
@@ -633,7 +633,7 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public bool Success { get; set; } public bool Success;
} }
class SocketGems : ClientPacket class SocketGems : ClientPacket
@@ -647,8 +647,8 @@ namespace Game.Network.Packets
GemItem[i] = _worldPacket.ReadPackedGuid(); GemItem[i] = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid ItemGuid { get; set; } public ObjectGuid ItemGuid;
public ObjectGuid[] GemItem { get; set; } = new ObjectGuid[ItemConst.MaxGemSockets]; public ObjectGuid[] GemItem = new ObjectGuid[ItemConst.MaxGemSockets];
} }
class SocketGemsResult : ServerPacket class SocketGemsResult : ServerPacket
@@ -660,7 +660,7 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(Item); _worldPacket.WritePackedGuid(Item);
} }
public ObjectGuid Item { get; set; } public ObjectGuid Item;
} }
class SortBags : ClientPacket class SortBags : ClientPacket
@@ -756,8 +756,8 @@ namespace Game.Network.Packets
return !(left == right); return !(left == right);
} }
public byte Context { get; set; } public byte Context;
public List<uint> BonusListIDs { get; set; } = new List<uint>(); public List<uint> BonusListIDs = new List<uint>();
} }
public class ItemInstance public class ItemInstance
@@ -921,9 +921,9 @@ namespace Game.Network.Packets
return !(left == right); return !(left == right);
} }
public uint ItemID { get; set; } public uint ItemID;
public uint RandomPropertiesSeed { get; set; } public uint RandomPropertiesSeed;
public uint RandomPropertiesID { get; set; } public uint RandomPropertiesID;
public Optional<ItemBonusInstanceData> ItemBonus; public Optional<ItemBonusInstanceData> ItemBonus;
public Optional<CompactArray> Modifications; public Optional<CompactArray> Modifications;
} }
@@ -946,10 +946,10 @@ namespace Game.Network.Packets
data.WriteUInt8(Slot); data.WriteUInt8(Slot);
} }
public int ID { get; set; } public int ID;
public uint Expiration { get; set; } public uint Expiration;
public int Charges { get; set; } public int Charges;
public byte Slot { get; set; } public byte Slot;
} }
public class ItemGemData public class ItemGemData
@@ -966,8 +966,8 @@ namespace Game.Network.Packets
Item.Read(data); Item.Read(data);
} }
public byte Slot { get; set; } public byte Slot;
public ItemInstance Item { get; set; } = new ItemInstance(); public ItemInstance Item = new ItemInstance();
} }
public struct InvUpdate public struct InvUpdate
@@ -987,12 +987,12 @@ namespace Game.Network.Packets
} }
} }
public List<InvItem> Items { get; set; } public List<InvItem> Items;
public struct InvItem public struct InvItem
{ {
public byte ContainerSlot { get; set; } public byte ContainerSlot;
public byte Slot { get; set; } public byte Slot;
} }
} }
@@ -1004,8 +1004,8 @@ namespace Game.Network.Packets
data.WriteUInt32(ItemCount); data.WriteUInt32(ItemCount);
} }
public uint ItemID { get; set; } public uint ItemID;
public uint ItemCount { get; set; } public uint ItemCount;
} }
struct ItemPurchaseRefundCurrency struct ItemPurchaseRefundCurrency
@@ -1016,8 +1016,8 @@ namespace Game.Network.Packets
data.WriteUInt32(CurrencyCount); data.WriteUInt32(CurrencyCount);
} }
public uint CurrencyID { get; set; } public uint CurrencyID;
public uint CurrencyCount { get; set; } public uint CurrencyCount;
} }
class ItemPurchaseContents class ItemPurchaseContents
@@ -1032,8 +1032,8 @@ namespace Game.Network.Packets
Currencies[i].Write(data); Currencies[i].Write(data);
} }
public ulong Money { get; set; } public ulong Money;
public ItemPurchaseRefundItem[] Items { get; set; } = new ItemPurchaseRefundItem[5]; public ItemPurchaseRefundItem[] Items = new ItemPurchaseRefundItem[5];
public ItemPurchaseRefundCurrency[] Currencies { get; set; } = new ItemPurchaseRefundCurrency[5]; public ItemPurchaseRefundCurrency[] Currencies = new ItemPurchaseRefundCurrency[5];
} }
} }
+134 -134
View File
@@ -38,11 +38,11 @@ namespace Game.Network.Packets
Slots.Add(_worldPacket.ReadUInt32()); Slots.Add(_worldPacket.ReadUInt32());
} }
public bool QueueAsGroup { get; set; } public bool QueueAsGroup;
bool Unknown; // Always false in 7.2.5 bool Unknown; // Always false in 7.2.5
public byte PartyIndex { get; set; } public byte PartyIndex;
public LfgRoles Roles { get; set; } public LfgRoles Roles;
public List<uint> Slots { get; set; } = new List<uint>(); public List<uint> Slots = new List<uint>();
} }
class DFLeave : ClientPacket class DFLeave : ClientPacket
@@ -54,7 +54,7 @@ namespace Game.Network.Packets
Ticket.Read(_worldPacket); Ticket.Read(_worldPacket);
} }
public RideTicket Ticket { get; set; } = new RideTicket(); public RideTicket Ticket = new RideTicket();
} }
class DFProposalResponse : ClientPacket class DFProposalResponse : ClientPacket
@@ -69,10 +69,10 @@ namespace Game.Network.Packets
Accepted = _worldPacket.HasBit(); Accepted = _worldPacket.HasBit();
} }
public RideTicket Ticket { get; set; } = new RideTicket(); public RideTicket Ticket = new RideTicket();
public ulong InstanceID { get; set; } public ulong InstanceID;
public uint ProposalID { get; set; } public uint ProposalID;
public bool Accepted { get; set; } public bool Accepted;
} }
class DFSetRoles : ClientPacket class DFSetRoles : ClientPacket
@@ -85,8 +85,8 @@ namespace Game.Network.Packets
PartyIndex = _worldPacket.ReadUInt8(); PartyIndex = _worldPacket.ReadUInt8();
} }
public LfgRoles RolesDesired { get; set; } public LfgRoles RolesDesired;
public byte PartyIndex { get; set; } public byte PartyIndex;
} }
class DFBootPlayerVote : ClientPacket class DFBootPlayerVote : ClientPacket
@@ -98,7 +98,7 @@ namespace Game.Network.Packets
Vote = _worldPacket.HasBit(); Vote = _worldPacket.HasBit();
} }
public bool Vote { get; set; } public bool Vote;
} }
class DFTeleport : ClientPacket class DFTeleport : ClientPacket
@@ -110,7 +110,7 @@ namespace Game.Network.Packets
TeleportOut = _worldPacket.HasBit(); TeleportOut = _worldPacket.HasBit();
} }
public bool TeleportOut { get; set; } public bool TeleportOut;
} }
class DFGetSystemInfo : ClientPacket class DFGetSystemInfo : ClientPacket
@@ -123,8 +123,8 @@ namespace Game.Network.Packets
PartyIndex = _worldPacket.ReadUInt8(); PartyIndex = _worldPacket.ReadUInt8();
} }
public byte PartyIndex { get; set; } public byte PartyIndex;
public bool Player { get; set; } public bool Player;
} }
class DFGetJoinStatus : ClientPacket class DFGetJoinStatus : ClientPacket
@@ -147,8 +147,8 @@ namespace Game.Network.Packets
dungeonInfo.Write(_worldPacket); dungeonInfo.Write(_worldPacket);
} }
public LFGBlackList BlackList { get; set; } = new LFGBlackList(); public LFGBlackList BlackList = new LFGBlackList();
public List<LfgPlayerDungeonInfo> Dungeons { get; set; } = new List<LfgPlayerDungeonInfo>(); public List<LfgPlayerDungeonInfo> Dungeons = new List<LfgPlayerDungeonInfo>();
} }
class LfgPartyInfo : ServerPacket class LfgPartyInfo : ServerPacket
@@ -162,7 +162,7 @@ namespace Game.Network.Packets
blackList.Write(_worldPacket); blackList.Write(_worldPacket);
} }
public List<LFGBlackList> Player { get; set; } = new List<LFGBlackList>(); public List<LFGBlackList> Player = new List<LFGBlackList>();
} }
class LFGUpdateStatus : ServerPacket class LFGUpdateStatus : ServerPacket
@@ -194,18 +194,18 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public RideTicket Ticket { get; set; } = new RideTicket(); public RideTicket Ticket = new RideTicket();
public byte SubType { get; set; } public byte SubType;
public byte Reason { get; set; } public byte Reason;
public List<uint> Slots { get; set; } = new List<uint>(); public List<uint> Slots = new List<uint>();
public uint RequestedRoles { get; set; } public uint RequestedRoles;
public List<ObjectGuid> SuspendedPlayers { get; set; } = new List<ObjectGuid>(); public List<ObjectGuid> SuspendedPlayers = new List<ObjectGuid>();
public bool NotifyUI { get; set; } public bool NotifyUI;
public bool IsParty { get; set; } public bool IsParty;
public bool Joined { get; set; } public bool Joined;
public bool LfgJoined { get; set; } public bool LfgJoined;
public bool Queued { get; set; } public bool Queued;
public bool Unused { get; set; } public bool Unused;
} }
class RoleChosen : ServerPacket class RoleChosen : ServerPacket
@@ -220,9 +220,9 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public ObjectGuid Player { get; set; } public ObjectGuid Player;
public LfgRoles RoleMask { get; set; } public LfgRoles RoleMask;
public bool Accepted { get; set; } public bool Accepted;
} }
class LFGRoleCheckUpdate : ServerPacket class LFGRoleCheckUpdate : ServerPacket
@@ -249,14 +249,14 @@ namespace Game.Network.Packets
member.Write(_worldPacket); member.Write(_worldPacket);
} }
public byte PartyIndex { get; set; } public byte PartyIndex;
public byte RoleCheckStatus { get; set; } public byte RoleCheckStatus;
public List<uint> JoinSlots { get; set; } = new List<uint>(); public List<uint> JoinSlots = new List<uint>();
public ulong BgQueueID { get; set; } public ulong BgQueueID;
public int GroupFinderActivityID { get; set; } = 0; public int GroupFinderActivityID = 0;
public List<LFGRoleCheckUpdateMember> Members { get; set; } = new List<LFGRoleCheckUpdateMember>(); public List<LFGRoleCheckUpdateMember> Members = new List<LFGRoleCheckUpdateMember>();
public bool IsBeginning { get; set; } public bool IsBeginning;
public bool IsRequeue { get; set; } public bool IsRequeue;
} }
class LFGJoinResult : ServerPacket class LFGJoinResult : ServerPacket
@@ -275,10 +275,10 @@ namespace Game.Network.Packets
blackList.Write(_worldPacket); blackList.Write(_worldPacket);
} }
public RideTicket Ticket { get; set; } public RideTicket Ticket;
public byte Result { get; set; } public byte Result;
public byte ResultDetail { get; set; } public byte ResultDetail;
public List<LFGJoinBlackList> BlackList { get; set; } = new List<LFGJoinBlackList>(); public List<LFGJoinBlackList> BlackList = new List<LFGJoinBlackList>();
} }
class LFGQueueStatus : ServerPacket class LFGQueueStatus : ServerPacket
@@ -302,13 +302,13 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(QueuedTime); _worldPacket.WriteUInt32(QueuedTime);
} }
public RideTicket Ticket { get; set; } public RideTicket Ticket;
public uint Slot { get; set; } public uint Slot;
public uint AvgWaitTimeMe { get; set; } public uint AvgWaitTimeMe;
public uint AvgWaitTime { get; set; } public uint AvgWaitTime;
public uint[] AvgWaitTimeByRole { get; set; } = new uint[3]; public uint[] AvgWaitTimeByRole = new uint[3];
public byte[] LastNeeded { get; set; } = new byte[3]; public byte[] LastNeeded = new byte[3];
public uint QueuedTime { get; set; } public uint QueuedTime;
} }
class LFGPlayerReward : ServerPacket class LFGPlayerReward : ServerPacket
@@ -327,11 +327,11 @@ namespace Game.Network.Packets
reward.Write(_worldPacket); reward.Write(_worldPacket);
} }
public uint QueuedSlot { get; set; } public uint QueuedSlot;
public uint ActualSlot { get; set; } public uint ActualSlot;
public uint RewardMoney { get; set; } public uint RewardMoney;
public uint AddedXP { get; set; } public uint AddedXP;
public List<LFGPlayerRewards> Rewards { get; set; } = new List<LFGPlayerRewards>(); public List<LFGPlayerRewards> Rewards = new List<LFGPlayerRewards>();
} }
class LfgBootPlayer : ServerPacket class LfgBootPlayer : ServerPacket
@@ -343,7 +343,7 @@ namespace Game.Network.Packets
Info.Write(_worldPacket); Info.Write(_worldPacket);
} }
public LfgBootInfo Info { get; set; } = new LfgBootInfo(); public LfgBootInfo Info = new LfgBootInfo();
} }
class LFGProposalUpdate : ServerPacket class LFGProposalUpdate : ServerPacket
@@ -370,17 +370,17 @@ namespace Game.Network.Packets
player.Write(_worldPacket); player.Write(_worldPacket);
} }
public RideTicket Ticket { get; set; } public RideTicket Ticket;
public ulong InstanceID { get; set; } public ulong InstanceID;
public uint ProposalID { get; set; } public uint ProposalID;
public uint Slot { get; set; } public uint Slot;
public byte State { get; set; } public byte State;
public uint CompletedMask { get; set; } public uint CompletedMask;
public byte Unused { get; set; } public byte Unused;
public bool ValidCompletedMask { get; set; } public bool ValidCompletedMask;
public bool ProposalSilent { get; set; } public bool ProposalSilent;
public bool IsRequeue { get; set; } public bool IsRequeue;
public List<LFGProposalUpdatePlayer> Players { get; set; } = new List<LFGProposalUpdatePlayer>(); public List<LFGProposalUpdatePlayer> Players = new List<LFGProposalUpdatePlayer>();
} }
class LfgDisabled : ServerPacket class LfgDisabled : ServerPacket
@@ -402,7 +402,7 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(Slot); _worldPacket.WriteUInt32(Slot);
} }
public uint Slot { get; set; } public uint Slot;
} }
class LfgTeleportDenied : ServerPacket class LfgTeleportDenied : ServerPacket
@@ -418,7 +418,7 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public LfgTeleportResult Reason { get; set; } public LfgTeleportResult Reason;
} }
//Structs //Structs
@@ -456,8 +456,8 @@ namespace Game.Network.Packets
} }
} }
public Optional<ObjectGuid> PlayerGuid { get; set; } public Optional<ObjectGuid> PlayerGuid;
public List<LFGBlackListSlot> Slot { get; set; } = new List<LFGBlackListSlot>(); public List<LFGBlackListSlot> Slot = new List<LFGBlackListSlot>();
} }
public struct LfgPlayerQuestRewardItem public struct LfgPlayerQuestRewardItem
@@ -468,8 +468,8 @@ namespace Game.Network.Packets
Quantity = quantity; Quantity = quantity;
} }
public uint ItemID { get; set; } public uint ItemID;
public uint Quantity { get; set; } public uint Quantity;
} }
public struct LfgPlayerQuestRewardCurrency public struct LfgPlayerQuestRewardCurrency
@@ -480,8 +480,8 @@ namespace Game.Network.Packets
Quantity = quantity; Quantity = quantity;
} }
public uint CurrencyID { get; set; } public uint CurrencyID;
public uint Quantity { get; set; } public uint Quantity;
} }
public class LfgPlayerQuestReward public class LfgPlayerQuestReward
@@ -535,15 +535,15 @@ namespace Game.Network.Packets
data.WriteInt32(Honor.Value); data.WriteInt32(Honor.Value);
} }
public uint Mask { get; set; } public uint Mask;
public uint RewardMoney { get; set; } public uint RewardMoney;
public uint RewardXP { get; set; } public uint RewardXP;
public List<LfgPlayerQuestRewardItem> Item { get; set; } = new List<LfgPlayerQuestRewardItem>(); public List<LfgPlayerQuestRewardItem> Item = new List<LfgPlayerQuestRewardItem>();
public List<LfgPlayerQuestRewardCurrency> Currency { get; set; } = new List<LfgPlayerQuestRewardCurrency>(); public List<LfgPlayerQuestRewardCurrency> Currency = new List<LfgPlayerQuestRewardCurrency>();
public List<LfgPlayerQuestRewardCurrency> BonusCurrency { get; set; } = new List<LfgPlayerQuestRewardCurrency>(); public List<LfgPlayerQuestRewardCurrency> BonusCurrency = new List<LfgPlayerQuestRewardCurrency>();
public Optional<int> RewardSpellID; // Only used by SMSG_LFG_PLAYER_INFO public Optional<int> RewardSpellID; // Only used by SMSG_LFG_PLAYER_INFO
public Optional<int> Unused1 { get; set; } public Optional<int> Unused1;
public Optional<ulong> Unused2 { get; set; } public Optional<ulong> Unused2;
public Optional<int> Honor; // Only used by SMSG_REQUEST_PVP_REWARDS_RESPONSE public Optional<int> Honor; // Only used by SMSG_REQUEST_PVP_REWARDS_RESPONSE
} }
@@ -576,25 +576,25 @@ namespace Game.Network.Packets
shortageReward.Write(data); shortageReward.Write(data);
} }
public uint Slot { get; set; } public uint Slot;
public int CompletionQuantity { get; set; } public int CompletionQuantity;
public int CompletionLimit { get; set; } public int CompletionLimit;
public int CompletionCurrencyID { get; set; } public int CompletionCurrencyID;
public int SpecificQuantity { get; set; } public int SpecificQuantity;
public int SpecificLimit { get; set; } public int SpecificLimit;
public int OverallQuantity { get; set; } public int OverallQuantity;
public int OverallLimit { get; set; } public int OverallLimit;
public int PurseWeeklyQuantity { get; set; } public int PurseWeeklyQuantity;
public int PurseWeeklyLimit { get; set; } public int PurseWeeklyLimit;
public int PurseQuantity { get; set; } public int PurseQuantity;
public int PurseLimit { get; set; } public int PurseLimit;
public int Quantity { get; set; } public int Quantity;
public uint CompletedMask { get; set; } public uint CompletedMask;
public uint EncounterMask { get; set; } public uint EncounterMask;
public bool FirstReward { get; set; } public bool FirstReward;
public bool ShortageEligible { get; set; } public bool ShortageEligible;
public LfgPlayerQuestReward Rewards { get; set; } = new LfgPlayerQuestReward(); public LfgPlayerQuestReward Rewards = new LfgPlayerQuestReward();
public List<LfgPlayerQuestReward> ShortageReward { get; set; } = new List<LfgPlayerQuestReward>(); public List<LfgPlayerQuestReward> ShortageReward = new List<LfgPlayerQuestReward>();
} }
public class LFGRoleCheckUpdateMember public class LFGRoleCheckUpdateMember
@@ -616,10 +616,10 @@ namespace Game.Network.Packets
data.FlushBits(); data.FlushBits();
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
public uint RolesDesired { get; set; } public uint RolesDesired;
public byte Level { get; set; } public byte Level;
public bool RoleCheckComplete { get; set; } public bool RoleCheckComplete;
} }
public struct LFGJoinBlackListSlot public struct LFGJoinBlackListSlot
@@ -654,8 +654,8 @@ namespace Game.Network.Packets
} }
} }
public ObjectGuid PlayerGuid { get; set; } public ObjectGuid PlayerGuid;
public List<LFGJoinBlackListSlot> Slots { get; set; } = new List<LFGJoinBlackListSlot>(); public List<LFGJoinBlackListSlot> Slots = new List<LFGJoinBlackListSlot>();
} }
public struct LFGPlayerRewards public struct LFGPlayerRewards
@@ -677,10 +677,10 @@ namespace Game.Network.Packets
data.FlushBits(); data.FlushBits();
} }
public uint RewardItem { get; set; } public uint RewardItem;
public uint RewardItemQuantity { get; set; } public uint RewardItemQuantity;
public int BonusCurrency { get; set; } public int BonusCurrency;
public bool IsCurrency { get; set; } public bool IsCurrency;
} }
public class LfgBootInfo public class LfgBootInfo
@@ -700,16 +700,16 @@ namespace Game.Network.Packets
data.WriteString(Reason); data.WriteString(Reason);
} }
public bool VoteInProgress { get; set; } public bool VoteInProgress;
public bool VotePassed { get; set; } public bool VotePassed;
public bool MyVoteCompleted { get; set; } public bool MyVoteCompleted;
public bool MyVote { get; set; } public bool MyVote;
public ObjectGuid Target { get; set; } public ObjectGuid Target;
public uint TotalVotes { get; set; } public uint TotalVotes;
public uint BootVotes { get; set; } public uint BootVotes;
public uint TimeLeft { get; set; } public uint TimeLeft;
public uint VotesNeeded { get; set; } public uint VotesNeeded;
public string Reason { get; set; } = ""; public string Reason = "";
} }
public struct LFGProposalUpdatePlayer public struct LFGProposalUpdatePlayer
@@ -725,12 +725,12 @@ namespace Game.Network.Packets
data.FlushBits(); data.FlushBits();
} }
public uint Roles { get; set; } public uint Roles;
public bool Me { get; set; } public bool Me;
public bool SameParty { get; set; } public bool SameParty;
public bool MyParty { get; set; } public bool MyParty;
public bool Responded { get; set; } public bool Responded;
public bool Accepted { get; set; } public bool Accepted;
} }
public class RideTicket public class RideTicket
@@ -751,10 +751,10 @@ namespace Game.Network.Packets
data.WriteInt32(Time); data.WriteInt32(Time);
} }
public ObjectGuid RequesterGuid { get; set; } public ObjectGuid RequesterGuid;
public uint Id { get; set; } public uint Id;
public RideType Type { get; set; } public RideType Type;
public int Time { get; set; } public int Time;
} }
public enum RideType public enum RideType
+66 -66
View File
@@ -31,7 +31,7 @@ namespace Game.Network.Packets
Unit = _worldPacket.ReadPackedGuid(); Unit = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid Unit { get; set; } public ObjectGuid Unit;
} }
public class LootResponse : ServerPacket public class LootResponse : ServerPacket
@@ -66,17 +66,17 @@ namespace Game.Network.Packets
} }
} }
public ObjectGuid LootObj { get; set; } public ObjectGuid LootObj;
public ObjectGuid Owner { get; set; } public ObjectGuid Owner;
public byte Threshold { get; set; } = 2; // Most common value, 2 = Uncommon public byte Threshold = 2; // Most common value, 2 = Uncommon
public LootMethod LootMethod { get; set; } public LootMethod LootMethod;
public byte AcquireReason { get; set; } public byte AcquireReason;
public LootError FailureReason { get; set; } = LootError.NoLoot; // Most common value public LootError FailureReason = LootError.NoLoot; // Most common value
public uint Coins { get; set; } public uint Coins;
public List<LootItemData> Items { get; set; } = new List<LootItemData>(); public List<LootItemData> Items = new List<LootItemData>();
public List<LootCurrency> Currencies { get; set; } = new List<LootCurrency>(); public List<LootCurrency> Currencies = new List<LootCurrency>();
public bool Acquired { get; set; } public bool Acquired;
public bool AELooting { get; set; } public bool AELooting;
} }
class LootItemPkt : ClientPacket class LootItemPkt : ClientPacket
@@ -99,7 +99,7 @@ namespace Game.Network.Packets
} }
} }
public List<LootRequest> Loot { get; set; } = new List<LootRequest>(); public List<LootRequest> Loot = new List<LootRequest>();
} }
class LootRemoved : ServerPacket class LootRemoved : ServerPacket
@@ -113,9 +113,9 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt8(LootListID); _worldPacket.WriteUInt8(LootListID);
} }
public ObjectGuid LootObj { get; set; } public ObjectGuid LootObj;
public ObjectGuid Owner { get; set; } public ObjectGuid Owner;
public byte LootListID { get; set; } public byte LootListID;
} }
class LootRelease : ClientPacket class LootRelease : ClientPacket
@@ -127,7 +127,7 @@ namespace Game.Network.Packets
Unit = _worldPacket.ReadPackedGuid(); Unit = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid Unit { get; set; } public ObjectGuid Unit;
} }
class LootMoney : ClientPacket class LootMoney : ClientPacket
@@ -148,8 +148,8 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public uint Money { get; set; } public uint Money;
public bool SoleLooter { get; set; } public bool SoleLooter;
} }
class CoinRemoved : ServerPacket class CoinRemoved : ServerPacket
@@ -161,7 +161,7 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(LootObj); _worldPacket.WritePackedGuid(LootObj);
} }
public ObjectGuid LootObj { get; set; } public ObjectGuid LootObj;
} }
class LootRoll : ClientPacket class LootRoll : ClientPacket
@@ -175,9 +175,9 @@ namespace Game.Network.Packets
RollType = (RollType)_worldPacket.ReadUInt8(); RollType = (RollType)_worldPacket.ReadUInt8();
} }
public ObjectGuid LootObj { get; set; } public ObjectGuid LootObj;
public byte LootListID { get; set; } public byte LootListID;
public RollType RollType { get; set; } public RollType RollType;
} }
class LootReleaseResponse : ServerPacket class LootReleaseResponse : ServerPacket
@@ -190,8 +190,8 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(Owner); _worldPacket.WritePackedGuid(Owner);
} }
public ObjectGuid LootObj { get; set; } public ObjectGuid LootObj;
public ObjectGuid Owner { get; set; } public ObjectGuid Owner;
} }
class LootReleaseAll : ServerPacket class LootReleaseAll : ServerPacket
@@ -221,10 +221,10 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(RoundRobinWinner.Value); _worldPacket.WritePackedGuid(RoundRobinWinner.Value);
} }
public ObjectGuid Owner { get; set; } public ObjectGuid Owner;
public ObjectGuid LootObj { get; set; } public ObjectGuid LootObj;
public Optional<ObjectGuid> Master { get; set; } public Optional<ObjectGuid> Master;
public Optional<ObjectGuid> RoundRobinWinner { get; set; } public Optional<ObjectGuid> RoundRobinWinner;
} }
class SetLootSpecialization : ClientPacket class SetLootSpecialization : ClientPacket
@@ -236,7 +236,7 @@ namespace Game.Network.Packets
SpecID = _worldPacket.ReadUInt32(); SpecID = _worldPacket.ReadUInt32();
} }
public uint SpecID { get; set; } public uint SpecID;
} }
class StartLootRoll : ServerPacket class StartLootRoll : ServerPacket
@@ -253,12 +253,12 @@ namespace Game.Network.Packets
Item.Write(_worldPacket); Item.Write(_worldPacket);
} }
public ObjectGuid LootObj { get; set; } public ObjectGuid LootObj;
public int MapID { get; set; } public int MapID;
public uint RollTime { get; set; } public uint RollTime;
public LootMethod Method { get; set; } public LootMethod Method;
public RollMask ValidRolls { get; set; } public RollMask ValidRolls;
public LootItemData Item { get; set; } = new LootItemData(); public LootItemData Item = new LootItemData();
} }
class LootRollBroadcast : ServerPacket class LootRollBroadcast : ServerPacket
@@ -276,12 +276,12 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public ObjectGuid LootObj { get; set; } public ObjectGuid LootObj;
public ObjectGuid Player { get; set; } public ObjectGuid Player;
public int Roll; // Roll value can be negative, it means that it is an "offspec" roll but only during roll selection broadcast (not when sending the result) public int Roll; // Roll value can be negative, it means that it is an "offspec" roll but only during roll selection broadcast (not when sending the result)
public RollType RollType { get; set; } public RollType RollType;
public LootItemData Item { get; set; } = new LootItemData(); public LootItemData Item = new LootItemData();
public bool Autopassed { get; set; } // Triggers message |HlootHistory:%d|h[Loot]|h: You automatically passed on: %s because you cannot loot that item. public bool Autopassed; // Triggers message |HlootHistory:%d|h[Loot]|h: You automatically passed on: %s because you cannot loot that item.
} }
class LootRollWon : ServerPacket class LootRollWon : ServerPacket
@@ -299,12 +299,12 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public ObjectGuid LootObj { get; set; } public ObjectGuid LootObj;
public ObjectGuid Winner { get; set; } public ObjectGuid Winner;
public int Roll { get; set; } public int Roll;
public RollType RollType { get; set; } public RollType RollType;
public LootItemData Item { get; set; } = new LootItemData(); public LootItemData Item = new LootItemData();
public bool MainSpec { get; set; } public bool MainSpec;
} }
class LootAllPassed : ServerPacket class LootAllPassed : ServerPacket
@@ -317,8 +317,8 @@ namespace Game.Network.Packets
Item.Write(_worldPacket); Item.Write(_worldPacket);
} }
public ObjectGuid LootObj { get; set; } public ObjectGuid LootObj;
public LootItemData Item { get; set; } = new LootItemData(); public LootItemData Item = new LootItemData();
} }
class LootRollsComplete : ServerPacket class LootRollsComplete : ServerPacket
@@ -331,8 +331,8 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt8(LootListID); _worldPacket.WriteUInt8(LootListID);
} }
public ObjectGuid LootObj { get; set; } public ObjectGuid LootObj;
public byte LootListID { get; set; } public byte LootListID;
} }
class AELootTargets : ServerPacket class AELootTargets : ServerPacket
@@ -368,8 +368,8 @@ namespace Game.Network.Packets
Players.ForEach(guid => _worldPacket.WritePackedGuid(guid)); Players.ForEach(guid => _worldPacket.WritePackedGuid(guid));
} }
public List<ObjectGuid> Players { get; set; } = new List<ObjectGuid>(); public List<ObjectGuid> Players = new List<ObjectGuid>();
public ObjectGuid LootObj { get; set; } public ObjectGuid LootObj;
} }
//Structs //Structs
@@ -387,26 +387,26 @@ namespace Game.Network.Packets
data.WriteUInt8(LootListID); data.WriteUInt8(LootListID);
} }
public byte Type { get; set; } public byte Type;
public LootSlotType UIType { get; set; } public LootSlotType UIType;
public uint Quantity { get; set; } public uint Quantity;
public byte LootItemType { get; set; } public byte LootItemType;
public byte LootListID { get; set; } public byte LootListID;
public bool CanTradeToTapList { get; set; } public bool CanTradeToTapList;
public ItemInstance Loot { get; set; } public ItemInstance Loot;
} }
public struct LootCurrency public struct LootCurrency
{ {
public uint CurrencyID { get; set; } public uint CurrencyID;
public uint Quantity { get; set; } public uint Quantity;
public byte LootListID { get; set; } public byte LootListID;
public byte UIType { get; set; } public byte UIType;
} }
public struct LootRequest public struct LootRequest
{ {
public ObjectGuid Object { get; set; } public ObjectGuid Object;
public byte LootListID { get; set; } public byte LootListID;
} }
} }
+64 -64
View File
@@ -32,7 +32,7 @@ namespace Game.Network.Packets
Mailbox = _worldPacket.ReadPackedGuid(); Mailbox = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid Mailbox { get; set; } public ObjectGuid Mailbox;
} }
public class MailListResult : ServerPacket public class MailListResult : ServerPacket
@@ -47,8 +47,8 @@ namespace Game.Network.Packets
Mails.ForEach(p => p.Write(_worldPacket)); Mails.ForEach(p => p.Write(_worldPacket));
} }
public int TotalNumRecords { get; set; } public int TotalNumRecords;
public List<MailListEntry> Mails { get; set; } = new List<MailListEntry>(); public List<MailListEntry> Mails = new List<MailListEntry>();
} }
public class MailCreateTextItem : ClientPacket public class MailCreateTextItem : ClientPacket
@@ -61,8 +61,8 @@ namespace Game.Network.Packets
MailID = _worldPacket.ReadUInt32(); MailID = _worldPacket.ReadUInt32();
} }
public ObjectGuid Mailbox { get; set; } public ObjectGuid Mailbox;
public uint MailID { get; set; } public uint MailID;
} }
public class SendMail : ClientPacket public class SendMail : ClientPacket
@@ -101,23 +101,23 @@ namespace Game.Network.Packets
} }
} }
public StructSendMail Info { get; set; } public StructSendMail Info;
public class StructSendMail public class StructSendMail
{ {
public ObjectGuid Mailbox { get; set; } public ObjectGuid Mailbox;
public int StationeryID { get; set; } public int StationeryID;
public long SendMoney { get; set; } public long SendMoney;
public long Cod { get; set; } public long Cod;
public string Target; public string Target;
public string Subject { get; set; } public string Subject;
public string Body { get; set; } public string Body;
public List<MailAttachment> Attachments { get; set; } = new List<MailAttachment>(); public List<MailAttachment> Attachments = new List<MailAttachment>();
public struct MailAttachment public struct MailAttachment
{ {
public byte AttachPosition { get; set; } public byte AttachPosition;
public ObjectGuid ItemGUID { get; set; } public ObjectGuid ItemGUID;
} }
} }
} }
@@ -136,12 +136,12 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(QtyInInventory); _worldPacket.WriteUInt32(QtyInInventory);
} }
public uint MailID { get; set; } public uint MailID;
public uint Command { get; set; } public uint Command;
public uint ErrorCode { get; set; } public uint ErrorCode;
public uint BagResult { get; set; } public uint BagResult;
public uint AttachID { get; set; } public uint AttachID;
public uint QtyInInventory { get; set; } public uint QtyInInventory;
} }
public class MailReturnToSender : ClientPacket public class MailReturnToSender : ClientPacket
@@ -154,8 +154,8 @@ namespace Game.Network.Packets
SenderGUID = _worldPacket.ReadPackedGuid(); SenderGUID = _worldPacket.ReadPackedGuid();
} }
public uint MailID { get; set; } public uint MailID;
public ObjectGuid SenderGUID { get; set; } public ObjectGuid SenderGUID;
} }
public class MailMarkAsRead : ClientPacket public class MailMarkAsRead : ClientPacket
@@ -169,9 +169,9 @@ namespace Game.Network.Packets
BiReceipt = _worldPacket.HasBit(); BiReceipt = _worldPacket.HasBit();
} }
public ObjectGuid Mailbox { get; set; } public ObjectGuid Mailbox;
public uint MailID { get; set; } public uint MailID;
public bool BiReceipt { get; set; } public bool BiReceipt;
} }
public class MailDelete : ClientPacket public class MailDelete : ClientPacket
@@ -184,8 +184,8 @@ namespace Game.Network.Packets
DeleteReason = _worldPacket.ReadInt32(); DeleteReason = _worldPacket.ReadInt32();
} }
public uint MailID { get; set; } public uint MailID;
public int DeleteReason { get; set; } public int DeleteReason;
} }
public class MailTakeItem : ClientPacket public class MailTakeItem : ClientPacket
@@ -199,9 +199,9 @@ namespace Game.Network.Packets
AttachID = _worldPacket.ReadUInt32(); AttachID = _worldPacket.ReadUInt32();
} }
public ObjectGuid Mailbox { get; set; } public ObjectGuid Mailbox;
public uint MailID { get; set; } public uint MailID;
public uint AttachID { get; set; } public uint AttachID;
} }
public class MailTakeMoney : ClientPacket public class MailTakeMoney : ClientPacket
@@ -215,9 +215,9 @@ namespace Game.Network.Packets
Money = _worldPacket.ReadInt64(); Money = _worldPacket.ReadInt64();
} }
public ObjectGuid Mailbox { get; set; } public ObjectGuid Mailbox;
public uint MailID { get; set; } public uint MailID;
public long Money { get; set; } public long Money;
} }
public class MailQueryNextMailTime : ClientPacket public class MailQueryNextMailTime : ClientPacket
@@ -249,8 +249,8 @@ namespace Game.Network.Packets
} }
} }
public float NextMailTime { get; set; } public float NextMailTime;
public List<MailNextTimeEntry> Next { get; set; } public List<MailNextTimeEntry> Next;
public class MailNextTimeEntry public class MailNextTimeEntry
{ {
@@ -274,11 +274,11 @@ namespace Game.Network.Packets
StationeryID = (int)mail.stationery; StationeryID = (int)mail.stationery;
} }
public ObjectGuid SenderGuid { get; set; } public ObjectGuid SenderGuid;
public float TimeLeft { get; set; } public float TimeLeft;
public int AltSenderID { get; set; } public int AltSenderID;
public sbyte AltSenderType { get; set; } public sbyte AltSenderType;
public int StationeryID { get; set; } public int StationeryID;
} }
} }
@@ -291,7 +291,7 @@ namespace Game.Network.Packets
_worldPacket.WriteFloat(Delay); _worldPacket.WriteFloat(Delay);
} }
public float Delay { get; set; } = 0.0f; public float Delay = 0.0f;
} }
class ShowMailbox : ServerPacket class ShowMailbox : ServerPacket
@@ -303,7 +303,7 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(PostmasterGUID); _worldPacket.WritePackedGuid(PostmasterGUID);
} }
public ObjectGuid PostmasterGUID { get; set; } public ObjectGuid PostmasterGUID;
} }
//Structs //Structs
@@ -363,14 +363,14 @@ namespace Game.Network.Packets
en.Write(data); en.Write(data);
} }
public byte Position { get; set; } public byte Position;
public int AttachID { get; set; } public int AttachID;
public ItemInstance Item { get; set; } public ItemInstance Item;
public uint Count { get; set; } public uint Count;
public int Charges { get; set; } public int Charges;
public uint MaxDurability { get; set; } public uint MaxDurability;
public uint Durability { get; set; } public uint Durability;
public bool Unlocked { get; set; } public bool Unlocked;
List<ItemEnchantData> Enchants = new List<ItemEnchantData>(); List<ItemEnchantData> Enchants = new List<ItemEnchantData>();
List<ItemGemData> Gems= new List<ItemGemData>(); List<ItemGemData> Gems= new List<ItemGemData>();
} }
@@ -442,18 +442,18 @@ namespace Game.Network.Packets
data.WriteString(Body); data.WriteString(Body);
} }
public int MailID { get; set; } public int MailID;
public byte SenderType { get; set; } public byte SenderType;
public Optional<ObjectGuid> SenderCharacter { get; set; } public Optional<ObjectGuid> SenderCharacter;
public Optional<uint> AltSenderID { get; set; } public Optional<uint> AltSenderID;
public ulong Cod { get; set; } public ulong Cod;
public int StationeryID { get; set; } public int StationeryID;
public ulong SentMoney { get; set; } public ulong SentMoney;
public int Flags { get; set; } public int Flags;
public float DaysLeft { get; set; } public float DaysLeft;
public int MailTemplateID { get; set; } public int MailTemplateID;
public string Subject { get; set; } public string Subject;
public string Body { get; set; } public string Body;
public List<MailAttachedItem> Attachments { get; set; } = new List<MailAttachedItem>(); public List<MailAttachedItem> Attachments = new List<MailAttachedItem>();
} }
} }
+127 -127
View File
@@ -34,9 +34,9 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(BindAreaID); _worldPacket.WriteUInt32(BindAreaID);
} }
public uint BindMapID { get; set; } = 0xFFFFFFFF; public uint BindMapID = 0xFFFFFFFF;
public Vector3 BindPosition; public Vector3 BindPosition;
public uint BindAreaID { get; set; } public uint BindAreaID;
} }
public class PlayerBound : ServerPacket public class PlayerBound : ServerPacket
@@ -81,7 +81,7 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(Guid); _worldPacket.WritePackedGuid(Guid);
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
} }
public class LoginSetTimeSpeed : ServerPacket public class LoginSetTimeSpeed : ServerPacket
@@ -97,11 +97,11 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(GameTimeHolidayOffset); _worldPacket.WriteUInt32(GameTimeHolidayOffset);
} }
public float NewSpeed { get; set; } public float NewSpeed;
public int ServerTimeHolidayOffset { get; set; } public int ServerTimeHolidayOffset;
public uint GameTime { get; set; } public uint GameTime;
public uint ServerTime { get; set; } public uint ServerTime;
public int GameTimeHolidayOffset { get; set; } public int GameTimeHolidayOffset;
} }
public class SetCurrency : ServerPacket public class SetCurrency : ServerPacket
@@ -129,13 +129,13 @@ namespace Game.Network.Packets
_worldPacket.WriteInt32(MaxQuantity.Value); _worldPacket.WriteInt32(MaxQuantity.Value);
} }
public uint Type { get; set; } public uint Type;
public int Quantity { get; set; } public int Quantity;
public uint Flags { get; set; } public uint Flags;
public Optional<int> WeeklyQuantity { get; set; } public Optional<int> WeeklyQuantity;
public Optional<int> TrackedQuantity { get; set; } public Optional<int> TrackedQuantity;
public Optional<int> MaxQuantity { get; set; } public Optional<int> MaxQuantity;
public bool SuppressChatLog { get; set; } public bool SuppressChatLog;
} }
public class SetMaxWeeklyQuantity : ServerPacket public class SetMaxWeeklyQuantity : ServerPacket
@@ -148,8 +148,8 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32("MaxWeeklyQuantity"); _worldPacket.WriteUInt32("MaxWeeklyQuantity");
} }
public uint MaxWeeklyQuantity { get; set; } public uint MaxWeeklyQuantity;
public uint Type { get; set; } public uint Type;
} }
public class ResetWeeklyCurrency : ServerPacket public class ResetWeeklyCurrency : ServerPacket
@@ -202,17 +202,17 @@ namespace Game.Network.Packets
} }
} }
public List<Record> Data { get; set; } = new List<Record>(); public List<Record> Data = new List<Record>();
public struct Record public struct Record
{ {
public uint Type { get; set; } public uint Type;
public uint Quantity { get; set; } public uint Quantity;
public Optional<uint> WeeklyQuantity; // Currency count obtained this Week. public Optional<uint> WeeklyQuantity; // Currency count obtained this Week.
public Optional<uint> MaxWeeklyQuantity; // Weekly Currency cap. public Optional<uint> MaxWeeklyQuantity; // Weekly Currency cap.
public Optional<uint> TrackedQuantity { get; set; } public Optional<uint> TrackedQuantity;
public Optional<int> MaxQuantity { get; set; } public Optional<int> MaxQuantity;
public byte Flags; // 0 = none public byte Flags; // 0 = none,
} }
} }
@@ -237,7 +237,7 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(SequenceIndex); _worldPacket.WriteUInt32(SequenceIndex);
} }
public uint SequenceIndex { get; set; } public uint SequenceIndex;
} }
public class TimeSyncResponse : ClientPacket public class TimeSyncResponse : ClientPacket
@@ -263,7 +263,7 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(CinematicID); _worldPacket.WriteUInt32(CinematicID);
} }
public uint CinematicID { get; set; } public uint CinematicID;
} }
public class TriggerMovie : ServerPacket public class TriggerMovie : ServerPacket
@@ -275,7 +275,7 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(MovieID); _worldPacket.WriteUInt32(MovieID);
} }
public uint MovieID { get; set; } public uint MovieID;
} }
public class UITimeRequest : ClientPacket public class UITimeRequest : ClientPacket
@@ -294,7 +294,7 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(Time); _worldPacket.WriteUInt32(Time);
} }
public uint Time { get; set; } public uint Time;
} }
public class TutorialFlags : ServerPacket public class TutorialFlags : ServerPacket
@@ -307,7 +307,7 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(TutorialData[i]); _worldPacket.WriteUInt32(TutorialData[i]);
} }
public uint[] TutorialData { get; set; } = new uint[(int)Tutorials.Max]; public uint[] TutorialData = new uint[(int)Tutorials.Max];
} }
public class TutorialSetFlag : ClientPacket public class TutorialSetFlag : ClientPacket
@@ -321,8 +321,8 @@ namespace Game.Network.Packets
TutorialBit = _worldPacket.ReadUInt32(); TutorialBit = _worldPacket.ReadUInt32();
} }
public TutorialAction Action { get; set; } public TutorialAction Action;
public uint TutorialBit { get; set; } public uint TutorialBit;
} }
public class WorldServerInfo : ServerPacket public class WorldServerInfo : ServerPacket
@@ -355,12 +355,12 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(InstanceGroupSize.Value); _worldPacket.WriteUInt32(InstanceGroupSize.Value);
} }
public uint DifficultyID { get; set; } public uint DifficultyID;
public byte IsTournamentRealm { get; set; } public byte IsTournamentRealm;
public bool XRealmPvpAlert { get; set; } public bool XRealmPvpAlert;
public Optional<uint> RestrictedAccountMaxLevel { get; set; } public Optional<uint> RestrictedAccountMaxLevel;
public Optional<uint> RestrictedAccountMaxMoney { get; set; } public Optional<uint> RestrictedAccountMaxMoney;
public Optional<uint> InstanceGroupSize { get; set; } public Optional<uint> InstanceGroupSize;
} }
public class SetDungeonDifficulty : ClientPacket public class SetDungeonDifficulty : ClientPacket
@@ -372,7 +372,7 @@ namespace Game.Network.Packets
DifficultyID = _worldPacket.ReadInt32(); DifficultyID = _worldPacket.ReadInt32();
} }
public int DifficultyID { get; set; } public int DifficultyID;
} }
public class SetRaidDifficulty : ClientPacket public class SetRaidDifficulty : ClientPacket
@@ -385,8 +385,8 @@ namespace Game.Network.Packets
Legacy = _worldPacket.ReadUInt8(); Legacy = _worldPacket.ReadUInt8();
} }
public int DifficultyID { get; set; } public int DifficultyID;
public byte Legacy { get; set; } public byte Legacy;
} }
public class DungeonDifficultySet : ServerPacket public class DungeonDifficultySet : ServerPacket
@@ -398,7 +398,7 @@ namespace Game.Network.Packets
_worldPacket.WriteInt32(DifficultyID); _worldPacket.WriteInt32(DifficultyID);
} }
public int DifficultyID { get; set; } public int DifficultyID;
} }
public class RaidDifficultySet : ServerPacket public class RaidDifficultySet : ServerPacket
@@ -411,8 +411,8 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt8(Legacy); _worldPacket.WriteUInt8(Legacy);
} }
public int DifficultyID { get; set; } public int DifficultyID;
public bool Legacy { get; set; } public bool Legacy;
} }
public class CorpseReclaimDelay : ServerPacket public class CorpseReclaimDelay : ServerPacket
@@ -424,7 +424,7 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(Remaining); _worldPacket.WriteUInt32(Remaining);
} }
public uint Remaining { get; set; } public uint Remaining;
} }
public class DeathReleaseLoc : ServerPacket public class DeathReleaseLoc : ServerPacket
@@ -437,8 +437,8 @@ namespace Game.Network.Packets
_worldPacket.WriteVector3(Loc); _worldPacket.WriteVector3(Loc);
} }
public int MapID { get; set; } public int MapID;
public Vector3 Loc { get; set; } public Vector3 Loc;
} }
public class PortGraveyard : ClientPacket public class PortGraveyard : ClientPacket
@@ -457,7 +457,7 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(PlayerGUID); _worldPacket.WritePackedGuid(PlayerGUID);
} }
public ObjectGuid PlayerGUID { get; set; } public ObjectGuid PlayerGUID;
} }
public class ReclaimCorpse : ClientPacket public class ReclaimCorpse : ClientPacket
@@ -469,7 +469,7 @@ namespace Game.Network.Packets
CorpseGUID = _worldPacket.ReadPackedGuid(); CorpseGUID = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid CorpseGUID { get; set; } public ObjectGuid CorpseGUID;
} }
public class RepopRequest : ClientPacket public class RepopRequest : ClientPacket
@@ -481,7 +481,7 @@ namespace Game.Network.Packets
CheckInstance = _worldPacket.HasBit(); CheckInstance = _worldPacket.HasBit();
} }
public bool CheckInstance { get; set; } public bool CheckInstance;
} }
public class RequestCemeteryList : ClientPacket public class RequestCemeteryList : ClientPacket
@@ -505,8 +505,8 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(cemetery); _worldPacket.WriteUInt32(cemetery);
} }
public bool IsGossipTriggered { get; set; } public bool IsGossipTriggered;
public List<uint> CemeteryID { get; set; } = new List<uint>(); public List<uint> CemeteryID = new List<uint>();
} }
public class ResurrectResponse : ClientPacket public class ResurrectResponse : ClientPacket
@@ -519,8 +519,8 @@ namespace Game.Network.Packets
Response = _worldPacket.ReadUInt32(); Response = _worldPacket.ReadUInt32();
} }
public ObjectGuid Resurrecter { get; set; } public ObjectGuid Resurrecter;
public uint Response { get; set; } public uint Response;
} }
public class WeatherPkt : ServerPacket public class WeatherPkt : ServerPacket
@@ -555,7 +555,7 @@ namespace Game.Network.Packets
StandState = (UnitStandStateType)_worldPacket.ReadUInt32(); StandState = (UnitStandStateType)_worldPacket.ReadUInt32();
} }
public UnitStandStateType StandState { get; set; } public UnitStandStateType StandState;
} }
public class StandStateUpdate : ServerPacket public class StandStateUpdate : ServerPacket
@@ -599,12 +599,12 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public int Scale { get; set; } public int Scale;
public int MaxValue { get; set; } public int MaxValue;
public MirrorTimerType Timer { get; set; } public MirrorTimerType Timer;
public int SpellID { get; set; } public int SpellID;
public int Value { get; set; } public int Value;
public bool Paused { get; set; } public bool Paused;
} }
public class PauseMirrorTimer : ServerPacket public class PauseMirrorTimer : ServerPacket
@@ -622,8 +622,8 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public bool Paused { get; set; } = true; public bool Paused = true;
public MirrorTimerType Timer { get; set; } public MirrorTimerType Timer;
} }
public class StopMirrorTimer : ServerPacket public class StopMirrorTimer : ServerPacket
@@ -638,7 +638,7 @@ namespace Game.Network.Packets
_worldPacket.WriteInt32(Timer); _worldPacket.WriteInt32(Timer);
} }
public MirrorTimerType Timer { get; set; } public MirrorTimerType Timer;
} }
public class ExplorationExperience : ServerPacket public class ExplorationExperience : ServerPacket
@@ -655,8 +655,8 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(Experience); _worldPacket.WriteUInt32(Experience);
} }
public uint Experience { get; set; } public uint Experience;
public uint AreaID { get; set; } public uint AreaID;
} }
public class LevelUpInfo : ServerPacket public class LevelUpInfo : ServerPacket
@@ -677,11 +677,11 @@ namespace Game.Network.Packets
_worldPacket.WriteInt32(Cp); _worldPacket.WriteInt32(Cp);
} }
public uint Level { get; set; } = 0; public uint Level = 0;
public uint HealthDelta { get; set; } = 0; public uint HealthDelta = 0;
public uint[] PowerDelta { get; set; } = new uint[6]; public uint[] PowerDelta = new uint[6];
public uint[] StatDelta { get; set; } = new uint[(int)Stats.Max]; public uint[] StatDelta = new uint[(int)Stats.Max];
public int Cp { get; set; } = 0; public int Cp = 0;
} }
public class PlayMusic : ServerPacket public class PlayMusic : ServerPacket
@@ -710,18 +710,18 @@ namespace Game.Network.Packets
PartyIndex = _worldPacket.ReadUInt8(); PartyIndex = _worldPacket.ReadUInt8();
} }
public uint Min { get; set; } public uint Min;
public uint Max { get; set; } public uint Max;
public byte PartyIndex { get; set; } public byte PartyIndex;
} }
public class RandomRoll : ServerPacket public class RandomRoll : ServerPacket
{ {
public ObjectGuid Roller { get; set; } public ObjectGuid Roller;
public ObjectGuid RollerWowAccount { get; set; } public ObjectGuid RollerWowAccount;
public int Min { get; set; } public int Min;
public int Max { get; set; } public int Max;
public int Result { get; set; } public int Result;
public RandomRoll() : base(ServerOpcodes.RandomRoll) { } public RandomRoll() : base(ServerOpcodes.RandomRoll) { }
@@ -771,12 +771,12 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt16(map); // UI map id, WorldMapArea.dbc, controls map display _worldPacket.WriteUInt16(map); // UI map id, WorldMapArea.dbc, controls map display
} }
public ObjectGuid ClientGUID { get; set; } public ObjectGuid ClientGUID;
public ObjectGuid PersonalGUID { get; set; } public ObjectGuid PersonalGUID;
public List<uint> PhaseShifts { get; set; } = new List<uint>(); public List<uint> PhaseShifts = new List<uint>();
public List<uint> PreloadMapIDs { get; set; } = new List<uint>(); public List<uint> PreloadMapIDs = new List<uint>();
public List<uint> UiWorldMapAreaIDSwaps { get; set; } = new List<uint>(); public List<uint> UiWorldMapAreaIDSwaps = new List<uint>();
public List<uint> VisibleMapIDs { get; set; } = new List<uint>(); public List<uint> VisibleMapIDs = new List<uint>();
} }
public class ZoneUnderAttack : ServerPacket public class ZoneUnderAttack : ServerPacket
@@ -788,7 +788,7 @@ namespace Game.Network.Packets
_worldPacket.WriteInt32(AreaID); _worldPacket.WriteInt32(AreaID);
} }
public int AreaID { get; set; } public int AreaID;
} }
class DurabilityDamageDeath : ServerPacket class DurabilityDamageDeath : ServerPacket
@@ -800,7 +800,7 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(Percent); _worldPacket.WriteUInt32(Percent);
} }
public uint Percent { get; set; } public uint Percent;
} }
class ObjectUpdateFailed : ClientPacket class ObjectUpdateFailed : ClientPacket
@@ -812,7 +812,7 @@ namespace Game.Network.Packets
ObjectGUID = _worldPacket.ReadPackedGuid(); ObjectGUID = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid ObjectGUID { get; set; } public ObjectGuid ObjectGUID;
} }
class ObjectUpdateRescued : ClientPacket class ObjectUpdateRescued : ClientPacket
@@ -824,7 +824,7 @@ namespace Game.Network.Packets
ObjectGUID = _worldPacket.ReadPackedGuid(); ObjectGUID = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid ObjectGUID { get; set; } public ObjectGuid ObjectGUID;
} }
class PlayObjectSound : ServerPacket class PlayObjectSound : ServerPacket
@@ -839,10 +839,10 @@ namespace Game.Network.Packets
_worldPacket.WriteVector3(Position); _worldPacket.WriteVector3(Position);
} }
public ObjectGuid TargetObjectGUID { get; set; } ObjectGuid TargetObjectGUID;
public ObjectGuid SourceObjectGUID { get; set; } ObjectGuid SourceObjectGUID;
public uint SoundKitID { get; set; } uint SoundKitID;
public Vector3 Position { get; set; } Vector3 Position;
} }
class PlaySound : ServerPacket class PlaySound : ServerPacket
@@ -877,8 +877,8 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(SoundKitID); _worldPacket.WriteUInt32(SoundKitID);
} }
public ObjectGuid SourceObjectGUID { get; set; } public ObjectGuid SourceObjectGUID;
public uint SoundKitID { get; set; } public uint SoundKitID;
} }
class OpeningCinematic : ClientPacket class OpeningCinematic : ClientPacket
@@ -918,7 +918,7 @@ namespace Game.Network.Packets
Enable = _worldPacket.HasBit(); Enable = _worldPacket.HasBit();
} }
public bool Enable { get; set; } public bool Enable;
} }
class Dismount : ServerPacket class Dismount : ServerPacket
@@ -930,7 +930,7 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(Guid); _worldPacket.WritePackedGuid(Guid);
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
} }
class SaveCUFProfiles : ClientPacket class SaveCUFProfiles : ClientPacket
@@ -971,7 +971,7 @@ namespace Game.Network.Packets
} }
} }
public List<CUFProfile> CUFProfiles { get; set; } = new List<CUFProfile>(); public List<CUFProfile> CUFProfiles = new List<CUFProfile>();
} }
class LoadCUFProfiles : ServerPacket class LoadCUFProfiles : ServerPacket
@@ -1009,7 +1009,7 @@ namespace Game.Network.Packets
} }
} }
public List<CUFProfile> CUFProfiles { get; set; } = new List<CUFProfile>(); public List<CUFProfile> CUFProfiles = new List<CUFProfile>();
} }
class PlayOneShotAnimKit : ServerPacket class PlayOneShotAnimKit : ServerPacket
@@ -1022,8 +1022,8 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt16(AnimKitID); _worldPacket.WriteUInt16(AnimKitID);
} }
public ObjectGuid Unit { get; set; } public ObjectGuid Unit;
public ushort AnimKitID { get; set; } public ushort AnimKitID;
} }
class SetAIAnimKit : ServerPacket class SetAIAnimKit : ServerPacket
@@ -1036,8 +1036,8 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt16(AnimKitID); _worldPacket.WriteUInt16(AnimKitID);
} }
public ObjectGuid Unit { get; set; } public ObjectGuid Unit;
public ushort AnimKitID { get; set; } public ushort AnimKitID;
} }
class SetMeleeAnimKit : ServerPacket class SetMeleeAnimKit : ServerPacket
@@ -1050,8 +1050,8 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt16(AnimKitID); _worldPacket.WriteUInt16(AnimKitID);
} }
public ObjectGuid Unit { get; set; } public ObjectGuid Unit;
public ushort AnimKitID { get; set; } public ushort AnimKitID;
} }
class SetMovementAnimKit : ServerPacket class SetMovementAnimKit : ServerPacket
@@ -1064,8 +1064,8 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt16(AnimKitID); _worldPacket.WriteUInt16(AnimKitID);
} }
public ObjectGuid Unit { get; set; } public ObjectGuid Unit;
public ushort AnimKitID { get; set; } public ushort AnimKitID;
} }
class SetPlayHoverAnim : ServerPacket class SetPlayHoverAnim : ServerPacket
@@ -1079,8 +1079,8 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public ObjectGuid UnitGUID { get; set; } public ObjectGuid UnitGUID;
public bool PlayHoverAnim { get; set; } public bool PlayHoverAnim;
} }
class TogglePvP : ClientPacket class TogglePvP : ClientPacket
@@ -1099,7 +1099,7 @@ namespace Game.Network.Packets
EnablePVP = _worldPacket.HasBit(); EnablePVP = _worldPacket.HasBit();
} }
public bool EnablePVP { get; set; } public bool EnablePVP;
} }
class AccountHeirloomUpdate : ServerPacket class AccountHeirloomUpdate : ServerPacket
@@ -1124,9 +1124,9 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(flags.Value.flags); _worldPacket.WriteUInt32(flags.Value.flags);
} }
public bool IsFullUpdate { get; set; } public bool IsFullUpdate;
public Dictionary<uint, HeirloomData> Heirlooms { get; set; } = new Dictionary<uint, HeirloomData>(); public Dictionary<uint, HeirloomData> Heirlooms = new Dictionary<uint, HeirloomData>();
public int Unk { get; set; } int Unk;
} }
class MountSpecial : ClientPacket class MountSpecial : ClientPacket
@@ -1145,7 +1145,7 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(UnitGUID); _worldPacket.WritePackedGuid(UnitGUID);
} }
public ObjectGuid UnitGUID { get; set; } public ObjectGuid UnitGUID;
} }
class CrossedInebriationThreshold : ServerPacket class CrossedInebriationThreshold : ServerPacket
@@ -1159,9 +1159,9 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(ItemID); _worldPacket.WriteUInt32(ItemID);
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
public uint ItemID { get; set; } public uint ItemID;
public uint Threshold { get; set; } public uint Threshold;
} }
class SetTaxiBenchmarkMode : ClientPacket class SetTaxiBenchmarkMode : ClientPacket
@@ -1173,7 +1173,7 @@ namespace Game.Network.Packets
Enable = _worldPacket.HasBit(); Enable = _worldPacket.HasBit();
} }
public bool Enable { get; set; } public bool Enable;
} }
class OverrideLight : ServerPacket class OverrideLight : ServerPacket
@@ -1187,9 +1187,9 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(TransitionMilliseconds); _worldPacket.WriteUInt32(TransitionMilliseconds);
} }
public uint AreaLightID { get; set; } public uint AreaLightID;
public uint TransitionMilliseconds { get; set; } public uint TransitionMilliseconds;
public uint OverrideLightID { get; set; } public uint OverrideLightID;
} }
public class StartTimer : ServerPacket public class StartTimer : ServerPacket
@@ -1203,9 +1203,9 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(TotalTime); _worldPacket.WriteUInt32(TotalTime);
} }
public uint TimeRemaining { get; set; } public uint TimeRemaining;
public uint TotalTime { get; set; } public uint TotalTime;
public TimerType Type { get; set; } public TimerType Type;
} }
class DisplayGameError : ServerPacket class DisplayGameError : ServerPacket
@@ -1262,8 +1262,8 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public bool IsFullUpdate { get; set; } = false; public bool IsFullUpdate = false;
public Dictionary<uint, MountStatusFlags> Mounts { get; set; } = new Dictionary<uint, MountStatusFlags>(); public Dictionary<uint, MountStatusFlags> Mounts = new Dictionary<uint, MountStatusFlags>();
} }
class MountSetFavorite : ClientPacket class MountSetFavorite : ClientPacket
@@ -1276,8 +1276,8 @@ namespace Game.Network.Packets
IsFavorite = _worldPacket.HasBit(); IsFavorite = _worldPacket.HasBit();
} }
public uint MountSpellID { get; set; } public uint MountSpellID;
public bool IsFavorite { get; set; } public bool IsFavorite;
} }
class PvpPrestigeRankUp : ClientPacket class PvpPrestigeRankUp : ClientPacket
@@ -1296,6 +1296,6 @@ namespace Game.Network.Packets
SourceGuid = _worldPacket.ReadPackedGuid(); SourceGuid = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid SourceGuid { get; set; } public ObjectGuid SourceGuid;
} }
} }
+148 -148
View File
@@ -148,7 +148,7 @@ namespace Game.Network.Packets
uint int168 = 0; uint int168 = 0;
data.WriteUInt32(int168); data.WriteUInt32(int168);
/*for (public uint i { get; set; } = 0; i < removeMovementForcesCount; ++i) /*for (public uint i = 0; i < removeMovementForcesCount; ++i)
{ {
_worldPacket << ObjectGuid; _worldPacket << ObjectGuid;
}*/ }*/
@@ -271,7 +271,7 @@ namespace Game.Network.Packets
Status = MovementExtensions.ReadMovementInfo(_worldPacket); Status = MovementExtensions.ReadMovementInfo(_worldPacket);
} }
public MovementInfo Status { get; set; } public MovementInfo Status;
} }
public class MoveUpdate : ServerPacket public class MoveUpdate : ServerPacket
@@ -283,7 +283,7 @@ namespace Game.Network.Packets
MovementExtensions.WriteMovementInfo(_worldPacket, Status); MovementExtensions.WriteMovementInfo(_worldPacket, Status);
} }
public MovementInfo Status { get; set; } public MovementInfo Status;
} }
public class MonsterMove : ServerPacket public class MonsterMove : ServerPacket
@@ -376,9 +376,9 @@ namespace Game.Network.Packets
SplineData.Write(_worldPacket); SplineData.Write(_worldPacket);
} }
public MovementMonsterSpline SplineData { get; set; } public MovementMonsterSpline SplineData;
public ObjectGuid MoverGUID { get; set; } public ObjectGuid MoverGUID;
public Vector3 Pos { get; set; } public Vector3 Pos;
} }
public class MoveSplineSetSpeed : ServerPacket public class MoveSplineSetSpeed : ServerPacket
@@ -391,8 +391,8 @@ namespace Game.Network.Packets
_worldPacket.WriteFloat(Speed); _worldPacket.WriteFloat(Speed);
} }
public ObjectGuid MoverGUID { get; set; } public ObjectGuid MoverGUID;
public float Speed { get; set; } = 1.0f; public float Speed = 1.0f;
} }
public class MoveSetSpeed : ServerPacket public class MoveSetSpeed : ServerPacket
@@ -406,9 +406,9 @@ namespace Game.Network.Packets
_worldPacket.WriteFloat(Speed); _worldPacket.WriteFloat(Speed);
} }
public ObjectGuid MoverGUID { get; set; } public ObjectGuid MoverGUID;
public uint SequenceIndex { get; set; } = 0; // Unit movement packet index, incremented each time public uint SequenceIndex = 0; // Unit movement packet index, incremented each time
public float Speed { get; set; } = 1.0f; public float Speed = 1.0f;
} }
public class MoveUpdateSpeed : ServerPacket public class MoveUpdateSpeed : ServerPacket
@@ -421,8 +421,8 @@ namespace Game.Network.Packets
_worldPacket.WriteFloat(Speed); _worldPacket.WriteFloat(Speed);
} }
public MovementInfo Status { get; set; } public MovementInfo Status;
public float Speed { get; set; } = 1.0f; public float Speed = 1.0f;
} }
public class MoveSplineSetFlag : ServerPacket public class MoveSplineSetFlag : ServerPacket
@@ -434,7 +434,7 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(MoverGUID); _worldPacket.WritePackedGuid(MoverGUID);
} }
public ObjectGuid MoverGUID { get; set; } public ObjectGuid MoverGUID;
} }
public class MoveSetFlag : ServerPacket public class MoveSetFlag : ServerPacket
@@ -447,8 +447,8 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(SequenceIndex); _worldPacket.WriteUInt32(SequenceIndex);
} }
public ObjectGuid MoverGUID { get; set; } public ObjectGuid MoverGUID;
public uint SequenceIndex { get; set; } = 0; // Unit movement packet index, incremented each time public uint SequenceIndex = 0; // Unit movement packet index, incremented each time
} }
public class TransferPending : ServerPacket public class TransferPending : ServerPacket
@@ -476,9 +476,9 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public int MapID { get; set; } = -1; public int MapID = -1;
public Optional<ShipTransferPending> Ship; public Optional<ShipTransferPending> Ship;
public Optional<int> TransferSpellID { get; set; } public Optional<int> TransferSpellID;
public struct ShipTransferPending public struct ShipTransferPending
{ {
@@ -500,10 +500,10 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public uint MapID { get; set; } public uint MapID;
public byte Arg { get; set; } public byte Arg;
public int MapDifficultyXConditionID { get; set; } public int MapDifficultyXConditionID;
public TransferAbortReason TransfertAbort { get; set; } public TransferAbortReason TransfertAbort;
} }
public class NewWorld : ServerPacket public class NewWorld : ServerPacket
@@ -518,9 +518,9 @@ namespace Game.Network.Packets
_worldPacket.WriteXYZ(MovementOffset); _worldPacket.WriteXYZ(MovementOffset);
} }
public uint MapID { get; set; } public uint MapID;
public uint Reason { get; set; } public uint Reason;
public Position Pos { get; set; } public Position Pos;
public Position MovementOffset; // Adjusts all pending movement events by this offset public Position MovementOffset; // Adjusts all pending movement events by this offset
} }
@@ -559,13 +559,13 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(TransportGUID.Value); _worldPacket.WritePackedGuid(TransportGUID.Value);
} }
public Position Pos { get; set; } public Position Pos;
public Optional<VehicleTeleport> Vehicle { get; set; } public Optional<VehicleTeleport> Vehicle;
public uint SequenceIndex { get; set; } public uint SequenceIndex;
public ObjectGuid MoverGUID { get; set; } public ObjectGuid MoverGUID;
public Optional<ObjectGuid> TransportGUID { get; set; } public Optional<ObjectGuid> TransportGUID;
public float Facing { get; set; } public float Facing;
public byte PreloadWorld { get; set; } public byte PreloadWorld;
} }
public class MoveUpdateTeleport : ServerPacket public class MoveUpdateTeleport : ServerPacket
@@ -619,17 +619,17 @@ namespace Game.Network.Packets
_worldPacket.WriteFloat(PitchRate.Value); _worldPacket.WriteFloat(PitchRate.Value);
} }
public MovementInfo Status { get; set; } public MovementInfo Status;
public List<MovementForce> MovementForces { get; set; } = new List<MovementForce>(); public List<MovementForce> MovementForces = new List<MovementForce>();
public Optional<float> SwimBackSpeed { get; set; } public Optional<float> SwimBackSpeed;
public Optional<float> FlightSpeed { get; set; } public Optional<float> FlightSpeed;
public Optional<float> SwimSpeed { get; set; } public Optional<float> SwimSpeed;
public Optional<float> WalkSpeed { get; set; } public Optional<float> WalkSpeed;
public Optional<float> TurnRate { get; set; } public Optional<float> TurnRate;
public Optional<float> RunSpeed { get; set; } public Optional<float> RunSpeed;
public Optional<float> FlightBackSpeed { get; set; } public Optional<float> FlightBackSpeed;
public Optional<float> RunBackSpeed { get; set; } public Optional<float> RunBackSpeed;
public Optional<float> PitchRate { get; set; } public Optional<float> PitchRate;
} }
class MoveUpdateApplyMovementForce : ServerPacket class MoveUpdateApplyMovementForce : ServerPacket
@@ -656,8 +656,8 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(TriggerGUID); _worldPacket.WritePackedGuid(TriggerGUID);
} }
public MovementInfo movementInfo { get; set; } = new MovementInfo(); MovementInfo movementInfo = new MovementInfo();
public ObjectGuid TriggerGUID { get; set; } ObjectGuid TriggerGUID;
} }
class MoveTeleportAck : ClientPacket class MoveTeleportAck : ClientPacket
@@ -671,7 +671,7 @@ namespace Game.Network.Packets
MoveTime = _worldPacket.ReadInt32(); MoveTime = _worldPacket.ReadInt32();
} }
public ObjectGuid MoverGUID { get; set; } public ObjectGuid MoverGUID;
int AckIndex = 0; int AckIndex = 0;
int MoveTime = 0; int MoveTime = 0;
} }
@@ -685,7 +685,7 @@ namespace Game.Network.Packets
Ack.Read(_worldPacket); Ack.Read(_worldPacket);
} }
public MovementAck Ack { get; set; } public MovementAck Ack;
} }
public class MovementSpeedAck : ClientPacket public class MovementSpeedAck : ClientPacket
@@ -698,13 +698,13 @@ namespace Game.Network.Packets
Speed = _worldPacket.ReadFloat(); Speed = _worldPacket.ReadFloat();
} }
public MovementAck Ack { get; set; } public MovementAck Ack;
public float Speed { get; set; } public float Speed;
} }
public class SetActiveMover : ClientPacket public class SetActiveMover : ClientPacket
{ {
public ObjectGuid ActiveMover { get; set; } public ObjectGuid ActiveMover;
public SetActiveMover(WorldPacket packet) : base(packet) { } public SetActiveMover(WorldPacket packet) : base(packet) { }
@@ -716,7 +716,7 @@ namespace Game.Network.Packets
public class MoveSetActiveMover : ServerPacket public class MoveSetActiveMover : ServerPacket
{ {
public ObjectGuid MoverGUID { get; set; } public ObjectGuid MoverGUID;
public MoveSetActiveMover() : base(ServerOpcodes.MoveSetActiveMover) { } public MoveSetActiveMover() : base(ServerOpcodes.MoveSetActiveMover) { }
@@ -738,10 +738,10 @@ namespace Game.Network.Packets
Speeds.Write(_worldPacket); Speeds.Write(_worldPacket);
} }
public ObjectGuid MoverGUID { get; set; } public ObjectGuid MoverGUID;
public Vector2 Direction { get; set; } public Vector2 Direction;
public MoveKnockBackSpeeds Speeds; public MoveKnockBackSpeeds Speeds;
public uint SequenceIndex { get; set; } public uint SequenceIndex;
} }
public class MoveUpdateKnockBack : ServerPacket public class MoveUpdateKnockBack : ServerPacket
@@ -753,7 +753,7 @@ namespace Game.Network.Packets
MovementExtensions.WriteMovementInfo(_worldPacket, Status); MovementExtensions.WriteMovementInfo(_worldPacket, Status);
} }
public MovementInfo Status { get; set; } public MovementInfo Status;
} }
class MoveKnockBackAck : ClientPacket class MoveKnockBackAck : ClientPacket
@@ -770,7 +770,7 @@ namespace Game.Network.Packets
} }
} }
public MovementAck Ack { get; set; } public MovementAck Ack;
public Optional<MoveKnockBackSpeeds> Speeds; public Optional<MoveKnockBackSpeeds> Speeds;
} }
@@ -790,13 +790,13 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public float Scale { get; set; } = 1.0f; public float Scale = 1.0f;
public ObjectGuid MoverGUID { get; set; } public ObjectGuid MoverGUID;
public uint MountDisplayID { get; set; } public uint MountDisplayID;
public UpdateCollisionHeightReason Reason { get; set; } = UpdateCollisionHeightReason.Mount; public UpdateCollisionHeightReason Reason = UpdateCollisionHeightReason.Mount;
public uint SequenceIndex { get; set; } public uint SequenceIndex;
public int ScaleDuration { get; set; } public int ScaleDuration;
public float Height { get; set; } = 1.0f; public float Height = 1.0f;
} }
public class MoveUpdateCollisionHeight : ServerPacket public class MoveUpdateCollisionHeight : ServerPacket
@@ -810,9 +810,9 @@ namespace Game.Network.Packets
_worldPacket.WriteFloat(Scale); _worldPacket.WriteFloat(Scale);
} }
public MovementInfo Status { get; set; } public MovementInfo Status;
public float Scale { get; set; } = 1.0f; public float Scale = 1.0f;
public float Height { get; set; } = 1.0f; public float Height = 1.0f;
} }
public class MoveSetCollisionHeightAck : ClientPacket public class MoveSetCollisionHeightAck : ClientPacket
@@ -827,10 +827,10 @@ namespace Game.Network.Packets
Reason = (UpdateCollisionHeightReason)_worldPacket.ReadBits<uint>(2); Reason = (UpdateCollisionHeightReason)_worldPacket.ReadBits<uint>(2);
} }
public MovementAck Data { get; set; } public MovementAck Data;
public UpdateCollisionHeightReason Reason { get; set; } = UpdateCollisionHeightReason.Mount; public UpdateCollisionHeightReason Reason = UpdateCollisionHeightReason.Mount;
public uint MountDisplayID { get; set; } public uint MountDisplayID;
public float Height { get; set; } = 1.0f; public float Height = 1.0f;
} }
class MoveTimeSkipped : ClientPacket class MoveTimeSkipped : ClientPacket
@@ -843,8 +843,8 @@ namespace Game.Network.Packets
TimeSkipped = _worldPacket.ReadUInt32(); TimeSkipped = _worldPacket.ReadUInt32();
} }
public ObjectGuid MoverGUID { get; set; } public ObjectGuid MoverGUID;
public uint TimeSkipped { get; set; } public uint TimeSkipped;
} }
class SummonResponse : ClientPacket class SummonResponse : ClientPacket
@@ -857,8 +857,8 @@ namespace Game.Network.Packets
Accept = _worldPacket.HasBit(); Accept = _worldPacket.HasBit();
} }
public bool Accept { get; set; } public bool Accept;
public ObjectGuid SummonerGUID { get; set; } public ObjectGuid SummonerGUID;
} }
public class ControlUpdate : ServerPacket public class ControlUpdate : ServerPacket
@@ -872,8 +872,8 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public bool On { get; set; } public bool On;
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
} }
class MoveSplineDone : ClientPacket class MoveSplineDone : ClientPacket
@@ -886,8 +886,8 @@ namespace Game.Network.Packets
SplineID = _worldPacket.ReadInt32(); SplineID = _worldPacket.ReadInt32();
} }
public MovementInfo Status { get; set; } public MovementInfo Status;
public int SplineID { get; set; } public int SplineID;
} }
class SummonRequest : ServerPacket class SummonRequest : ServerPacket
@@ -904,11 +904,11 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public ObjectGuid SummonerGUID { get; set; } public ObjectGuid SummonerGUID;
public uint SummonerVirtualRealmAddress { get; set; } public uint SummonerVirtualRealmAddress;
public int AreaID { get; set; } public int AreaID;
public SummonReason Reason { get; set; } public SummonReason Reason;
public bool SkipStartingArea { get; set; } public bool SkipStartingArea;
public enum SummonReason public enum SummonReason
{ {
@@ -928,8 +928,8 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public uint SequenceIndex { get; set; } = 1; public uint SequenceIndex = 1;
public uint Reason { get; set; } = 1; public uint Reason = 1;
} }
class SuspendTokenResponse : ClientPacket class SuspendTokenResponse : ClientPacket
@@ -941,7 +941,7 @@ namespace Game.Network.Packets
SequenceIndex = _worldPacket.ReadUInt32(); SequenceIndex = _worldPacket.ReadUInt32();
} }
public uint SequenceIndex { get; set; } public uint SequenceIndex;
} }
class ResumeToken : ServerPacket class ResumeToken : ServerPacket
@@ -955,8 +955,8 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public uint SequenceIndex { get; set; } = 1; public uint SequenceIndex = 1;
public uint Reason { get; set; } = 1; public uint Reason = 1;
} }
class MoveSetCompoundState : ServerPacket class MoveSetCompoundState : ServerPacket
@@ -971,21 +971,21 @@ namespace Game.Network.Packets
stateChange.Write(_worldPacket); stateChange.Write(_worldPacket);
} }
public ObjectGuid MoverGUID { get; set; } public ObjectGuid MoverGUID;
public List<MoveStateChange> StateChanges { get; set; } = new List<MoveStateChange>(); public List<MoveStateChange> StateChanges = new List<MoveStateChange>();
public struct CollisionHeightInfo public struct CollisionHeightInfo
{ {
public float Height { get; set; } public float Height;
public float Scale { get; set; } public float Scale;
public UpdateCollisionHeightReason Reason { get; set; } public UpdateCollisionHeightReason Reason;
} }
public struct KnockBackInfo public struct KnockBackInfo
{ {
public float HorzSpeed { get; set; } public float HorzSpeed;
public Vector2 Direction { get; set; } public Vector2 Direction;
public float InitVertSpeed { get; set; } public float InitVertSpeed;
} }
public class MoveStateChange public class MoveStateChange
@@ -1036,14 +1036,14 @@ namespace Game.Network.Packets
MovementForce_.Value.Write(data); MovementForce_.Value.Write(data);
} }
public ServerOpcodes MessageID { get; set; } public ServerOpcodes MessageID;
public uint SequenceIndex { get; set; } public uint SequenceIndex;
public Optional<float> Speed { get; set; } public Optional<float> Speed;
public Optional<KnockBackInfo> KnockBack { get; set; } public Optional<KnockBackInfo> KnockBack;
public Optional<int> VehicleRecID { get; set; } public Optional<int> VehicleRecID;
public Optional<CollisionHeightInfo> CollisionHeight { get; set; } public Optional<CollisionHeightInfo> CollisionHeight;
public Optional<MovementForce> MovementForce_ { get; set; } public Optional<MovementForce> MovementForce_;
public Optional<ObjectGuid> Unknown { get; set; } public Optional<ObjectGuid> Unknown;
} }
} }
@@ -1056,8 +1056,8 @@ namespace Game.Network.Packets
data.WriteUInt16(Speed); data.WriteUInt16(Speed);
} }
public short Idx { get; set; } public short Idx;
public ushort Speed { get; set; } public ushort Speed;
} }
public class MonsterSplineFilter public class MonsterSplineFilter
@@ -1076,12 +1076,12 @@ namespace Game.Network.Packets
data.FlushBits(); data.FlushBits();
} }
public List<MonsterSplineFilterKey> FilterKeys { get; set; } = new List<MonsterSplineFilterKey>(); public List<MonsterSplineFilterKey> FilterKeys = new List<MonsterSplineFilterKey>();
public byte FilterFlags { get; set; } public byte FilterFlags;
public float BaseSpeed { get; set; } public float BaseSpeed;
public short StartOffset { get; set; } public short StartOffset;
public float DistToPrevFilterKey { get; set; } public float DistToPrevFilterKey;
public short AddedToStart { get; set; } public short AddedToStart;
} }
public struct MonsterSplineSpellEffectExtraData public struct MonsterSplineSpellEffectExtraData
@@ -1094,10 +1094,10 @@ namespace Game.Network.Packets
data.WriteUInt32(ParabolicCurveID); data.WriteUInt32(ParabolicCurveID);
} }
public ObjectGuid TargetGuid { get; set; } public ObjectGuid TargetGuid;
public uint SpellVisualID { get; set; } public uint SpellVisualID;
public uint ProgressCurveID { get; set; } public uint ProgressCurveID;
public uint ParabolicCurveID { get; set; } public uint ParabolicCurveID;
} }
public class MovementSpline public class MovementSpline
@@ -1151,23 +1151,23 @@ namespace Game.Network.Packets
public uint Flags; // Spline flags public uint Flags; // Spline flags
public MonsterMoveType Face; // Movement direction (see MonsterMoveType enum) public MonsterMoveType Face; // Movement direction (see MonsterMoveType enum)
public byte AnimTier { get; set; } public byte AnimTier;
public uint TierTransStartTime { get; set; } public uint TierTransStartTime;
public int Elapsed { get; set; } public int Elapsed;
public uint MoveTime { get; set; } public uint MoveTime;
public float JumpGravity { get; set; } public float JumpGravity;
public uint SpecialTime { get; set; } public uint SpecialTime;
public List<Vector3> Points { get; set; } = new List<Vector3>(); // Spline path public List<Vector3> Points = new List<Vector3>(); // Spline path
public byte Mode; // Spline mode - actually always 0 in this packet - Catmullrom mode appears only in SMSG_UPDATE_OBJECT. In this packet it is determined by flags public byte Mode; // Spline mode - actually always 0 in this packet - Catmullrom mode appears only in SMSG_UPDATE_OBJECT. In this packet it is determined by flags
public byte VehicleExitVoluntary { get; set; } public byte VehicleExitVoluntary;
public ObjectGuid TransportGUID { get; set; } public ObjectGuid TransportGUID;
public sbyte VehicleSeat { get; set; } = -1; public sbyte VehicleSeat = -1;
public List<Vector3> PackedDeltas { get; set; } = new List<Vector3>(); public List<Vector3> PackedDeltas = new List<Vector3>();
public Optional<MonsterSplineFilter> SplineFilter { get; set; } public Optional<MonsterSplineFilter> SplineFilter;
public Optional<MonsterSplineSpellEffectExtraData> SpellEffectExtraData; public Optional<MonsterSplineSpellEffectExtraData> SpellEffectExtraData;
public float FaceDirection { get; set; } public float FaceDirection;
public ObjectGuid FaceGUID { get; set; } public ObjectGuid FaceGUID;
public Vector3 FaceSpot { get; set; } public Vector3 FaceSpot;
} }
public class MovementMonsterSpline public class MovementMonsterSpline
@@ -1187,18 +1187,18 @@ namespace Game.Network.Packets
Move.Write(data); Move.Write(data);
} }
public uint ID { get; set; } public uint ID;
public Vector3 Destination { get; set; } public Vector3 Destination;
public bool CrzTeleport { get; set; } public bool CrzTeleport;
public byte StopDistanceTolerance; // Determines how far from spline destination the mover is allowed to stop in place 0, 0, 3.0, 2.76, numeric_limits<float>::max, 1.1, float(INT_MAX); default before this field existed was distance 3.0 (index 2) public byte StopDistanceTolerance; // Determines how far from spline destination the mover is allowed to stop in place 0, 0, 3.0, 2.76, numeric_limits<float>::max, 1.1, float(INT_MAX); default before this field existed was distance 3.0 (index 2)
public MovementSpline Move { get; set; } public MovementSpline Move;
} }
public struct VehicleTeleport public struct VehicleTeleport
{ {
public byte VehicleSeatIndex { get; set; } public byte VehicleSeatIndex;
public bool VehicleExitVoluntary { get; set; } public bool VehicleExitVoluntary;
public bool VehicleExitTeleport { get; set; } public bool VehicleExitTeleport;
} }
public struct MovementForce public struct MovementForce
@@ -1214,12 +1214,12 @@ namespace Game.Network.Packets
data.FlushBits(); data.FlushBits();
} }
public ObjectGuid ID { get; set; } public ObjectGuid ID;
public Vector3 Origin { get; set; } public Vector3 Origin;
public Vector3 Direction { get; set; } public Vector3 Direction;
public uint TransportID { get; set; } public uint TransportID;
public float Magnitude { get; set; } public float Magnitude;
public byte Type { get; set; } public byte Type;
} }
public struct MovementAck public struct MovementAck
@@ -1230,8 +1230,8 @@ namespace Game.Network.Packets
AckIndex = data.ReadInt32(); AckIndex = data.ReadInt32();
} }
public MovementInfo Status { get; set; } public MovementInfo Status;
public int AckIndex { get; set; } public int AckIndex;
} }
public struct MoveKnockBackSpeeds public struct MoveKnockBackSpeeds
@@ -1248,7 +1248,7 @@ namespace Game.Network.Packets
VertSpeed = data.ReadFloat(); VertSpeed = data.ReadFloat();
} }
public float HorzSpeed { get; set; } public float HorzSpeed;
public float VertSpeed { get; set; } public float VertSpeed;
} }
} }
+63 -63
View File
@@ -38,7 +38,7 @@ namespace Game.Network.Packets
Unit = _worldPacket.ReadPackedGuid(); Unit = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid Unit { get; set; } public ObjectGuid Unit;
} }
public class GossipMessagePkt : ServerPacket public class GossipMessagePkt : ServerPacket
@@ -86,12 +86,12 @@ namespace Game.Network.Packets
} }
} }
public List<ClientGossipOptions> GossipOptions { get; set; } = new List<ClientGossipOptions>(); public List<ClientGossipOptions> GossipOptions = new List<ClientGossipOptions>();
public int FriendshipFactionID { get; set; } = 0; public int FriendshipFactionID = 0;
public ObjectGuid GossipGUID { get; set; } public ObjectGuid GossipGUID;
public List<ClientGossipText> GossipText { get; set; } = new List<ClientGossipText>(); public List<ClientGossipText> GossipText = new List<ClientGossipText>();
public int TextID { get; set; } = 0; public int TextID = 0;
public int GossipID { get; set; } = 0; public int GossipID = 0;
} }
public class GossipSelectOption : ClientPacket public class GossipSelectOption : ClientPacket
@@ -108,10 +108,10 @@ namespace Game.Network.Packets
PromotionCode = _worldPacket.ReadString(length); PromotionCode = _worldPacket.ReadString(length);
} }
public ObjectGuid GossipUnit { get; set; } public ObjectGuid GossipUnit;
public uint GossipIndex { get; set; } public uint GossipIndex;
public uint GossipID { get; set; } public uint GossipID;
public string PromotionCode { get; set; } public string PromotionCode;
} }
public class GossipComplete : ServerPacket public class GossipComplete : ServerPacket
@@ -135,9 +135,9 @@ namespace Game.Network.Packets
item.Write(_worldPacket); item.Write(_worldPacket);
} }
public byte Reason { get; set; } = 0; public byte Reason = 0;
public List<VendorItemPkt> Items { get; set; } = new List<VendorItemPkt>(); public List<VendorItemPkt> Items = new List<VendorItemPkt>();
public ObjectGuid Vendor { get; set; } public ObjectGuid Vendor;
} }
public class TrainerList : ServerPacket public class TrainerList : ServerPacket
@@ -170,11 +170,11 @@ namespace Game.Network.Packets
_worldPacket.WriteString(Greeting); _worldPacket.WriteString(Greeting);
} }
public ObjectGuid TrainerGUID { get; set; } public ObjectGuid TrainerGUID;
public int TrainerType { get; set; } public int TrainerType;
public int TrainerID { get; set; } = 1; public int TrainerID = 1;
public List<TrainerListSpell> Spells { get; set; } = new List<TrainerListSpell>(); public List<TrainerListSpell> Spells = new List<TrainerListSpell>();
public string Greeting { get; set; } public string Greeting;
} }
public class ShowBank : ServerPacket public class ShowBank : ServerPacket
@@ -186,7 +186,7 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(Guid); _worldPacket.WritePackedGuid(Guid);
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
} }
public class PlayerTabardVendorActivate : ServerPacket public class PlayerTabardVendorActivate : ServerPacket
@@ -198,7 +198,7 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(Vendor); _worldPacket.WritePackedGuid(Vendor);
} }
public ObjectGuid Vendor { get; set; } public ObjectGuid Vendor;
} }
class GossipPOI : ServerPacket class GossipPOI : ServerPacket
@@ -216,10 +216,10 @@ namespace Game.Network.Packets
_worldPacket.WriteString(Name); _worldPacket.WriteString(Name);
} }
public uint Flags { get; set; } public uint Flags;
public Vector2 Pos { get; set; } public Vector2 Pos;
public uint Icon { get; set; } public uint Icon;
public uint Importance { get; set; } public uint Importance;
public string Name; public string Name;
} }
@@ -232,7 +232,7 @@ namespace Game.Network.Packets
Healer = _worldPacket.ReadPackedGuid(); Healer = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid Healer { get; set; } public ObjectGuid Healer;
} }
public class SpiritHealerConfirm : ServerPacket public class SpiritHealerConfirm : ServerPacket
@@ -244,7 +244,7 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(Unit); _worldPacket.WritePackedGuid(Unit);
} }
public ObjectGuid Unit { get; set; } public ObjectGuid Unit;
} }
class TrainerBuySpell : ClientPacket class TrainerBuySpell : ClientPacket
@@ -258,9 +258,9 @@ namespace Game.Network.Packets
SpellID= _worldPacket.ReadUInt32(); SpellID= _worldPacket.ReadUInt32();
} }
public ObjectGuid TrainerGUID { get; set; } public ObjectGuid TrainerGUID;
public uint TrainerID { get; set; } public uint TrainerID;
public uint SpellID { get; set; } public uint SpellID;
} }
class TrainerBuyFailed : ServerPacket class TrainerBuyFailed : ServerPacket
@@ -274,9 +274,9 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(TrainerFailedReason); _worldPacket.WriteUInt32(TrainerFailedReason);
} }
public ObjectGuid TrainerGUID { get; set; } public ObjectGuid TrainerGUID;
public uint SpellID { get; set; } public uint SpellID;
public TrainerFailReason TrainerFailedReason { get; set; } public TrainerFailReason TrainerFailedReason;
} }
class RequestStabledPets : ClientPacket class RequestStabledPets : ClientPacket
@@ -288,29 +288,29 @@ namespace Game.Network.Packets
StableMaster = _worldPacket.ReadPackedGuid(); StableMaster = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid StableMaster { get; set; } public ObjectGuid StableMaster;
} }
//Structs //Structs
public struct ClientGossipOptions public struct ClientGossipOptions
{ {
public int ClientOption { get; set; } public int ClientOption;
public byte OptionNPC { get; set; } public byte OptionNPC;
public byte OptionFlags { get; set; } public byte OptionFlags;
public int OptionCost { get; set; } public int OptionCost;
public string Text { get; set; } public string Text;
public string Confirm { get; set; } public string Confirm;
} }
public class ClientGossipText public class ClientGossipText
{ {
public int QuestID { get; set; } public int QuestID;
public int QuestType { get; set; } public int QuestType;
public int QuestLevel { get; set; } public int QuestLevel;
public bool Repeatable { get; set; } public bool Repeatable;
public string QuestTitle; public string QuestTitle;
public int QuestFlags { get; set; } public int QuestFlags;
public int QuestFlagsEx { get; set; } public int QuestFlagsEx;
} }
public class VendorItemPkt public class VendorItemPkt
@@ -330,26 +330,26 @@ namespace Game.Network.Packets
data.FlushBits(); data.FlushBits();
} }
public int MuID { get; set; } public int MuID;
public int Type { get; set; } public int Type;
public ItemInstance Item { get; set; } = new ItemInstance(); public ItemInstance Item = new ItemInstance();
public int Quantity { get; set; } = -1; public int Quantity = -1;
public ulong Price { get; set; } public ulong Price;
public int Durability { get; set; } public int Durability;
public int StackCount { get; set; } public int StackCount;
public int ExtendedCostID { get; set; } public int ExtendedCostID;
public int PlayerConditionFailed { get; set; } public int PlayerConditionFailed;
public bool DoNotFilterOnVendor { get; set; } public bool DoNotFilterOnVendor;
} }
public class TrainerListSpell public class TrainerListSpell
{ {
public uint SpellID { get; set; } public uint SpellID;
public uint MoneyCost { get; set; } public uint MoneyCost;
public uint ReqSkillLine { get; set; } public uint ReqSkillLine;
public uint ReqSkillRank { get; set; } public uint ReqSkillRank;
public uint[] ReqAbility { get; set; } = new uint[SharedConst.MaxTrainerspellAbilityReqs]; public uint[] ReqAbility = new uint[SharedConst.MaxTrainerspellAbilityReqs];
public TrainerSpellState Usable { get; set; } public TrainerSpellState Usable;
public byte ReqLevel { get; set; } public byte ReqLevel;
} }
} }
+177 -177
View File
@@ -40,11 +40,11 @@ namespace Game.Network.Packets
_worldPacket.WriteString(Name); _worldPacket.WriteString(Name);
} }
public string Name { get; set; } public string Name;
public byte Command { get; set; } public byte Command;
public byte Result { get; set; } public byte Result;
public uint ResultData { get; set; } public uint ResultData;
public ObjectGuid ResultGUID { get; set; } public ObjectGuid ResultGUID;
} }
class PartyInviteClient : ClientPacket class PartyInviteClient : ClientPacket
@@ -64,11 +64,11 @@ namespace Game.Network.Packets
TargetRealm = _worldPacket.ReadString(targetRealmLen); TargetRealm = _worldPacket.ReadString(targetRealmLen);
} }
public sbyte PartyIndex { get; set; } public sbyte PartyIndex;
public int ProposedRoles { get; set; } public int ProposedRoles;
public string TargetName { get; set; } public string TargetName;
public string TargetRealm { get; set; } public string TargetRealm;
public ObjectGuid TargetGUID { get; set; } public ObjectGuid TargetGUID;
} }
class PartyInvite : ServerPacket class PartyInvite : ServerPacket
@@ -120,30 +120,30 @@ namespace Game.Network.Packets
_worldPacket.WriteInt32(LfgSlot); _worldPacket.WriteInt32(LfgSlot);
} }
public bool MightCRZYou { get; set; } public bool MightCRZYou;
public bool MustBeBNetFriend { get; set; } public bool MustBeBNetFriend;
public bool AllowMultipleRoles { get; set; } public bool AllowMultipleRoles;
public bool Unk2 { get; set; } public bool Unk2;
public ushort Unk1 { get; set; } public ushort Unk1;
public bool CanAccept { get; set; } public bool CanAccept;
// Inviter // Inviter
public ObjectGuid InviterGUID { get; set; } public ObjectGuid InviterGUID;
public ObjectGuid InviterBNetAccountId { get; set; } public ObjectGuid InviterBNetAccountId;
public string InviterName { get; set; } public string InviterName;
// Realm // Realm
public bool IsXRealm { get; set; } public bool IsXRealm;
public bool IsLocal { get; set; } = true; public bool IsLocal = true;
public uint InviterVirtualRealmAddress { get; set; } public uint InviterVirtualRealmAddress;
public string InviterRealmNameActual { get; set; } public string InviterRealmNameActual;
public string InviterRealmNameNormalized { get; set; } public string InviterRealmNameNormalized;
// Lfg // Lfg
public int ProposedRoles { get; set; } public int ProposedRoles;
public int LfgCompletedMask { get; set; } public int LfgCompletedMask;
public List<int> LfgSlots { get; set; } = new List<int>(); public List<int> LfgSlots = new List<int>();
} }
class PartyInviteResponse : ClientPacket class PartyInviteResponse : ClientPacket
@@ -161,9 +161,9 @@ namespace Game.Network.Packets
RolesDesired.Set(_worldPacket.ReadInt32()); RolesDesired.Set(_worldPacket.ReadInt32());
} }
public sbyte PartyIndex { get; set; } public sbyte PartyIndex;
public bool Accept { get; set; } public bool Accept;
public Optional<int> RolesDesired { get; set; } public Optional<int> RolesDesired;
} }
class PartyUninvite : ClientPacket class PartyUninvite : ClientPacket
@@ -179,9 +179,9 @@ namespace Game.Network.Packets
Reason = _worldPacket.ReadString(reasonLen); Reason = _worldPacket.ReadString(reasonLen);
} }
public sbyte PartyIndex { get; set; } public sbyte PartyIndex;
public ObjectGuid TargetGUID { get; set; } public ObjectGuid TargetGUID;
public string Reason { get; set; } public string Reason;
} }
class GroupDecline : ServerPacket class GroupDecline : ServerPacket
@@ -198,7 +198,7 @@ namespace Game.Network.Packets
_worldPacket.WriteString(Name); _worldPacket.WriteString(Name);
} }
public string Name { get; set; } public string Name;
} }
class RequestPartyMemberStats : ClientPacket class RequestPartyMemberStats : ClientPacket
@@ -211,8 +211,8 @@ namespace Game.Network.Packets
TargetGUID = _worldPacket.ReadPackedGuid(); TargetGUID = _worldPacket.ReadPackedGuid();
} }
public sbyte PartyIndex { get; set; } public sbyte PartyIndex;
public ObjectGuid TargetGUID { get; set; } public ObjectGuid TargetGUID;
} }
class PartyMemberState : ServerPacket class PartyMemberState : ServerPacket
@@ -318,7 +318,7 @@ namespace Game.Network.Packets
MemberStats.Phases.PersonalGUID = ObjectGuid.Empty; MemberStats.Phases.PersonalGUID = ObjectGuid.Empty;
foreach (uint phaseId in phases) foreach (uint phaseId in phases)
{ {
PartyMemberPhase phase = new PartyMemberPhase(); PartyMemberPhase phase;
phase.Id = (ushort)phaseId; phase.Id = (ushort)phaseId;
phase.Flags = 1; phase.Flags = 1;
MemberStats.Phases.List.Add(phase); MemberStats.Phases.List.Add(phase);
@@ -364,9 +364,9 @@ namespace Game.Network.Packets
} }
} }
public bool ForEnemy { get; set; } public bool ForEnemy;
public ObjectGuid MemberGuid { get; set; } public ObjectGuid MemberGuid;
public PartyMemberStats MemberStats { get; set; } = new PartyMemberStats(); public PartyMemberStats MemberStats = new PartyMemberStats();
} }
class SetPartyLeader : ClientPacket class SetPartyLeader : ClientPacket
@@ -379,8 +379,8 @@ namespace Game.Network.Packets
TargetGUID = _worldPacket.ReadPackedGuid(); TargetGUID = _worldPacket.ReadPackedGuid();
} }
public sbyte PartyIndex { get; set; } public sbyte PartyIndex;
public ObjectGuid TargetGUID { get; set; } public ObjectGuid TargetGUID;
} }
class SetRole : ClientPacket class SetRole : ClientPacket
@@ -394,9 +394,9 @@ namespace Game.Network.Packets
Role = _worldPacket.ReadInt32(); Role = _worldPacket.ReadInt32();
} }
public sbyte PartyIndex { get; set; } public sbyte PartyIndex;
public ObjectGuid TargetGUID { get; set; } public ObjectGuid TargetGUID;
public int Role { get; set; } public int Role;
} }
class RoleChangedInform : ServerPacket class RoleChangedInform : ServerPacket
@@ -412,11 +412,11 @@ namespace Game.Network.Packets
_worldPacket.WriteInt32(NewRole); _worldPacket.WriteInt32(NewRole);
} }
public sbyte PartyIndex { get; set; } public sbyte PartyIndex;
public ObjectGuid From { get; set; } public ObjectGuid From;
public ObjectGuid ChangedUnit { get; set; } public ObjectGuid ChangedUnit;
public int OldRole { get; set; } public int OldRole;
public int NewRole { get; set; } public int NewRole;
} }
class LeaveGroup : ClientPacket class LeaveGroup : ClientPacket
@@ -428,7 +428,7 @@ namespace Game.Network.Packets
PartyIndex = _worldPacket.ReadInt8(); PartyIndex = _worldPacket.ReadInt8();
} }
public sbyte PartyIndex { get; set; } public sbyte PartyIndex;
} }
class GroupUninvite : ServerPacket class GroupUninvite : ServerPacket
@@ -457,10 +457,10 @@ namespace Game.Network.Packets
LootThreshold = (ItemQuality)_worldPacket.ReadUInt32(); LootThreshold = (ItemQuality)_worldPacket.ReadUInt32();
} }
public sbyte PartyIndex { get; set; } public sbyte PartyIndex;
public ObjectGuid LootMasterGUID { get; set; } public ObjectGuid LootMasterGUID;
public LootMethod LootMethod { get; set; } public LootMethod LootMethod;
public ItemQuality LootThreshold { get; set; } public ItemQuality LootThreshold;
} }
class MinimapPingClient : ClientPacket class MinimapPingClient : ClientPacket
@@ -474,9 +474,9 @@ namespace Game.Network.Packets
PartyIndex = _worldPacket.ReadInt8(); PartyIndex = _worldPacket.ReadInt8();
} }
public sbyte PartyIndex { get; set; } public sbyte PartyIndex;
public float PositionX { get; set; } public float PositionX;
public float PositionY { get; set; } public float PositionY;
} }
class MinimapPing : ServerPacket class MinimapPing : ServerPacket
@@ -490,9 +490,9 @@ namespace Game.Network.Packets
_worldPacket.WriteFloat(PositionY); _worldPacket.WriteFloat(PositionY);
} }
public ObjectGuid Sender { get; set; } public ObjectGuid Sender;
public float PositionX { get; set; } public float PositionX;
public float PositionY { get; set; } public float PositionY;
} }
class UpdateRaidTarget : ClientPacket class UpdateRaidTarget : ClientPacket
@@ -506,9 +506,9 @@ namespace Game.Network.Packets
Symbol = _worldPacket.ReadInt8(); Symbol = _worldPacket.ReadInt8();
} }
public sbyte PartyIndex { get; set; } public sbyte PartyIndex;
public ObjectGuid Target { get; set; } public ObjectGuid Target;
public sbyte Symbol { get; set; } public sbyte Symbol;
} }
class SendRaidTargetUpdateSingle : ServerPacket class SendRaidTargetUpdateSingle : ServerPacket
@@ -523,10 +523,10 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(ChangedBy); _worldPacket.WritePackedGuid(ChangedBy);
} }
public sbyte PartyIndex { get; set; } public sbyte PartyIndex;
public ObjectGuid Target { get; set; } public ObjectGuid Target;
public ObjectGuid ChangedBy { get; set; } public ObjectGuid ChangedBy;
public sbyte Symbol { get; set; } public sbyte Symbol;
} }
class SendRaidTargetUpdateAll : ServerPacket class SendRaidTargetUpdateAll : ServerPacket
@@ -546,8 +546,8 @@ namespace Game.Network.Packets
} }
} }
public sbyte PartyIndex { get; set; } public sbyte PartyIndex;
public Dictionary<byte, ObjectGuid> TargetIcons { get; set; } = new Dictionary<byte, ObjectGuid>(); public Dictionary<byte, ObjectGuid> TargetIcons = new Dictionary<byte, ObjectGuid>();
} }
class ConvertRaid : ClientPacket class ConvertRaid : ClientPacket
@@ -559,7 +559,7 @@ namespace Game.Network.Packets
Raid = _worldPacket.HasBit(); Raid = _worldPacket.HasBit();
} }
public bool Raid { get; set; } public bool Raid;
} }
class RequestPartyJoinUpdates : ClientPacket class RequestPartyJoinUpdates : ClientPacket
@@ -571,7 +571,7 @@ namespace Game.Network.Packets
PartyIndex = _worldPacket.ReadInt8(); PartyIndex = _worldPacket.ReadInt8();
} }
public sbyte PartyIndex { get; set; } public sbyte PartyIndex;
} }
class SetAssistantLeader : ClientPacket class SetAssistantLeader : ClientPacket
@@ -585,9 +585,9 @@ namespace Game.Network.Packets
Apply = _worldPacket.HasBit(); Apply = _worldPacket.HasBit();
} }
public ObjectGuid Target { get; set; } public ObjectGuid Target;
public sbyte PartyIndex { get; set; } public sbyte PartyIndex;
public bool Apply { get; set; } public bool Apply;
} }
class SetPartyAssignment : ClientPacket class SetPartyAssignment : ClientPacket
@@ -602,10 +602,10 @@ namespace Game.Network.Packets
Set = _worldPacket.HasBit(); Set = _worldPacket.HasBit();
} }
public byte Assignment { get; set; } public byte Assignment;
public byte PartyIndex { get; set; } public byte PartyIndex;
public ObjectGuid Target { get; set; } public ObjectGuid Target;
public bool Set { get; set; } public bool Set;
} }
class DoReadyCheck : ClientPacket class DoReadyCheck : ClientPacket
@@ -617,7 +617,7 @@ namespace Game.Network.Packets
PartyIndex = _worldPacket.ReadInt8(); PartyIndex = _worldPacket.ReadInt8();
} }
public sbyte PartyIndex { get; set; } public sbyte PartyIndex;
} }
class ReadyCheckStarted : ServerPacket class ReadyCheckStarted : ServerPacket
@@ -632,10 +632,10 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(Duration); _worldPacket.WriteUInt32(Duration);
} }
public sbyte PartyIndex { get; set; } public sbyte PartyIndex;
public ObjectGuid PartyGUID { get; set; } public ObjectGuid PartyGUID;
public ObjectGuid InitiatorGUID { get; set; } public ObjectGuid InitiatorGUID;
public uint Duration { get; set; } public uint Duration;
} }
class ReadyCheckResponseClient : ClientPacket class ReadyCheckResponseClient : ClientPacket
@@ -648,8 +648,8 @@ namespace Game.Network.Packets
IsReady = _worldPacket.HasBit(); IsReady = _worldPacket.HasBit();
} }
public sbyte PartyIndex { get; set; } public sbyte PartyIndex;
public bool IsReady { get; set; } public bool IsReady;
} }
class ReadyCheckResponse : ServerPacket class ReadyCheckResponse : ServerPacket
@@ -665,9 +665,9 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public ObjectGuid PartyGUID { get; set; } public ObjectGuid PartyGUID;
public ObjectGuid Player { get; set; } public ObjectGuid Player;
public bool IsReady { get; set; } public bool IsReady;
} }
class ReadyCheckCompleted : ServerPacket class ReadyCheckCompleted : ServerPacket
@@ -680,8 +680,8 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(PartyGUID); _worldPacket.WritePackedGuid(PartyGUID);
} }
public sbyte PartyIndex { get; set; } public sbyte PartyIndex;
public ObjectGuid PartyGUID { get; set; } public ObjectGuid PartyGUID;
} }
class RequestRaidInfo : ClientPacket class RequestRaidInfo : ClientPacket
@@ -700,7 +700,7 @@ namespace Game.Network.Packets
PassOnLoot = _worldPacket.HasBit(); PassOnLoot = _worldPacket.HasBit();
} }
public bool PassOnLoot { get; set; } public bool PassOnLoot;
} }
class InitiateRolePoll : ClientPacket class InitiateRolePoll : ClientPacket
@@ -712,7 +712,7 @@ namespace Game.Network.Packets
PartyIndex = _worldPacket.ReadInt8(); PartyIndex = _worldPacket.ReadInt8();
} }
public sbyte PartyIndex { get; set; } public sbyte PartyIndex;
} }
class RolePollInform : ServerPacket class RolePollInform : ServerPacket
@@ -725,8 +725,8 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(From); _worldPacket.WritePackedGuid(From);
} }
public sbyte PartyIndex { get; set; } public sbyte PartyIndex;
public ObjectGuid From { get; set; } public ObjectGuid From;
} }
class GroupNewLeader : ServerPacket class GroupNewLeader : ServerPacket
@@ -740,8 +740,8 @@ namespace Game.Network.Packets
_worldPacket.WriteString(Name); _worldPacket.WriteString(Name);
} }
public sbyte PartyIndex { get; set; } public sbyte PartyIndex;
public string Name { get; set; } public string Name;
} }
class PartyUpdate : ServerPacket class PartyUpdate : ServerPacket
@@ -776,17 +776,17 @@ namespace Game.Network.Packets
LfgInfos.Value.Write(_worldPacket); LfgInfos.Value.Write(_worldPacket);
} }
public GroupFlags PartyFlags { get; set; } public GroupFlags PartyFlags;
public byte PartyIndex { get; set; } public byte PartyIndex;
public GroupType PartyType { get; set; } public GroupType PartyType;
public ObjectGuid PartyGUID { get; set; } public ObjectGuid PartyGUID;
public ObjectGuid LeaderGUID { get; set; } public ObjectGuid LeaderGUID;
public int MyIndex { get; set; } public int MyIndex;
public int SequenceNum { get; set; } public int SequenceNum;
public List<PartyPlayerInfo> PlayerList { get; set; } = new List<PartyPlayerInfo>(); public List<PartyPlayerInfo> PlayerList = new List<PartyPlayerInfo>();
public Optional<PartyLFGInfo> LfgInfos; public Optional<PartyLFGInfo> LfgInfos;
public Optional<PartyLootSettings> LootSettings; public Optional<PartyLootSettings> LootSettings;
@@ -803,8 +803,8 @@ namespace Game.Network.Packets
EveryoneIsAssistant = _worldPacket.HasBit(); EveryoneIsAssistant = _worldPacket.HasBit();
} }
public sbyte PartyIndex { get; set; } public sbyte PartyIndex;
public bool EveryoneIsAssistant { get; set; } public bool EveryoneIsAssistant;
} }
class ChangeSubGroup : ClientPacket class ChangeSubGroup : ClientPacket
@@ -818,9 +818,9 @@ namespace Game.Network.Packets
NewSubGroup = _worldPacket.ReadUInt8(); NewSubGroup = _worldPacket.ReadUInt8();
} }
public ObjectGuid TargetGUID { get; set; } public ObjectGuid TargetGUID;
public sbyte PartyIndex { get; set; } public sbyte PartyIndex;
public byte NewSubGroup { get; set; } public byte NewSubGroup;
} }
class SwapSubGroups : ClientPacket class SwapSubGroups : ClientPacket
@@ -834,9 +834,9 @@ namespace Game.Network.Packets
SecondTarget = _worldPacket.ReadPackedGuid(); SecondTarget = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid FirstTarget { get; set; } public ObjectGuid FirstTarget;
public ObjectGuid SecondTarget { get; set; } public ObjectGuid SecondTarget;
public sbyte PartyIndex { get; set; } public sbyte PartyIndex;
} }
class ClearRaidMarker : ClientPacket class ClearRaidMarker : ClientPacket
@@ -848,7 +848,7 @@ namespace Game.Network.Packets
MarkerId = _worldPacket.ReadUInt8(); MarkerId = _worldPacket.ReadUInt8();
} }
public byte MarkerId { get; set; } public byte MarkerId;
} }
class RaidMarkersChanged : ServerPacket class RaidMarkersChanged : ServerPacket
@@ -871,10 +871,10 @@ namespace Game.Network.Packets
} }
} }
public sbyte PartyIndex { get; set; } public sbyte PartyIndex;
public uint ActiveMarkers { get; set; } public uint ActiveMarkers;
public List<RaidMarker> RaidMarkers { get; set; } = new List<RaidMarker>(); public List<RaidMarker> RaidMarkers = new List<RaidMarker>();
} }
class PartyKillLog : ServerPacket class PartyKillLog : ServerPacket
@@ -887,8 +887,8 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(Victim); _worldPacket.WritePackedGuid(Victim);
} }
public ObjectGuid Player { get; set; } public ObjectGuid Player;
public ObjectGuid Victim { get; set; } public ObjectGuid Victim;
} }
//Structs //Structs
@@ -900,8 +900,8 @@ namespace Game.Network.Packets
data.WriteUInt16(Id); data.WriteUInt16(Id);
} }
public ushort Flags { get; set; } public ushort Flags;
public ushort Id { get; set; } public ushort Id;
} }
class PartyMemberPhaseStates class PartyMemberPhaseStates
@@ -916,9 +916,9 @@ namespace Game.Network.Packets
phase.Write(data); phase.Write(data);
} }
public int PhaseShiftFlags { get; set; } public int PhaseShiftFlags;
public ObjectGuid PersonalGUID { get; set; } public ObjectGuid PersonalGUID;
public List<PartyMemberPhase> List { get; set; } = new List<PartyMemberPhase>(); public List<PartyMemberPhase> List = new List<PartyMemberPhase>();
} }
class PartyMemberAuraStates class PartyMemberAuraStates
@@ -933,10 +933,10 @@ namespace Game.Network.Packets
data.WriteFloat(points); data.WriteFloat(points);
} }
public int SpellID { get; set; } public int SpellID;
public byte Flags { get; set; } public byte Flags;
public uint ActiveFlags { get; set; } public uint ActiveFlags;
public List<float> Points { get; set; } = new List<float>(); public List<float> Points = new List<float>();
} }
class PartyMemberPetStats class PartyMemberPetStats
@@ -955,14 +955,14 @@ namespace Game.Network.Packets
data.WriteString(Name); data.WriteString(Name);
} }
public ObjectGuid GUID { get; set; } public ObjectGuid GUID;
public string Name { get; set; } public string Name;
public short ModelId { get; set; } public short ModelId;
public int CurrentHealth { get; set; } public int CurrentHealth;
public int MaxHealth { get; set; } public int MaxHealth;
public List<PartyMemberAuraStates> Auras { get; set; } = new List<PartyMemberAuraStates>(); public List<PartyMemberAuraStates> Auras = new List<PartyMemberAuraStates>();
} }
class PartyMemberStats class PartyMemberStats
@@ -1002,32 +1002,32 @@ namespace Game.Network.Packets
PetStats.Value.Write(data); PetStats.Value.Write(data);
} }
public ushort Level { get; set; } public ushort Level;
public GroupMemberOnlineStatus Status { get; set; } public GroupMemberOnlineStatus Status;
public int CurrentHealth { get; set; } public int CurrentHealth;
public int MaxHealth { get; set; } public int MaxHealth;
public byte PowerType { get; set; } public byte PowerType;
public ushort CurrentPower { get; set; } public ushort CurrentPower;
public ushort MaxPower { get; set; } public ushort MaxPower;
public ushort ZoneID { get; set; } public ushort ZoneID;
public short PositionX { get; set; } public short PositionX;
public short PositionY { get; set; } public short PositionY;
public short PositionZ { get; set; } public short PositionZ;
public int VehicleSeat { get; set; } public int VehicleSeat;
public PartyMemberPhaseStates Phases { get; set; } = new PartyMemberPhaseStates(); public PartyMemberPhaseStates Phases = new PartyMemberPhaseStates();
public List<PartyMemberAuraStates> Auras { get; set; } = new List<PartyMemberAuraStates>(); public List<PartyMemberAuraStates> Auras = new List<PartyMemberAuraStates>();
public Optional<PartyMemberPetStats> PetStats; public Optional<PartyMemberPetStats> PetStats;
public ushort PowerDisplayID { get; set; } public ushort PowerDisplayID;
public ushort SpecID { get; set; } public ushort SpecID;
public ushort WmoGroupID { get; set; } public ushort WmoGroupID;
public uint WmoDoodadPlacementID { get; set; } public uint WmoDoodadPlacementID;
public sbyte[] PartyType { get; set; } = new sbyte[2]; public sbyte[] PartyType = new sbyte[2];
} }
struct PartyPlayerInfo struct PartyPlayerInfo
@@ -1045,15 +1045,15 @@ namespace Game.Network.Packets
data.WriteString(Name); data.WriteString(Name);
} }
public ObjectGuid GUID { get; set; } public ObjectGuid GUID;
public string Name { get; set; } public string Name;
public byte Class { get; set; } public byte Class;
public GroupMemberOnlineStatus Status { get; set; } public GroupMemberOnlineStatus Status;
public byte Subgroup { get; set; } public byte Subgroup;
public byte Flags { get; set; } public byte Flags;
public byte RolesAssigned { get; set; } public byte RolesAssigned;
public bool FromSocialQueue { get; set; } public bool FromSocialQueue;
} }
struct PartyLFGInfo struct PartyLFGInfo
@@ -1073,16 +1073,16 @@ namespace Game.Network.Packets
data.FlushBits(); data.FlushBits();
} }
public byte MyFlags { get; set; } public byte MyFlags;
public uint Slot { get; set; } public uint Slot;
public byte BootCount { get; set; } public byte BootCount;
public uint MyRandomSlot { get; set; } public uint MyRandomSlot;
public bool Aborted { get; set; } public bool Aborted;
public byte MyPartialClear { get; set; } public byte MyPartialClear;
public float MyGearDiff { get; set; } public float MyGearDiff;
public byte MyStrangerCount { get; set; } public byte MyStrangerCount;
public byte MyKickVoteCount { get; set; } public byte MyKickVoteCount;
public bool MyFirstReward { get; set; } public bool MyFirstReward;
} }
struct PartyLootSettings struct PartyLootSettings
@@ -1094,9 +1094,9 @@ namespace Game.Network.Packets
data.WriteUInt8(Threshold); data.WriteUInt8(Threshold);
} }
public byte Method { get; set; } public byte Method;
public ObjectGuid LootMaster { get; set; } public ObjectGuid LootMaster;
public byte Threshold { get; set; } public byte Threshold;
} }
struct PartyDifficultySettings struct PartyDifficultySettings
@@ -1108,8 +1108,8 @@ namespace Game.Network.Packets
data.WriteUInt32(LegacyRaidDifficultyID); data.WriteUInt32(LegacyRaidDifficultyID);
} }
public uint DungeonDifficultyID { get; set; } public uint DungeonDifficultyID;
public uint RaidDifficultyID { get; set; } public uint RaidDifficultyID;
public uint LegacyRaidDifficultyID { get; set; } public uint LegacyRaidDifficultyID;
} }
} }
+58 -58
View File
@@ -31,7 +31,7 @@ namespace Game.Network.Packets
CritterGUID = _worldPacket.ReadPackedGuid(); CritterGUID = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid CritterGUID { get; set; } public ObjectGuid CritterGUID;
} }
class RequestPetInfo : ClientPacket class RequestPetInfo : ClientPacket
@@ -50,7 +50,7 @@ namespace Game.Network.Packets
Pet = _worldPacket.ReadPackedGuid(); Pet = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid Pet { get; set; } public ObjectGuid Pet;
} }
class PetStopAttack : ClientPacket class PetStopAttack : ClientPacket
@@ -62,7 +62,7 @@ namespace Game.Network.Packets
PetGUID = _worldPacket.ReadPackedGuid(); PetGUID = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid PetGUID { get; set; } public ObjectGuid PetGUID;
} }
class PetSpellAutocast : ClientPacket class PetSpellAutocast : ClientPacket
@@ -76,9 +76,9 @@ namespace Game.Network.Packets
AutocastEnabled = _worldPacket.HasBit(); AutocastEnabled = _worldPacket.HasBit();
} }
public ObjectGuid PetGUID { get; set; } public ObjectGuid PetGUID;
public uint SpellID { get; set; } public uint SpellID;
public bool AutocastEnabled { get; set; } public bool AutocastEnabled;
} }
public class PetSpells : ServerPacket public class PetSpells : ServerPacket
@@ -122,19 +122,19 @@ namespace Game.Network.Packets
} }
} }
public ObjectGuid PetGUID { get; set; } public ObjectGuid PetGUID;
public ushort CreatureFamily { get; set; } public ushort CreatureFamily;
public ushort Specialization { get; set; } public ushort Specialization;
public uint TimeLimit { get; set; } public uint TimeLimit;
public ReactStates ReactState { get; set; } public ReactStates ReactState;
public CommandStates CommandState { get; set; } public CommandStates CommandState;
public byte Flag { get; set; } public byte Flag;
public uint[] ActionButtons { get; set; } = new uint[10]; public uint[] ActionButtons = new uint[10];
public List<uint> Actions { get; set; } = new List<uint>(); public List<uint> Actions = new List<uint>();
public List<PetSpellCooldown> Cooldowns { get; set; } = new List<PetSpellCooldown>(); public List<PetSpellCooldown> Cooldowns = new List<PetSpellCooldown>();
public List<PetSpellHistory> SpellHistory { get; set; } = new List<PetSpellHistory>(); public List<PetSpellHistory> SpellHistory = new List<PetSpellHistory>();
} }
class PetStableList : ServerPacket class PetStableList : ServerPacket
@@ -160,8 +160,8 @@ namespace Game.Network.Packets
} }
} }
public ObjectGuid StableMaster { get; set; } public ObjectGuid StableMaster;
public List<PetStableInfo> Pets { get; set; } = new List<PetStableInfo>(); public List<PetStableInfo> Pets = new List<PetStableInfo>();
} }
class PetLearnedSpells : ServerPacket class PetLearnedSpells : ServerPacket
@@ -175,7 +175,7 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(spell); _worldPacket.WriteUInt32(spell);
} }
public List<uint> Spells { get; set; } = new List<uint>(); public List<uint> Spells = new List<uint>();
} }
class PetUnlearnedSpells : ServerPacket class PetUnlearnedSpells : ServerPacket
@@ -189,7 +189,7 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(spell); _worldPacket.WriteUInt32(spell);
} }
public List<uint> Spells { get; set; } = new List<uint>(); public List<uint> Spells = new List<uint>();
} }
class PetNameInvalid : ServerPacket class PetNameInvalid : ServerPacket
@@ -222,7 +222,7 @@ namespace Game.Network.Packets
} }
public PetRenameData RenameData; public PetRenameData RenameData;
public PetNameInvalidReason Result { get; set; } public PetNameInvalidReason Result;
} }
class PetRename : ClientPacket class PetRename : ClientPacket
@@ -268,10 +268,10 @@ namespace Game.Network.Packets
ActionPosition = _worldPacket.ReadVector3(); ActionPosition = _worldPacket.ReadVector3();
} }
public ObjectGuid PetGUID { get; set; } public ObjectGuid PetGUID;
public uint Action { get; set; } public uint Action;
public ObjectGuid TargetGUID { get; set; } public ObjectGuid TargetGUID;
public Vector3 ActionPosition { get; set; } public Vector3 ActionPosition;
} }
class PetSetAction : ClientPacket class PetSetAction : ClientPacket
@@ -286,9 +286,9 @@ namespace Game.Network.Packets
Action = _worldPacket.ReadUInt32(); Action = _worldPacket.ReadUInt32();
} }
public ObjectGuid PetGUID { get; set; } public ObjectGuid PetGUID;
public uint Index { get; set; } public uint Index;
public uint Action { get; set; } public uint Action;
} }
class PetActionSound : ServerPacket class PetActionSound : ServerPacket
@@ -301,8 +301,8 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(Action); _worldPacket.WriteUInt32(Action);
} }
public ObjectGuid UnitGUID { get; set; } public ObjectGuid UnitGUID;
public PetTalk Action { get; set; } public PetTalk Action;
} }
class PetActionFeedback : ServerPacket class PetActionFeedback : ServerPacket
@@ -315,8 +315,8 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt8(Response); _worldPacket.WriteUInt8(Response);
} }
public uint SpellID { get; set; } public uint SpellID;
public ActionFeedback Response { get; set; } public ActionFeedback Response;
} }
class PetCancelAura : ClientPacket class PetCancelAura : ClientPacket
@@ -329,8 +329,8 @@ namespace Game.Network.Packets
SpellID = _worldPacket.ReadUInt32(); SpellID = _worldPacket.ReadUInt32();
} }
public ObjectGuid PetGUID { get; set; } public ObjectGuid PetGUID;
public uint SpellID { get; set; } public uint SpellID;
} }
@@ -346,7 +346,7 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt8(Result); _worldPacket.WriteUInt8(Result);
} }
public byte Result { get; set; } public byte Result;
} }
class SetPetSpecialization : ServerPacket class SetPetSpecialization : ServerPacket
@@ -358,44 +358,44 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt16(SpecID); _worldPacket.WriteUInt16(SpecID);
} }
public ushort SpecID { get; set; } public ushort SpecID;
} }
//Structs //Structs
public class PetSpellCooldown public class PetSpellCooldown
{ {
public uint SpellID { get; set; } public uint SpellID;
public uint Duration { get; set; } public uint Duration;
public uint CategoryDuration { get; set; } public uint CategoryDuration;
public float ModRate { get; set; } = 1.0f; public float ModRate = 1.0f;
public ushort Category { get; set; } public ushort Category;
} }
public class PetSpellHistory public class PetSpellHistory
{ {
public uint CategoryID { get; set; } public uint CategoryID;
public uint RecoveryTime { get; set; } public uint RecoveryTime;
public float ChargeModRate { get; set; } = 1.0f; public float ChargeModRate = 1.0f;
public sbyte ConsumedCharges { get; set; } public sbyte ConsumedCharges;
} }
struct PetStableInfo struct PetStableInfo
{ {
public uint PetSlot { get; set; } public uint PetSlot;
public uint PetNumber { get; set; } public uint PetNumber;
public uint CreatureID { get; set; } public uint CreatureID;
public uint DisplayID { get; set; } public uint DisplayID;
public uint ExperienceLevel { get; set; } public uint ExperienceLevel;
public PetStableinfo PetFlags { get; set; } public PetStableinfo PetFlags;
public string PetName { get; set; } public string PetName;
} }
struct PetRenameData struct PetRenameData
{ {
public ObjectGuid PetGUID { get; set; } public ObjectGuid PetGUID;
public int PetNumber { get; set; } public int PetNumber;
public string NewName { get; set; } public string NewName;
public bool HasDeclinedNames { get; set; } public bool HasDeclinedNames;
public DeclinedName DeclinedNames { get; set; } public DeclinedName DeclinedNames;
} }
} }
+52 -52
View File
@@ -32,8 +32,8 @@ namespace Game.Network.Packets
ItemGUID = _worldPacket.ReadPackedGuid(); ItemGUID = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid ItemGUID { get; set; } public ObjectGuid ItemGUID;
public uint PetitionID { get; set; } = 0; public uint PetitionID = 0;
} }
public class QueryPetitionResponse : ServerPacket public class QueryPetitionResponse : ServerPacket
@@ -50,9 +50,9 @@ namespace Game.Network.Packets
Info.Write(_worldPacket); Info.Write(_worldPacket);
} }
public uint PetitionID { get; set; } = 0; public uint PetitionID = 0;
public bool Allow { get; set; } = false; public bool Allow = false;
public PetitionInfo Info { get; set; } public PetitionInfo Info;
} }
public class PetitionShowList : ClientPacket public class PetitionShowList : ClientPacket
@@ -64,7 +64,7 @@ namespace Game.Network.Packets
PetitionUnit = _worldPacket.ReadPackedGuid(); PetitionUnit = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid PetitionUnit { get; set; } public ObjectGuid PetitionUnit;
} }
public class ServerPetitionShowList : ServerPacket public class ServerPetitionShowList : ServerPacket
@@ -77,8 +77,8 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(Price); _worldPacket.WriteUInt32(Price);
} }
public ObjectGuid Unit { get; set; } public ObjectGuid Unit;
public uint Price { get; set; } = 0; public uint Price = 0;
} }
public class PetitionBuy : ClientPacket public class PetitionBuy : ClientPacket
@@ -93,8 +93,8 @@ namespace Game.Network.Packets
Title = _worldPacket.ReadString(titleLen); Title = _worldPacket.ReadString(titleLen);
} }
public ObjectGuid Unit { get; set; } public ObjectGuid Unit;
public string Title { get; set; } public string Title;
} }
public class PetitionShowSignatures : ClientPacket public class PetitionShowSignatures : ClientPacket
@@ -106,7 +106,7 @@ namespace Game.Network.Packets
Item = _worldPacket.ReadPackedGuid(); Item = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid Item { get; set; } public ObjectGuid Item;
} }
public class ServerPetitionShowSignatures : ServerPacket public class ServerPetitionShowSignatures : ServerPacket
@@ -131,16 +131,16 @@ namespace Game.Network.Packets
} }
} }
public ObjectGuid Item { get; set; } public ObjectGuid Item;
public ObjectGuid Owner { get; set; } public ObjectGuid Owner;
public ObjectGuid OwnerAccountID { get; set; } public ObjectGuid OwnerAccountID;
public int PetitionID { get; set; } = 0; public int PetitionID = 0;
public List<PetitionSignature> Signatures { get; set; } public List<PetitionSignature> Signatures;
public struct PetitionSignature public struct PetitionSignature
{ {
public ObjectGuid Signer { get; set; } public ObjectGuid Signer;
public int Choice { get; set; } public int Choice;
} }
} }
@@ -154,8 +154,8 @@ namespace Game.Network.Packets
Choice = _worldPacket.ReadUInt8(); Choice = _worldPacket.ReadUInt8();
} }
public ObjectGuid PetitionGUID { get; set; } public ObjectGuid PetitionGUID;
public byte Choice { get; set; } = 0; public byte Choice = 0;
} }
public class PetitionSignResults : ServerPacket public class PetitionSignResults : ServerPacket
@@ -171,9 +171,9 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public ObjectGuid Item { get; set; } public ObjectGuid Item;
public ObjectGuid Player { get; set; } public ObjectGuid Player;
public PetitionSigns Error { get; set; } = 0; public PetitionSigns Error = 0;
} }
public class PetitionAlreadySigned : ServerPacket public class PetitionAlreadySigned : ServerPacket
@@ -185,7 +185,7 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(SignerGUID); _worldPacket.WritePackedGuid(SignerGUID);
} }
public ObjectGuid SignerGUID { get; set; } public ObjectGuid SignerGUID;
} }
public class DeclinePetition : ClientPacket public class DeclinePetition : ClientPacket
@@ -197,7 +197,7 @@ namespace Game.Network.Packets
PetitionGUID = _worldPacket.ReadPackedGuid(); PetitionGUID = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid PetitionGUID { get; set; } public ObjectGuid PetitionGUID;
} }
public class TurnInPetition : ClientPacket public class TurnInPetition : ClientPacket
@@ -209,7 +209,7 @@ namespace Game.Network.Packets
Item = _worldPacket.ReadPackedGuid(); Item = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid Item { get; set; } public ObjectGuid Item;
} }
public class TurnInPetitionResult : ServerPacket public class TurnInPetitionResult : ServerPacket
@@ -222,7 +222,7 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public PetitionTurns Result { get; set; } = 0; // PetitionError public PetitionTurns Result = 0; // PetitionError
} }
public class OfferPetition : ClientPacket public class OfferPetition : ClientPacket
@@ -235,8 +235,8 @@ namespace Game.Network.Packets
TargetPlayer = _worldPacket.ReadPackedGuid(); TargetPlayer = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid TargetPlayer { get; set; } public ObjectGuid TargetPlayer;
public ObjectGuid ItemGUID { get; set; } public ObjectGuid ItemGUID;
} }
public class OfferPetitionError : ServerPacket public class OfferPetitionError : ServerPacket
@@ -248,7 +248,7 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(PlayerGUID); _worldPacket.WritePackedGuid(PlayerGUID);
} }
public ObjectGuid PlayerGUID { get; set; } public ObjectGuid PlayerGUID;
} }
public class PetitionRenameGuild : ClientPacket public class PetitionRenameGuild : ClientPacket
@@ -265,8 +265,8 @@ namespace Game.Network.Packets
NewGuildName = _worldPacket.ReadString(nameLen); NewGuildName = _worldPacket.ReadString(nameLen);
} }
public ObjectGuid PetitionGuid { get; set; } public ObjectGuid PetitionGuid;
public string NewGuildName { get; set; } public string NewGuildName;
} }
public class PetitionRenameGuildResponse : ServerPacket public class PetitionRenameGuildResponse : ServerPacket
@@ -283,8 +283,8 @@ namespace Game.Network.Packets
_worldPacket.WriteString(NewGuildName); _worldPacket.WriteString(NewGuildName);
} }
public ObjectGuid PetitionGuid { get; set; } public ObjectGuid PetitionGuid;
public string NewGuildName { get; set; } public string NewGuildName;
} }
public class PetitionInfo public class PetitionInfo
@@ -323,23 +323,23 @@ namespace Game.Network.Packets
data.WriteString(BodyText); data.WriteString(BodyText);
} }
public int PetitionID { get; set; } public int PetitionID;
public ObjectGuid Petitioner { get; set; } public ObjectGuid Petitioner;
public string Title { get; set; } public string Title;
public string BodyText { get; set; } public string BodyText;
public int MinSignatures { get; set; } public int MinSignatures;
public int MaxSignatures { get; set; } public int MaxSignatures;
public int DeadLine { get; set; } public int DeadLine;
public int IssueDate { get; set; } public int IssueDate;
public int AllowedGuildID { get; set; } public int AllowedGuildID;
public int AllowedClasses { get; set; } public int AllowedClasses;
public int AllowedRaces { get; set; } public int AllowedRaces;
public short AllowedGender { get; set; } public short AllowedGender;
public int AllowedMinLevel { get; set; } public int AllowedMinLevel;
public int AllowedMaxLevel { get; set; } public int AllowedMaxLevel;
public int NumChoices { get; set; } public int NumChoices;
public int StaticType { get; set; } public int StaticType;
public uint Muid { get; set; } = 0; public uint Muid = 0;
public StringArray Choicetext { get; set; } = new StringArray(10); public StringArray Choicetext = new StringArray(10);
} }
} }
+116 -116
View File
@@ -35,7 +35,7 @@ namespace Game.Network.Packets
Player = _worldPacket.ReadPackedGuid(); Player = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid Player { get; set; } public ObjectGuid Player;
} }
public class QueryPlayerNameResponse : ServerPacket public class QueryPlayerNameResponse : ServerPacket
@@ -54,9 +54,9 @@ namespace Game.Network.Packets
Data.Write(_worldPacket); Data.Write(_worldPacket);
} }
public ObjectGuid Player { get; set; } public ObjectGuid Player;
public ResponseCodes Result; // 0 - full packet, != 0 - only guid public ResponseCodes Result; // 0 - full packet, != 0 - only guid
public PlayerGuidLookupData Data { get; set; } public PlayerGuidLookupData Data;
} }
public class QueryCreature : ClientPacket public class QueryCreature : ClientPacket
@@ -68,7 +68,7 @@ namespace Game.Network.Packets
CreatureID = _worldPacket.ReadUInt32(); CreatureID = _worldPacket.ReadUInt32();
} }
public uint CreatureID { get; set; } public uint CreatureID;
} }
public class QueryCreatureResponse : ServerPacket public class QueryCreatureResponse : ServerPacket
@@ -138,9 +138,9 @@ namespace Game.Network.Packets
} }
} }
public bool Allow { get; set; } public bool Allow;
public CreatureStats Stats { get; set; } public CreatureStats Stats;
public uint CreatureID { get; set; } public uint CreatureID;
} }
public class QueryPageText : ClientPacket public class QueryPageText : ClientPacket
@@ -153,8 +153,8 @@ namespace Game.Network.Packets
ItemGUID = _worldPacket.ReadPackedGuid(); ItemGUID = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid ItemGUID { get; set; } public ObjectGuid ItemGUID;
public uint PageTextID { get; set; } public uint PageTextID;
} }
public class QueryPageTextResponse : ServerPacket public class QueryPageTextResponse : ServerPacket
@@ -175,9 +175,9 @@ namespace Game.Network.Packets
} }
} }
public uint PageTextID { get; set; } public uint PageTextID;
public bool Allow { get; set; } public bool Allow;
public List<PageTextInfo> Pages { get; set; } = new List<PageTextInfo>(); public List<PageTextInfo> Pages = new List<PageTextInfo>();
public struct PageTextInfo public struct PageTextInfo
{ {
@@ -193,10 +193,10 @@ namespace Game.Network.Packets
data.WriteString(Text); data.WriteString(Text);
} }
public uint ID { get; set; } public uint ID;
public uint NextPageID { get; set; } public uint NextPageID;
public int PlayerConditionID { get; set; } public int PlayerConditionID;
public byte Flags { get; set; } public byte Flags;
public string Text; public string Text;
} }
} }
@@ -211,8 +211,8 @@ namespace Game.Network.Packets
Guid = _worldPacket.ReadPackedGuid(); Guid = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
public uint TextID { get; set; } public uint TextID;
} }
public class QueryNPCTextResponse : ServerPacket public class QueryNPCTextResponse : ServerPacket
@@ -235,10 +235,10 @@ namespace Game.Network.Packets
} }
} }
public uint TextID { get; set; } public uint TextID;
public bool Allow { get; set; } public bool Allow;
public float[] Probabilities { get; set; } = new float[SharedConst.MaxNpcTextOptions]; public float[] Probabilities = new float[SharedConst.MaxNpcTextOptions];
public uint[] BroadcastTextID { get; set; } = new uint[SharedConst.MaxNpcTextOptions]; public uint[] BroadcastTextID = new uint[SharedConst.MaxNpcTextOptions];
} }
public class QueryGameObject : ClientPacket public class QueryGameObject : ClientPacket
@@ -251,8 +251,8 @@ namespace Game.Network.Packets
Guid = _worldPacket.ReadPackedGuid(); Guid = _worldPacket.ReadPackedGuid();
} }
public uint GameObjectID { get; set; } public uint GameObjectID;
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
} }
public class QueryGameObjectResponse : ServerPacket public class QueryGameObjectResponse : ServerPacket
@@ -294,9 +294,9 @@ namespace Game.Network.Packets
_worldPacket.WriteBytes(statsData); _worldPacket.WriteBytes(statsData);
} }
public uint GameObjectID { get; set; } public uint GameObjectID;
public bool Allow { get; set; } public bool Allow;
public GameObjectStats Stats { get; set; } public GameObjectStats Stats;
} }
public class QueryCorpseLocationFromClient : ClientPacket public class QueryCorpseLocationFromClient : ClientPacket
@@ -308,7 +308,7 @@ namespace Game.Network.Packets
Player = _worldPacket.ReadPackedGuid(); Player = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid Player { get; set; } public ObjectGuid Player;
} }
public class CorpseLocation : ServerPacket public class CorpseLocation : ServerPacket
@@ -327,12 +327,12 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(Transport); _worldPacket.WritePackedGuid(Transport);
} }
public ObjectGuid Player { get; set; } public ObjectGuid Player;
public ObjectGuid Transport { get; set; } public ObjectGuid Transport;
public Vector3 Position { get; set; } public Vector3 Position;
public int ActualMapID { get; set; } public int ActualMapID;
public int MapID { get; set; } public int MapID;
public bool Valid { get; set; } public bool Valid;
} }
public class QueryCorpseTransport : ClientPacket public class QueryCorpseTransport : ClientPacket
@@ -345,8 +345,8 @@ namespace Game.Network.Packets
Transport = _worldPacket.ReadPackedGuid(); Transport = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid Player { get; set; } public ObjectGuid Player;
public ObjectGuid Transport { get; set; } public ObjectGuid Transport;
} }
public class CorpseTransportQuery : ServerPacket public class CorpseTransportQuery : ServerPacket
@@ -360,9 +360,9 @@ namespace Game.Network.Packets
_worldPacket.WriteFloat(Facing); _worldPacket.WriteFloat(Facing);
} }
public ObjectGuid Player { get; set; } public ObjectGuid Player;
public Vector3 Position { get; set; } public Vector3 Position;
public float Facing { get; set; } public float Facing;
} }
public class QueryTime : ClientPacket public class QueryTime : ClientPacket
@@ -381,7 +381,7 @@ namespace Game.Network.Packets
_worldPacket.WriteInt32(CurrentTime); _worldPacket.WriteInt32(CurrentTime);
} }
public long CurrentTime { get; set; } public long CurrentTime;
} }
public class QuestPOIQuery : ClientPacket public class QuestPOIQuery : ClientPacket
@@ -396,8 +396,8 @@ namespace Game.Network.Packets
MissingQuestPOIs[i] = _worldPacket.ReadUInt32(); MissingQuestPOIs[i] = _worldPacket.ReadUInt32();
} }
public int MissingQuestCount { get; set; } public int MissingQuestCount;
public uint[] MissingQuestPOIs { get; set; } = new uint[50]; public uint[] MissingQuestPOIs = new uint[50];
} }
public class QuestPOIQueryResponse : ServerPacket public class QuestPOIQueryResponse : ServerPacket
@@ -440,7 +440,7 @@ namespace Game.Network.Packets
} }
} }
public List<QuestPOIData> QuestPOIDataStats { get; set; } = new List<QuestPOIData>(); public List<QuestPOIData> QuestPOIDataStats = new List<QuestPOIData>();
} }
class QueryQuestCompletionNPCs : ClientPacket class QueryQuestCompletionNPCs : ClientPacket
@@ -456,7 +456,7 @@ namespace Game.Network.Packets
QuestCompletionNPCs[i] = _worldPacket.ReadUInt32(); QuestCompletionNPCs[i] = _worldPacket.ReadUInt32();
} }
public uint[] QuestCompletionNPCs { get; set; } public uint[] QuestCompletionNPCs;
} }
class QuestCompletionNPCResponse : ServerPacket class QuestCompletionNPCResponse : ServerPacket
@@ -476,7 +476,7 @@ namespace Game.Network.Packets
} }
} }
public List<QuestCompletionNPC> QuestCompletionNPCs { get; set; } = new List<QuestCompletionNPC>(); public List<QuestCompletionNPC> QuestCompletionNPCs = new List<QuestCompletionNPC>();
} }
class QueryPetName : ClientPacket class QueryPetName : ClientPacket
@@ -488,7 +488,7 @@ namespace Game.Network.Packets
UnitGUID = _worldPacket.ReadPackedGuid(); UnitGUID = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid UnitGUID { get; set; } public ObjectGuid UnitGUID;
} }
class QueryPetNameResponse : ServerPacket class QueryPetNameResponse : ServerPacket
@@ -518,13 +518,13 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public ObjectGuid UnitGUID { get; set; } public ObjectGuid UnitGUID;
public bool Allow { get; set; } public bool Allow;
public bool HasDeclined { get; set; } public bool HasDeclined;
public DeclinedName DeclinedNames { get; set; } = new DeclinedName(); public DeclinedName DeclinedNames = new DeclinedName();
public uint Timestamp { get; set; } public uint Timestamp;
public string Name { get; set; } = ""; public string Name = "";
} }
class ItemTextQuery : ClientPacket class ItemTextQuery : ClientPacket
@@ -536,7 +536,7 @@ namespace Game.Network.Packets
Id = _worldPacket.ReadPackedGuid(); Id = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid Id { get; set; } public ObjectGuid Id;
} }
class QueryItemTextResponse : ServerPacket class QueryItemTextResponse : ServerPacket
@@ -553,9 +553,9 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(Id); _worldPacket.WritePackedGuid(Id);
} }
public ObjectGuid Id { get; set; } public ObjectGuid Id;
public bool Valid { get; set; } public bool Valid;
public string Text { get; set; } public string Text;
} }
class QueryRealmName : ClientPacket class QueryRealmName : ClientPacket
@@ -567,7 +567,7 @@ namespace Game.Network.Packets
VirtualRealmAddress = _worldPacket.ReadUInt32(); VirtualRealmAddress = _worldPacket.ReadUInt32();
} }
public uint VirtualRealmAddress { get; set; } public uint VirtualRealmAddress;
} }
class RealmQueryResponse : ServerPacket class RealmQueryResponse : ServerPacket
@@ -582,8 +582,8 @@ namespace Game.Network.Packets
NameInfo.Write(_worldPacket); NameInfo.Write(_worldPacket);
} }
public uint VirtualRealmAddress { get; set; } public uint VirtualRealmAddress;
public byte LookupState { get; set; } public byte LookupState;
public VirtualRealmNameInfo NameInfo; public VirtualRealmNameInfo NameInfo;
} }
@@ -603,8 +603,8 @@ namespace Game.Network.Packets
data.WriteUInt32(NativeRealmAddress.Value); data.WriteUInt32(NativeRealmAddress.Value);
} }
public Optional<uint> VirtualRealmAddress { get; set; } = new Optional<uint>(); // current realm (?) (identifier made from the Index, BattleGroup and Region) public Optional<uint> VirtualRealmAddress = new Optional<uint>(); // current realm (?) (identifier made from the Index, BattleGroup and Region)
public Optional<uint> NativeRealmAddress { get; set; } = new Optional<uint>(); // original realm (?) (identifier made from the Index, BattleGroup and Region) public Optional<uint> NativeRealmAddress = new Optional<uint>(); // original realm (?) (identifier made from the Index, BattleGroup and Region)
} }
public class PlayerGuidLookupData public class PlayerGuidLookupData
@@ -675,17 +675,17 @@ namespace Game.Network.Packets
data.WriteString(Name); data.WriteString(Name);
} }
public bool IsDeleted { get; set; } public bool IsDeleted;
public ObjectGuid AccountID { get; set; } public ObjectGuid AccountID;
public ObjectGuid BnetAccountID { get; set; } public ObjectGuid BnetAccountID;
public ObjectGuid GuidActual { get; set; } public ObjectGuid GuidActual;
public string Name { get; set; } = ""; public string Name = "";
public uint VirtualRealmAddress { get; set; } public uint VirtualRealmAddress;
public Race RaceID { get; set; } = Race.None; public Race RaceID = Race.None;
public Gender Sex { get; set; } = Gender.None; public Gender Sex = Gender.None;
public Class ClassID { get; set; } = Class.None; public Class ClassID = Class.None;
public byte Level { get; set; } public byte Level;
public DeclinedName DeclinedNames { get; set; } = new DeclinedName(); public DeclinedName DeclinedNames = new DeclinedName();
} }
public class CreatureStats public class CreatureStats
@@ -693,42 +693,42 @@ namespace Game.Network.Packets
public string Title = ""; public string Title = "";
public string TitleAlt = ""; public string TitleAlt = "";
public string CursorName = ""; public string CursorName = "";
public int CreatureType { get; set; } public int CreatureType;
public int CreatureFamily { get; set; } public int CreatureFamily;
public int Classification { get; set; } public int Classification;
public float HpMulti { get; set; } public float HpMulti;
public float EnergyMulti { get; set; } public float EnergyMulti;
public bool Leader { get; set; } public bool Leader;
public List<uint> QuestItems { get; set; } = new List<uint>(); public List<uint> QuestItems = new List<uint>();
public uint CreatureMovementInfoID { get; set; } public uint CreatureMovementInfoID;
public int HealthScalingExpansion { get; set; } public int HealthScalingExpansion;
public uint RequiredExpansion { get; set; } public uint RequiredExpansion;
public uint VignetteID { get; set; } public uint VignetteID;
public uint[] Flags { get; set; } = new uint[2]; public uint[] Flags = new uint[2];
public uint[] ProxyCreatureID { get; set; } = new uint[SharedConst.MaxCreatureKillCredit]; public uint[] ProxyCreatureID = new uint[SharedConst.MaxCreatureKillCredit];
public uint[] CreatureDisplayID { get; set; } = new uint[SharedConst.MaxCreatureModelIds]; public uint[] CreatureDisplayID = new uint[SharedConst.MaxCreatureModelIds];
public StringArray Name { get; set; } = new StringArray(SharedConst.MaxCreatureNames); public StringArray Name = new StringArray(SharedConst.MaxCreatureNames);
public StringArray NameAlt { get; set; } = new StringArray(SharedConst.MaxCreatureNames); public StringArray NameAlt = new StringArray(SharedConst.MaxCreatureNames);
} }
public struct DBQueryRecord public struct DBQueryRecord
{ {
public ObjectGuid GUID { get; set; } public ObjectGuid GUID;
public uint RecordID { get; set; } public uint RecordID;
} }
public class GameObjectStats public class GameObjectStats
{ {
public string[] Name { get; set; } = new string[4]; public string[] Name = new string[4];
public string IconName; public string IconName;
public string CastBarCaption; public string CastBarCaption;
public string UnkString; public string UnkString;
public uint Type { get; set; } public uint Type;
public uint DisplayID { get; set; } public uint DisplayID;
public int[] Data { get; set; } = new int[33]; public int[] Data = new int[33];
public float Size { get; set; } public float Size;
public List<int> QuestItems { get; set; } = new List<int>(); public List<int> QuestItems = new List<int>();
public uint RequiredLevel { get; set; } public uint RequiredLevel;
} }
public struct QuestPOIBlobPoint public struct QuestPOIBlobPoint
@@ -739,36 +739,36 @@ namespace Game.Network.Packets
Y = y; Y = y;
} }
public int X { get; set; } public int X;
public int Y { get; set; } public int Y;
} }
public class QuestPOIBlobData public class QuestPOIBlobData
{ {
public int BlobIndex { get; set; } public int BlobIndex;
public int ObjectiveIndex { get; set; } public int ObjectiveIndex;
public int QuestObjectiveID { get; set; } public int QuestObjectiveID;
public int QuestObjectID { get; set; } public int QuestObjectID;
public int MapID { get; set; } public int MapID;
public int WorldMapAreaID { get; set; } public int WorldMapAreaID;
public int Floor { get; set; } public int Floor;
public int Priority { get; set; } public int Priority;
public int Flags { get; set; } public int Flags;
public int WorldEffectID { get; set; } public int WorldEffectID;
public int PlayerConditionID { get; set; } public int PlayerConditionID;
public int UnkWoD1 { get; set; } public int UnkWoD1;
public List<QuestPOIBlobPoint> QuestPOIBlobPointStats { get; set; } = new List<QuestPOIBlobPoint>(); public List<QuestPOIBlobPoint> QuestPOIBlobPointStats = new List<QuestPOIBlobPoint>();
} }
public class QuestPOIData public class QuestPOIData
{ {
public uint QuestID { get; set; } public uint QuestID;
public List<QuestPOIBlobData> QuestPOIBlobDataStats { get; set; } = new List<QuestPOIBlobData>(); public List<QuestPOIBlobData> QuestPOIBlobDataStats = new List<QuestPOIBlobData>();
} }
class QuestCompletionNPC class QuestCompletionNPC
{ {
public uint QuestID { get; set; } public uint QuestID;
public List<uint> NPCs { get; set; } = new List<uint>(); public List<uint> NPCs = new List<uint>();
} }
} }
+206 -206
View File
@@ -30,7 +30,7 @@ namespace Game.Network.Packets
QuestGiverGUID = _worldPacket.ReadPackedGuid(); QuestGiverGUID = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid QuestGiverGUID { get; set; } public ObjectGuid QuestGiverGUID;
} }
public class QuestGiverStatusMultipleQuery : ClientPacket public class QuestGiverStatusMultipleQuery : ClientPacket
@@ -53,7 +53,7 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(QuestGiver.Status); _worldPacket.WriteUInt32(QuestGiver.Status);
} }
public QuestGiverInfo QuestGiver { get; set; } public QuestGiverInfo QuestGiver;
} }
public class QuestGiverStatusMultiple : ServerPacket public class QuestGiverStatusMultiple : ServerPacket
@@ -70,7 +70,7 @@ namespace Game.Network.Packets
} }
} }
public List<QuestGiverInfo> QuestGiver { get; set; } = new List<QuestGiverInfo>(); public List<QuestGiverInfo> QuestGiver = new List<QuestGiverInfo>();
} }
public class QuestGiverHello : ClientPacket public class QuestGiverHello : ClientPacket
@@ -82,7 +82,7 @@ namespace Game.Network.Packets
QuestGiverGUID = _worldPacket.ReadPackedGuid(); QuestGiverGUID = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid QuestGiverGUID { get; set; } public ObjectGuid QuestGiverGUID;
} }
public class QueryQuestInfo : ClientPacket public class QueryQuestInfo : ClientPacket
@@ -95,8 +95,8 @@ namespace Game.Network.Packets
QuestGiver = _worldPacket.ReadPackedGuid(); QuestGiver = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid QuestGiver { get; set; } public ObjectGuid QuestGiver;
public uint QuestID { get; set; } public uint QuestID;
} }
public class QueryQuestInfoResponse : ServerPacket public class QueryQuestInfoResponse : ServerPacket
@@ -240,9 +240,9 @@ namespace Game.Network.Packets
} }
} }
public bool Allow { get; set; } public bool Allow;
public QuestInfo Info { get; set; } = new QuestInfo(); public QuestInfo Info = new QuestInfo();
public uint QuestID { get; set; } public uint QuestID;
} }
public class QuestUpdateAddCredit : ServerPacket public class QuestUpdateAddCredit : ServerPacket
@@ -259,12 +259,12 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt8(ObjectiveType); _worldPacket.WriteUInt8(ObjectiveType);
} }
public ObjectGuid VictimGUID { get; set; } public ObjectGuid VictimGUID;
public int ObjectID { get; set; } public int ObjectID;
public uint QuestID { get; set; } public uint QuestID;
public ushort Count { get; set; } public ushort Count;
public ushort Required { get; set; } public ushort Required;
public byte ObjectiveType { get; set; } public byte ObjectiveType;
} }
class QuestUpdateAddCreditSimple : ServerPacket class QuestUpdateAddCreditSimple : ServerPacket
@@ -278,9 +278,9 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt8(ObjectiveType); _worldPacket.WriteUInt8(ObjectiveType);
} }
public uint QuestID { get; set; } public uint QuestID;
public int ObjectID { get; set; } public int ObjectID;
public QuestObjectiveType ObjectiveType { get; set; } public QuestObjectiveType ObjectiveType;
} }
class QuestUpdateAddPvPCredit : ServerPacket class QuestUpdateAddPvPCredit : ServerPacket
@@ -293,8 +293,8 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt16(Count); _worldPacket.WriteUInt16(Count);
} }
public uint QuestID { get; set; } public uint QuestID;
public ushort Count { get; set; } public ushort Count;
} }
public class QuestGiverOfferRewardMessage : ServerPacket public class QuestGiverOfferRewardMessage : ServerPacket
@@ -323,16 +323,16 @@ namespace Game.Network.Packets
_worldPacket.WriteString(PortraitTurnInName); _worldPacket.WriteString(PortraitTurnInName);
} }
public uint PortraitTurnIn { get; set; } public uint PortraitTurnIn;
public uint PortraitGiver { get; set; } public uint PortraitGiver;
public string QuestTitle = ""; public string QuestTitle = "";
public string RewardText = ""; public string RewardText = "";
public string PortraitGiverText = ""; public string PortraitGiverText = "";
public string PortraitGiverName = ""; public string PortraitGiverName = "";
public string PortraitTurnInText = ""; public string PortraitTurnInText = "";
public string PortraitTurnInName = ""; public string PortraitTurnInName = "";
public QuestGiverOfferReward QuestData { get; set; } public QuestGiverOfferReward QuestData;
public uint QuestPackageID { get; set; } public uint QuestPackageID;
} }
public class QuestGiverChooseReward : ClientPacket public class QuestGiverChooseReward : ClientPacket
@@ -346,9 +346,9 @@ namespace Game.Network.Packets
ItemChoiceID = _worldPacket.ReadUInt32(); ItemChoiceID = _worldPacket.ReadUInt32();
} }
public ObjectGuid QuestGiverGUID { get; set; } public ObjectGuid QuestGiverGUID;
public uint QuestID { get; set; } public uint QuestID;
public uint ItemChoiceID { get; set; } public uint ItemChoiceID;
} }
public class QuestGiverQuestComplete : ServerPacket public class QuestGiverQuestComplete : ServerPacket
@@ -371,16 +371,16 @@ namespace Game.Network.Packets
ItemReward.Write(_worldPacket); ItemReward.Write(_worldPacket);
} }
public uint QuestID { get; set; } public uint QuestID;
public uint XPReward { get; set; } public uint XPReward;
public long MoneyReward { get; set; } public long MoneyReward;
public uint SkillLineIDReward { get; set; } public uint SkillLineIDReward;
public uint NumSkillUpsReward { get; set; } public uint NumSkillUpsReward;
public bool UseQuestReward { get; set; } public bool UseQuestReward;
public bool LaunchGossip { get; set; } public bool LaunchGossip;
public bool LaunchQuest { get; set; } public bool LaunchQuest;
public bool HideChatMessage { get; set; } public bool HideChatMessage;
public ItemInstance ItemReward { get; set; } = new ItemInstance(); public ItemInstance ItemReward = new ItemInstance();
} }
public class QuestGiverCompleteQuest : ClientPacket public class QuestGiverCompleteQuest : ClientPacket
@@ -395,7 +395,7 @@ namespace Game.Network.Packets
} }
public ObjectGuid QuestGiverGUID; // NPC / GameObject guid for normal quest completion. Player guid for self-completed quests public ObjectGuid QuestGiverGUID; // NPC / GameObject guid for normal quest completion. Player guid for self-completed quests
public uint QuestID { get; set; } public uint QuestID;
public bool FromScript; // 0 - standart complete quest mode with npc, 1 - auto-complete mode public bool FromScript; // 0 - standart complete quest mode with npc, 1 - auto-complete mode
} }
@@ -459,19 +459,19 @@ namespace Game.Network.Packets
_worldPacket.WriteString(PortraitTurnInName); _worldPacket.WriteString(PortraitTurnInName);
} }
public ObjectGuid QuestGiverGUID { get; set; } public ObjectGuid QuestGiverGUID;
public ObjectGuid InformUnit { get; set; } public ObjectGuid InformUnit;
public uint QuestID { get; set; } public uint QuestID;
public int QuestPackageID { get; set; } public int QuestPackageID;
public uint[] QuestFlags { get; set; } = new uint[2]; public uint[] QuestFlags = new uint[2];
public uint SuggestedPartyMembers { get; set; } public uint SuggestedPartyMembers;
public QuestRewards Rewards { get; set; } = new QuestRewards(); public QuestRewards Rewards = new QuestRewards();
public List<QuestObjectiveSimple> Objectives { get; set; } = new List<QuestObjectiveSimple>(); public List<QuestObjectiveSimple> Objectives = new List<QuestObjectiveSimple>();
public List<QuestDescEmote> DescEmotes { get; set; } = new List<QuestDescEmote>(); public List<QuestDescEmote> DescEmotes = new List<QuestDescEmote>();
public List<uint> LearnSpells { get; set; } = new List<uint>(); public List<uint> LearnSpells = new List<uint>();
public uint PortraitTurnIn { get; set; } public uint PortraitTurnIn;
public uint PortraitGiver { get; set; } public uint PortraitGiver;
public int QuestStartItemID { get; set; } public int QuestStartItemID;
public string PortraitGiverText = ""; public string PortraitGiverText = "";
public string PortraitGiverName = ""; public string PortraitGiverName = "";
public string PortraitTurnInText = ""; public string PortraitTurnInText = "";
@@ -479,9 +479,9 @@ namespace Game.Network.Packets
public string QuestTitle = ""; public string QuestTitle = "";
public string LogDescription = ""; public string LogDescription = "";
public string DescriptionText = ""; public string DescriptionText = "";
public bool DisplayPopup { get; set; } public bool DisplayPopup;
public bool StartCheat { get; set; } public bool StartCheat;
public bool AutoLaunched { get; set; } public bool AutoLaunched;
} }
public class QuestGiverRequestItems : ServerPacket public class QuestGiverRequestItems : ServerPacket
@@ -525,18 +525,18 @@ namespace Game.Network.Packets
_worldPacket.WriteString(CompletionText); _worldPacket.WriteString(CompletionText);
} }
public ObjectGuid QuestGiverGUID { get; set; } public ObjectGuid QuestGiverGUID;
public uint QuestGiverCreatureID { get; set; } public uint QuestGiverCreatureID;
public uint QuestID { get; set; } public uint QuestID;
public uint CompEmoteDelay { get; set; } public uint CompEmoteDelay;
public uint CompEmoteType { get; set; } public uint CompEmoteType;
public bool AutoLaunched { get; set; } public bool AutoLaunched;
public uint SuggestPartyMembers { get; set; } public uint SuggestPartyMembers;
public int MoneyToGet { get; set; } public int MoneyToGet;
public List<QuestObjectiveCollect> Collect { get; set; } = new List<QuestObjectiveCollect>(); public List<QuestObjectiveCollect> Collect = new List<QuestObjectiveCollect>();
public List<QuestCurrency> Currency { get; set; } = new List<QuestCurrency>(); public List<QuestCurrency> Currency = new List<QuestCurrency>();
public int StatusFlags { get; set; } public int StatusFlags;
public uint[] QuestFlags { get; set; } = new uint[2]; public uint[] QuestFlags = new uint[2];
public string QuestTitle = ""; public string QuestTitle = "";
public string CompletionText = ""; public string CompletionText = "";
} }
@@ -551,8 +551,8 @@ namespace Game.Network.Packets
QuestID = _worldPacket.ReadUInt32(); QuestID = _worldPacket.ReadUInt32();
} }
public ObjectGuid QuestGiverGUID { get; set; } public ObjectGuid QuestGiverGUID;
public uint QuestID { get; set; } public uint QuestID;
} }
public class QuestGiverQueryQuest : ClientPacket public class QuestGiverQueryQuest : ClientPacket
@@ -566,16 +566,16 @@ namespace Game.Network.Packets
RespondToGiver = _worldPacket.HasBit(); RespondToGiver = _worldPacket.HasBit();
} }
public ObjectGuid QuestGiverGUID { get; set; } public ObjectGuid QuestGiverGUID;
public uint QuestID { get; set; } public uint QuestID;
public bool RespondToGiver { get; set; } public bool RespondToGiver;
} }
public class QuestGiverAcceptQuest : ClientPacket public class QuestGiverAcceptQuest : ClientPacket
{ {
public ObjectGuid QuestGiverGUID { get; set; } public ObjectGuid QuestGiverGUID;
public uint QuestID { get; set; } public uint QuestID;
public bool StartCheat { get; set; } public bool StartCheat;
public QuestGiverAcceptQuest(WorldPacket packet) : base(packet) { } public QuestGiverAcceptQuest(WorldPacket packet) : base(packet) { }
@@ -596,7 +596,7 @@ namespace Game.Network.Packets
Entry = _worldPacket.ReadUInt8(); Entry = _worldPacket.ReadUInt8();
} }
public byte Entry { get; set; } public byte Entry;
} }
public class QuestGiverQuestListMessage : ServerPacket public class QuestGiverQuestListMessage : ServerPacket
@@ -630,11 +630,11 @@ namespace Game.Network.Packets
_worldPacket.WriteString(Greeting); _worldPacket.WriteString(Greeting);
} }
public ObjectGuid QuestGiverGUID { get; set; } public ObjectGuid QuestGiverGUID;
public uint GreetEmoteDelay { get; set; } public uint GreetEmoteDelay;
public uint GreetEmoteType { get; set; } public uint GreetEmoteType;
public List<GossipText> QuestDataText { get; set; } = new List<GossipText>(); public List<GossipText> QuestDataText = new List<GossipText>();
public string Greeting { get; set; } = ""; public string Greeting = "";
} }
class QuestUpdateComplete : ServerPacket class QuestUpdateComplete : ServerPacket
@@ -646,7 +646,7 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(QuestID); _worldPacket.WriteUInt32(QuestID);
} }
public uint QuestID { get; set; } public uint QuestID;
} }
class QuestConfirmAcceptResponse : ServerPacket class QuestConfirmAcceptResponse : ServerPacket
@@ -662,8 +662,8 @@ namespace Game.Network.Packets
_worldPacket.WriteString(QuestTitle); _worldPacket.WriteString(QuestTitle);
} }
public ObjectGuid InitiatedBy { get; set; } public ObjectGuid InitiatedBy;
public uint QuestID { get; set; } public uint QuestID;
public string QuestTitle; public string QuestTitle;
} }
@@ -676,7 +676,7 @@ namespace Game.Network.Packets
QuestID = _worldPacket.ReadUInt32(); QuestID = _worldPacket.ReadUInt32();
} }
public uint QuestID { get; set; } public uint QuestID;
} }
class QuestPushResultResponse : ServerPacket class QuestPushResultResponse : ServerPacket
@@ -689,8 +689,8 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt8(Result); _worldPacket.WriteUInt8(Result);
} }
public ObjectGuid SenderGUID { get; set; } public ObjectGuid SenderGUID;
public QuestPushReason Result { get; set; } public QuestPushReason Result;
} }
class QuestPushResult : ClientPacket class QuestPushResult : ClientPacket
@@ -704,9 +704,9 @@ namespace Game.Network.Packets
Result = (QuestPushReason)_worldPacket.ReadUInt8(); Result = (QuestPushReason)_worldPacket.ReadUInt8();
} }
public ObjectGuid SenderGUID { get; set; } public ObjectGuid SenderGUID;
public uint QuestID { get; set; } public uint QuestID;
public QuestPushReason Result { get; set; } public QuestPushReason Result;
} }
class QuestGiverInvalidQuest : ServerPacket class QuestGiverInvalidQuest : ServerPacket
@@ -725,10 +725,10 @@ namespace Game.Network.Packets
_worldPacket.WriteString(ReasonText); _worldPacket.WriteString(ReasonText);
} }
public QuestFailedReasons Reason { get; set; } public QuestFailedReasons Reason;
public int ContributionRewardID { get; set; } public int ContributionRewardID;
public bool SendErrorMessage { get; set; } public bool SendErrorMessage;
public string ReasonText { get; set; } = ""; public string ReasonText = "";
} }
class QuestUpdateFailedTimer : ServerPacket class QuestUpdateFailedTimer : ServerPacket
@@ -740,7 +740,7 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(QuestID); _worldPacket.WriteUInt32(QuestID);
} }
public uint QuestID { get; set; } public uint QuestID;
} }
class QuestGiverQuestFailed : ServerPacket class QuestGiverQuestFailed : ServerPacket
@@ -753,8 +753,8 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(Reason); _worldPacket.WriteUInt32(Reason);
} }
public uint QuestID { get; set; } public uint QuestID;
public InventoryResult Reason { get; set; } public InventoryResult Reason;
} }
class PushQuestToParty : ClientPacket class PushQuestToParty : ClientPacket
@@ -766,7 +766,7 @@ namespace Game.Network.Packets
QuestID = _worldPacket.ReadUInt32(); QuestID = _worldPacket.ReadUInt32();
} }
public uint QuestID { get; set; } public uint QuestID;
} }
class DailyQuestsReset : ServerPacket class DailyQuestsReset : ServerPacket
@@ -778,7 +778,7 @@ namespace Game.Network.Packets
_worldPacket.WriteInt32(Count); _worldPacket.WriteInt32(Count);
} }
public int Count { get; set; } public int Count;
} }
class QuestLogFull : ServerPacket class QuestLogFull : ServerPacket
@@ -826,15 +826,15 @@ namespace Game.Network.Packets
Status = status; Status = status;
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
public QuestGiverStatus Status { get; set; } = QuestGiverStatus.None; public QuestGiverStatus Status = QuestGiverStatus.None;
} }
public struct QuestInfoChoiceItem public struct QuestInfoChoiceItem
{ {
public uint ItemID { get; set; } public uint ItemID;
public uint Quantity { get; set; } public uint Quantity;
public uint DisplayID { get; set; } public uint DisplayID;
} }
public class QuestInfo public class QuestInfo
@@ -852,76 +852,76 @@ namespace Game.Network.Packets
QuestCompletionLog = ""; QuestCompletionLog = "";
} }
public uint QuestID { get; set; } public uint QuestID;
public int QuestType; // Accepted values: 0, 1 or 2. 0 == IsAutoComplete() (skip objectives/details) public int QuestType; // Accepted values: 0, 1 or 2. 0 == IsAutoComplete() (skip objectives/details)
public int QuestLevel; // may be -1, static data, in other cases must be used dynamic level: Player.GetQuestLevel (0 is not known, but assuming this is no longer valid for quest intended for client) public int QuestLevel; // may be -1, static data, in other cases must be used dynamic level: Player.GetQuestLevel (0 is not known, but assuming this is no longer valid for quest intended for client)
public uint QuestPackageID { get; set; } public uint QuestPackageID;
public int QuestMinLevel { get; set; } public int QuestMinLevel;
public int QuestSortID; // zone or sort to display in quest log public int QuestSortID; // zone or sort to display in quest log
public uint QuestInfoID { get; set; } public uint QuestInfoID;
public uint SuggestedGroupNum { get; set; } public uint SuggestedGroupNum;
public uint RewardNextQuest; // client will request this quest from NPC, if not. public uint RewardNextQuest; // client will request this quest from NPC, if not 0
public uint RewardXPDifficulty; // used for calculating rewarded experience public uint RewardXPDifficulty; // used for calculating rewarded experience
public float RewardXPMultiplier { get; set; } = 1.0f; public float RewardXPMultiplier = 1.0f;
public int RewardMoney; // reward money (below max lvl) public int RewardMoney; // reward money (below max lvl)
public uint RewardMoneyDifficulty { get; set; } public uint RewardMoneyDifficulty;
public float RewardMoneyMultiplier { get; set; } = 1.0f; public float RewardMoneyMultiplier = 1.0f;
public uint RewardBonusMoney { get; set; } public uint RewardBonusMoney;
public uint[] RewardDisplaySpell { get; set; } = new uint[SharedConst.QuestRewardDisplaySpellCount]; // reward spell, this spell will be displayed (icon) public uint[] RewardDisplaySpell = new uint[SharedConst.QuestRewardDisplaySpellCount]; // reward spell, this spell will be displayed (icon)
public uint RewardSpell { get; set; } public uint RewardSpell;
public uint RewardHonor { get; set; } public uint RewardHonor;
public float RewardKillHonor { get; set; } public float RewardKillHonor;
public int RewardArtifactXPDifficulty { get; set; } public int RewardArtifactXPDifficulty;
public float RewardArtifactXPMultiplier { get; set; } public float RewardArtifactXPMultiplier;
public int RewardArtifactCategoryID { get; set; } public int RewardArtifactCategoryID;
public uint StartItem { get; set; } public uint StartItem;
public uint Flags { get; set; } public uint Flags;
public uint FlagsEx { get; set; } public uint FlagsEx;
public uint POIContinent { get; set; } public uint POIContinent;
public float POIx { get; set; } public float POIx;
public float POIy { get; set; } public float POIy;
public uint POIPriority { get; set; } public uint POIPriority;
public int AllowableRaces { get; set; } = -1; public int AllowableRaces = -1;
public string LogTitle; public string LogTitle;
public string LogDescription; public string LogDescription;
public string QuestDescription; public string QuestDescription;
public string AreaDescription; public string AreaDescription;
public uint RewardTitle; // new 2.4.0, player gets this title (id from CharTitles) public uint RewardTitle; // new 2.4.0, player gets this title (id from CharTitles)
public int RewardArenaPoints { get; set; } public int RewardArenaPoints;
public uint RewardSkillLineID; // reward skill id public uint RewardSkillLineID; // reward skill id
public uint RewardNumSkillUps; // reward skill points public uint RewardNumSkillUps; // reward skill points
public uint PortraitGiver; // quest giver entry. public uint PortraitGiver; // quest giver entry ?
public uint PortraitTurnIn; // quest turn in entry. public uint PortraitTurnIn; // quest turn in entry ?
public string PortraitGiverText; public string PortraitGiverText;
public string PortraitGiverName; public string PortraitGiverName;
public string PortraitTurnInText; public string PortraitTurnInText;
public string PortraitTurnInName; public string PortraitTurnInName;
public string QuestCompletionLog; public string QuestCompletionLog;
public uint RewardFactionFlags; // rep mask (unsure on what it does) public uint RewardFactionFlags; // rep mask (unsure on what it does)
public uint AcceptedSoundKitID { get; set; } public uint AcceptedSoundKitID;
public uint CompleteSoundKitID { get; set; } public uint CompleteSoundKitID;
public uint AreaGroupID { get; set; } public uint AreaGroupID;
public uint TimeAllowed { get; set; } public uint TimeAllowed;
public int QuestRewardID { get; set; } public int QuestRewardID;
public int Expansion { get; set; } public int Expansion;
public List<QuestObjective> Objectives { get; set; } = new List<QuestObjective>(); public List<QuestObjective> Objectives = new List<QuestObjective>();
public uint[] RewardItems { get; set; } = new uint[SharedConst.QuestRewardItemCount]; public uint[] RewardItems = new uint[SharedConst.QuestRewardItemCount];
public uint[] RewardAmount { get; set; } = new uint[SharedConst.QuestRewardItemCount]; public uint[] RewardAmount = new uint[SharedConst.QuestRewardItemCount];
public int[] ItemDrop { get; set; } = new int[SharedConst.QuestItemDropCount]; public int[] ItemDrop = new int[SharedConst.QuestItemDropCount];
public int[] ItemDropQuantity { get; set; } = new int[SharedConst.QuestItemDropCount]; public int[] ItemDropQuantity = new int[SharedConst.QuestItemDropCount];
public QuestInfoChoiceItem[] UnfilteredChoiceItems { get; set; } = new QuestInfoChoiceItem[SharedConst.QuestRewardChoicesCount]; public QuestInfoChoiceItem[] UnfilteredChoiceItems = new QuestInfoChoiceItem[SharedConst.QuestRewardChoicesCount];
public uint[] RewardFactionID { get; set; } = new uint[SharedConst.QuestRewardReputationsCount]; public uint[] RewardFactionID = new uint[SharedConst.QuestRewardReputationsCount];
public int[] RewardFactionValue { get; set; } = new int[SharedConst.QuestRewardReputationsCount]; public int[] RewardFactionValue = new int[SharedConst.QuestRewardReputationsCount];
public int[] RewardFactionOverride { get; set; } = new int[SharedConst.QuestRewardReputationsCount]; public int[] RewardFactionOverride = new int[SharedConst.QuestRewardReputationsCount];
public int[] RewardFactionCapIn { get; set; } = new int[SharedConst.QuestRewardReputationsCount]; public int[] RewardFactionCapIn = new int[SharedConst.QuestRewardReputationsCount];
public uint[] RewardCurrencyID { get; set; } = new uint[SharedConst.QuestRewardCurrencyCount]; public uint[] RewardCurrencyID = new uint[SharedConst.QuestRewardCurrencyCount];
public uint[] RewardCurrencyQty { get; set; } = new uint[SharedConst.QuestRewardCurrencyCount]; public uint[] RewardCurrencyQty = new uint[SharedConst.QuestRewardCurrencyCount];
} }
public struct QuestChoiceItem public struct QuestChoiceItem
{ {
public uint ItemID { get; set; } public uint ItemID;
public uint Quantity { get; set; } public uint Quantity;
} }
public class QuestRewards public class QuestRewards
@@ -979,30 +979,30 @@ namespace Game.Network.Packets
data.FlushBits(); data.FlushBits();
} }
public uint ChoiceItemCount { get; set; } public uint ChoiceItemCount;
public uint ItemCount { get; set; } public uint ItemCount;
public uint Money { get; set; } public uint Money;
public uint XP { get; set; } public uint XP;
public uint ArtifactXP { get; set; } public uint ArtifactXP;
public uint ArtifactCategoryID { get; set; } public uint ArtifactCategoryID;
public uint Honor { get; set; } public uint Honor;
public uint Title { get; set; } public uint Title;
public uint FactionFlags { get; set; } public uint FactionFlags;
public int[] SpellCompletionDisplayID { get; set; } = new int[SharedConst.QuestRewardDisplaySpellCount]; public int[] SpellCompletionDisplayID = new int[SharedConst.QuestRewardDisplaySpellCount];
public uint SpellCompletionID { get; set; } public uint SpellCompletionID;
public uint SkillLineID { get; set; } public uint SkillLineID;
public uint NumSkillUps { get; set; } public uint NumSkillUps;
public uint RewardID { get; set; } public uint RewardID;
public QuestChoiceItem[] ChoiceItems { get; set; } = new QuestChoiceItem[SharedConst.QuestRewardChoicesCount]; public QuestChoiceItem[] ChoiceItems = new QuestChoiceItem[SharedConst.QuestRewardChoicesCount];
public uint[] ItemID { get; set; } = new uint[SharedConst.QuestRewardItemCount]; public uint[] ItemID = new uint[SharedConst.QuestRewardItemCount];
public uint[] ItemQty { get; set; } = new uint[SharedConst.QuestRewardItemCount]; public uint[] ItemQty = new uint[SharedConst.QuestRewardItemCount];
public uint[] FactionID { get; set; } = new uint[SharedConst.QuestRewardReputationsCount]; public uint[] FactionID = new uint[SharedConst.QuestRewardReputationsCount];
public int[] FactionValue { get; set; } = new int[SharedConst.QuestRewardReputationsCount]; public int[] FactionValue = new int[SharedConst.QuestRewardReputationsCount];
public int[] FactionOverride { get; set; } = new int[SharedConst.QuestRewardReputationsCount]; public int[] FactionOverride = new int[SharedConst.QuestRewardReputationsCount];
public int[] FactionCapIn { get; set; } = new int[SharedConst.QuestRewardReputationsCount]; public int[] FactionCapIn = new int[SharedConst.QuestRewardReputationsCount];
public uint[] CurrencyID { get; set; } = new uint[SharedConst.QuestRewardCurrencyCount]; public uint[] CurrencyID = new uint[SharedConst.QuestRewardCurrencyCount];
public uint[] CurrencyQty { get; set; } = new uint[SharedConst.QuestRewardCurrencyCount]; public uint[] CurrencyQty = new uint[SharedConst.QuestRewardCurrencyCount];
public bool IsBoostSpell { get; set; } public bool IsBoostSpell;
} }
public struct QuestDescEmote public struct QuestDescEmote
@@ -1013,8 +1013,8 @@ namespace Game.Network.Packets
Delay = delay; Delay = delay;
} }
public uint Type { get; set; } public uint Type;
public uint Delay { get; set; } public uint Delay;
} }
public class QuestGiverOfferReward public class QuestGiverOfferReward
@@ -1041,22 +1041,22 @@ namespace Game.Network.Packets
Rewards.Write(data); Rewards.Write(data);
} }
public ObjectGuid QuestGiverGUID { get; set; } public ObjectGuid QuestGiverGUID;
public uint QuestGiverCreatureID { get; set; } = 0; public uint QuestGiverCreatureID = 0;
public uint QuestID { get; set; } = 0; public uint QuestID = 0;
public bool AutoLaunched { get; set; } = false; public bool AutoLaunched = false;
public uint SuggestedPartyMembers { get; set; } = 0; public uint SuggestedPartyMembers = 0;
public QuestRewards Rewards { get; set; } = new QuestRewards(); public QuestRewards Rewards = new QuestRewards();
public List<QuestDescEmote> Emotes { get; set; } = new List<QuestDescEmote>(); public List<QuestDescEmote> Emotes = new List<QuestDescEmote>();
public uint[] QuestFlags { get; set; } = new uint[2]; // Flags and FlagsEx public uint[] QuestFlags = new uint[2]; // Flags and FlagsEx
} }
public struct QuestObjectiveSimple public struct QuestObjectiveSimple
{ {
public uint ID { get; set; } public uint ID;
public int ObjectID { get; set; } public int ObjectID;
public int Amount { get; set; } public int Amount;
public byte Type { get; set; } public byte Type;
} }
public struct QuestObjectiveCollect public struct QuestObjectiveCollect
@@ -1068,9 +1068,9 @@ namespace Game.Network.Packets
Flags = flags; Flags = flags;
} }
public uint ObjectID { get; set; } public uint ObjectID;
public int Amount { get; set; } public int Amount;
public uint Flags { get; set; } public uint Flags;
} }
public struct QuestCurrency public struct QuestCurrency
@@ -1081,8 +1081,8 @@ namespace Game.Network.Packets
Amount = amount; Amount = amount;
} }
public uint CurrencyID { get; set; } public uint CurrencyID;
public int Amount { get; set; } public int Amount;
} }
public struct GossipText public struct GossipText
@@ -1098,13 +1098,13 @@ namespace Game.Network.Packets
QuestTitle = questTitle; QuestTitle = questTitle;
} }
public uint QuestID { get; set; } public uint QuestID;
public uint QuestType { get; set; } public uint QuestType;
public uint QuestLevel { get; set; } public uint QuestLevel;
public uint QuestFlags { get; set; } public uint QuestFlags;
public uint QuestFlagsEx { get; set; } public uint QuestFlagsEx;
public bool Repeatable { get; set; } public bool Repeatable;
public string QuestTitle { get; set; } public string QuestTitle;
} }
struct WorldQuestUpdateInfo struct WorldQuestUpdateInfo
@@ -1118,11 +1118,11 @@ namespace Game.Network.Packets
Value = value; Value = value;
} }
public int LastUpdate { get; set; } public int LastUpdate;
public uint QuestID { get; set; } public uint QuestID;
public uint Timer { get; set; } public uint Timer;
// WorldState // WorldState
public int VariableID { get; set; } public int VariableID;
public int Value { get; set; } public int Value;
} }
} }
@@ -29,7 +29,7 @@ namespace Game.Network.Packets
Granter = _worldPacket.ReadPackedGuid(); Granter = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid Granter { get; set; } public ObjectGuid Granter;
} }
public class GrantLevel : ClientPacket public class GrantLevel : ClientPacket
@@ -41,7 +41,7 @@ namespace Game.Network.Packets
Target = _worldPacket.ReadPackedGuid(); Target = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid Target { get; set; } public ObjectGuid Target;
} }
public class ProposeLevelGrant : ServerPacket public class ProposeLevelGrant : ServerPacket
@@ -53,7 +53,7 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(Sender); _worldPacket.WritePackedGuid(Sender);
} }
public ObjectGuid Sender { get; set; } public ObjectGuid Sender;
} }
public class ReferAFriendFailure : ServerPacket public class ReferAFriendFailure : ServerPacket
@@ -69,7 +69,7 @@ namespace Game.Network.Packets
_worldPacket.WriteString(Str); _worldPacket.WriteString(Str);
} }
public string Str { get; set; } public string Str;
public ReferAFriendError Reason { get; set; } public ReferAFriendError Reason;
} }
} }
@@ -40,9 +40,9 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public int[] FactionStandings { get; set; } = new int[FactionCount]; public int[] FactionStandings = new int[FactionCount];
public bool[] FactionHasBonus { get; set; } = new bool[FactionCount]; ///< @todo: implement faction bonus public bool[] FactionHasBonus = new bool[FactionCount]; ///< @todo: implement faction bonus
public FactionFlags[] FactionFlags { get; set; } = new FactionFlags[FactionCount]; public FactionFlags[] FactionFlags = new FactionFlags[FactionCount];
} }
class RequestForcedReactions : ClientPacket class RequestForcedReactions : ClientPacket
@@ -65,7 +65,7 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public List<ForcedReaction> Reactions { get; set; } = new List<ForcedReaction>(); public List<ForcedReaction> Reactions = new List<ForcedReaction>();
} }
class SetFactionStanding : ServerPacket class SetFactionStanding : ServerPacket
@@ -85,10 +85,10 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public float ReferAFriendBonus { get; set; } public float ReferAFriendBonus;
public float BonusFromAchievementSystem { get; set; } public float BonusFromAchievementSystem;
public List<FactionStandingData> Faction { get; set; } = new List<FactionStandingData>(); public List<FactionStandingData> Faction = new List<FactionStandingData>();
public bool ShowVisual { get; set; } public bool ShowVisual;
} }
struct ForcedReaction struct ForcedReaction
@@ -99,8 +99,8 @@ namespace Game.Network.Packets
data.WriteInt32(Reaction); data.WriteInt32(Reaction);
} }
public int Faction { get; set; } public int Faction;
public int Reaction { get; set; } public int Reaction;
} }
struct FactionStandingData struct FactionStandingData
+23 -23
View File
@@ -54,17 +54,17 @@ namespace Game.Network.Packets
spell.Write(_worldPacket); spell.Write(_worldPacket);
} }
public int ScenarioID { get; set; } public int ScenarioID;
public int CurrentStep { get; set; } = -1; public int CurrentStep = -1;
public uint DifficultyID { get; set; } public uint DifficultyID;
public uint WaveCurrent { get; set; } public uint WaveCurrent;
public uint WaveMax { get; set; } public uint WaveMax;
public uint TimerDuration { get; set; } public uint TimerDuration;
public List<CriteriaProgressPkt> CriteriaProgress { get; set; } = new List<CriteriaProgressPkt>(); public List<CriteriaProgressPkt> CriteriaProgress = new List<CriteriaProgressPkt>();
public List<BonusObjectiveData> BonusObjectives { get; set; } = new List<BonusObjectiveData>(); public List<BonusObjectiveData> BonusObjectives = new List<BonusObjectiveData>();
public List<uint> PickedSteps { get; set; } = new List<uint>(); public List<uint> PickedSteps = new List<uint>();
public List<ScenarioSpellUpdate> Spells { get; set; } = new List<ScenarioSpellUpdate>(); public List<ScenarioSpellUpdate> Spells = new List<ScenarioSpellUpdate>();
public bool ScenarioComplete { get; set; } = false; public bool ScenarioComplete = false;
} }
class ScenarioProgressUpdate : ServerPacket class ScenarioProgressUpdate : ServerPacket
@@ -91,7 +91,7 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(ScenarioID); _worldPacket.WriteUInt32(ScenarioID);
} }
public uint ScenarioID { get; set; } public uint ScenarioID;
} }
class ScenarioBoot : ServerPacket class ScenarioBoot : ServerPacket
@@ -106,9 +106,9 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public int ScenarioID { get; set; } public int ScenarioID;
public int Unk1 { get; set; } public int Unk1;
public byte Unk2 { get; set; } public byte Unk2;
} }
class QueryScenarioPOI : ClientPacket class QueryScenarioPOI : ClientPacket
@@ -122,7 +122,7 @@ namespace Game.Network.Packets
MissingScenarioPOIs.Add(_worldPacket.ReadInt32()); MissingScenarioPOIs.Add(_worldPacket.ReadInt32());
} }
public Array<int> MissingScenarioPOIs { get; set; } = new Array<int>(35); public Array<int> MissingScenarioPOIs = new Array<int>(35);
} }
class ScenarioPOIs : ServerPacket class ScenarioPOIs : ServerPacket
@@ -159,7 +159,7 @@ namespace Game.Network.Packets
} }
} }
public List<ScenarioPOIData> ScenarioPOIDataStats { get; set; } = new List<ScenarioPOIData>(); public List<ScenarioPOIData> ScenarioPOIDataStats = new List<ScenarioPOIData>();
} }
struct BonusObjectiveData struct BonusObjectiveData
@@ -171,8 +171,8 @@ namespace Game.Network.Packets
data.FlushBits(); data.FlushBits();
} }
public int BonusObjectiveID { get; set; } public int BonusObjectiveID;
public bool ObjectiveComplete { get; set; } public bool ObjectiveComplete;
} }
class ScenarioSpellUpdate class ScenarioSpellUpdate
@@ -184,13 +184,13 @@ namespace Game.Network.Packets
data.FlushBits(); data.FlushBits();
} }
public uint SpellID { get; set; } public uint SpellID;
public bool Usable { get; set; } = true; public bool Usable = true;
} }
struct ScenarioPOIData struct ScenarioPOIData
{ {
public int CriteriaTreeID { get; set; } public int CriteriaTreeID;
public List<ScenarioPOI> ScenarioPOIs { get; set; } public List<ScenarioPOI> ScenarioPOIs;
} }
} }
+11 -11
View File
@@ -34,12 +34,12 @@ namespace Game.Network.Packets
_worldPacket.WriteXYZO(Location); _worldPacket.WriteXYZO(Location);
} }
public uint SceneID { get; set; } public uint SceneID;
public uint PlaybackFlags { get; set; } public uint PlaybackFlags;
public uint SceneInstanceID { get; set; } public uint SceneInstanceID;
public uint SceneScriptPackageID { get; set; } public uint SceneScriptPackageID;
public ObjectGuid TransportGUID { get; set; } public ObjectGuid TransportGUID;
public Position Location { get; set; } public Position Location;
} }
class CancelScene : ServerPacket class CancelScene : ServerPacket
@@ -51,7 +51,7 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(SceneInstanceID); _worldPacket.WriteUInt32(SceneInstanceID);
} }
public uint SceneInstanceID { get; set; } public uint SceneInstanceID;
} }
class SceneTriggerEvent : ClientPacket class SceneTriggerEvent : ClientPacket
@@ -65,8 +65,8 @@ namespace Game.Network.Packets
_Event = _worldPacket.ReadString(len); _Event = _worldPacket.ReadString(len);
} }
public uint SceneInstanceID { get; set; } public uint SceneInstanceID;
public string _Event { get; set; } public string _Event;
} }
class ScenePlaybackComplete : ClientPacket class ScenePlaybackComplete : ClientPacket
@@ -78,7 +78,7 @@ namespace Game.Network.Packets
SceneInstanceID = _worldPacket.ReadUInt32(); SceneInstanceID = _worldPacket.ReadUInt32();
} }
public uint SceneInstanceID { get; set; } public uint SceneInstanceID;
} }
class ScenePlaybackCanceled : ClientPacket class ScenePlaybackCanceled : ClientPacket
@@ -90,6 +90,6 @@ namespace Game.Network.Packets
SceneInstanceID = _worldPacket.ReadUInt32(); SceneInstanceID = _worldPacket.ReadUInt32();
} }
public uint SceneInstanceID { get; set; } public uint SceneInstanceID;
} }
} }
+19 -19
View File
@@ -30,7 +30,7 @@ namespace Game.Network.Packets
Flags = (SocialFlag)_worldPacket.ReadUInt32(); Flags = (SocialFlag)_worldPacket.ReadUInt32();
} }
public SocialFlag Flags { get; set; } public SocialFlag Flags;
} }
public class ContactList : ServerPacket public class ContactList : ServerPacket
@@ -49,8 +49,8 @@ namespace Game.Network.Packets
Contacts.ForEach(p => p.Write(_worldPacket)); Contacts.ForEach(p => p.Write(_worldPacket));
} }
public List<ContactInfo> Contacts { get; set; } public List<ContactInfo> Contacts;
public SocialFlag Flags { get; set; } public SocialFlag Flags;
} }
public class FriendStatusPkt : ServerPacket public class FriendStatusPkt : ServerPacket
@@ -85,15 +85,15 @@ namespace Game.Network.Packets
_worldPacket.WriteString(Notes); _worldPacket.WriteString(Notes);
} }
public uint VirtualRealmAddress { get; set; } public uint VirtualRealmAddress;
public string Notes { get; set; } public string Notes;
public Class ClassID { get; set; } = Class.None; public Class ClassID = Class.None;
public FriendStatus Status { get; set; } public FriendStatus Status;
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
public ObjectGuid WowAccountGuid { get; set; } public ObjectGuid WowAccountGuid;
public uint Level { get; set; } public uint Level;
public uint AreaID { get; set; } public uint AreaID;
public FriendsResult FriendResult { get; set; } public FriendsResult FriendResult;
} }
public class AddFriend : ClientPacket public class AddFriend : ClientPacket
@@ -108,7 +108,7 @@ namespace Game.Network.Packets
Notes = _worldPacket.ReadString(noteslength); Notes = _worldPacket.ReadString(noteslength);
} }
public string Notes { get; set; } public string Notes;
public string Name; public string Name;
} }
@@ -121,7 +121,7 @@ namespace Game.Network.Packets
Player.Read(_worldPacket); Player.Read(_worldPacket);
} }
public QualifiedGUID Player { get; set; } public QualifiedGUID Player;
} }
public class SetContactNotes : ClientPacket public class SetContactNotes : ClientPacket
@@ -134,8 +134,8 @@ namespace Game.Network.Packets
Notes = _worldPacket.ReadString(_worldPacket.ReadBits<uint>(10)); Notes = _worldPacket.ReadString(_worldPacket.ReadBits<uint>(10));
} }
public QualifiedGUID Player { get; set; } public QualifiedGUID Player;
public string Notes { get; set; } public string Notes;
} }
public class AddIgnore : ClientPacket public class AddIgnore : ClientPacket
@@ -159,7 +159,7 @@ namespace Game.Network.Packets
Player.Read(_worldPacket); Player.Read(_worldPacket);
} }
public QualifiedGUID Player { get; set; } public QualifiedGUID Player;
} }
//Structs //Structs
@@ -215,7 +215,7 @@ namespace Game.Network.Packets
Guid = data.ReadPackedGuid(); Guid = data.ReadPackedGuid();
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
public uint VirtualRealmAddress { get; set; } public uint VirtualRealmAddress;
} }
} }
+257 -257
View File
@@ -35,8 +35,8 @@ namespace Game.Network.Packets
CasterGUID = _worldPacket.ReadPackedGuid(); CasterGUID = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid CasterGUID { get; set; } public ObjectGuid CasterGUID;
public uint SpellID { get; set; } public uint SpellID;
} }
class CancelAutoRepeatSpell : ClientPacket class CancelAutoRepeatSpell : ClientPacket
@@ -81,7 +81,7 @@ namespace Game.Network.Packets
public class SpellCategoryCooldown : ServerPacket public class SpellCategoryCooldown : ServerPacket
{ {
public List<CategoryCooldownInfo> CategoryCooldowns { get; set; } = new List<CategoryCooldownInfo>(); public List<CategoryCooldownInfo> CategoryCooldowns = new List<CategoryCooldownInfo>();
public SpellCategoryCooldown() : base(ServerOpcodes.CategoryCooldown, ConnectionType.Instance) { } public SpellCategoryCooldown() : base(ServerOpcodes.CategoryCooldown, ConnectionType.Instance) { }
@@ -104,8 +104,8 @@ namespace Game.Network.Packets
ModCooldown = cooldown; ModCooldown = cooldown;
} }
public uint Category { get; set; } = 0; // SpellCategory Id public uint Category = 0; // SpellCategory Id
public int ModCooldown { get; set; } = 0; // Reduced Cooldown in ms public int ModCooldown = 0; // Reduced Cooldown in ms
} }
} }
@@ -126,15 +126,15 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(spellId); _worldPacket.WriteUInt32(spellId);
} }
public bool InitialLogin { get; set; } public bool InitialLogin;
public List<uint> KnownSpells { get; set; } = new List<uint>(); public List<uint> KnownSpells = new List<uint>();
public List<uint> FavoriteSpells { get; set; } = new List<uint>(); // tradeskill recipes public List<uint> FavoriteSpells = new List<uint>(); // tradeskill recipes
} }
public class UpdateActionButtons : ServerPacket public class UpdateActionButtons : ServerPacket
{ {
public ulong[] ActionButtons { get; set; } = new ulong[PlayerConst.MaxActionButtons]; public ulong[] ActionButtons = new ulong[PlayerConst.MaxActionButtons];
public byte Reason { get; set; } public byte Reason;
public UpdateActionButtons() : base(ServerOpcodes.UpdateActionButtons, ConnectionType.Instance) { } public UpdateActionButtons() : base(ServerOpcodes.UpdateActionButtons, ConnectionType.Instance) { }
@@ -157,11 +157,11 @@ namespace Game.Network.Packets
Index = _worldPacket.ReadUInt8(); Index = _worldPacket.ReadUInt8();
} }
public uint GetButtonAction() => (uint)(Action & 0x00000000FFFFFFFF); public uint GetButtonAction() { return (uint)(Action & 0x00000000FFFFFFFF); }
public uint GetButtonType() => (uint)((Action & 0xFFFFFFFF00000000) >> 56); public uint GetButtonType() { return (uint)((Action & 0xFFFFFFFF00000000) >> 56); }
public ulong Action; // two packed public uint (action and type) public ulong Action; // two packed public uint (action and type)
public byte Index { get; set; } public byte Index;
} }
public class SendUnlearnSpells : ServerPacket public class SendUnlearnSpells : ServerPacket
@@ -192,14 +192,14 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(UnitGUID); _worldPacket.WritePackedGuid(UnitGUID);
} }
public bool UpdateAll { get; set; } public bool UpdateAll;
public ObjectGuid UnitGUID { get; set; } public ObjectGuid UnitGUID;
public List<AuraInfo> Auras { get; set; } = new List<AuraInfo>(); public List<AuraInfo> Auras = new List<AuraInfo>();
} }
public class CastSpell : ClientPacket public class CastSpell : ClientPacket
{ {
public SpellCastRequest Cast { get; set; } public SpellCastRequest Cast;
public CastSpell(WorldPacket packet) : base(packet) public CastSpell(WorldPacket packet) : base(packet)
{ {
@@ -214,8 +214,8 @@ namespace Game.Network.Packets
public class PetCastSpell : ClientPacket public class PetCastSpell : ClientPacket
{ {
public ObjectGuid PetGUID { get; set; } public ObjectGuid PetGUID;
public SpellCastRequest Cast { get; set; } public SpellCastRequest Cast;
public PetCastSpell(WorldPacket packet) : base(packet) public PetCastSpell(WorldPacket packet) : base(packet)
{ {
@@ -231,10 +231,10 @@ namespace Game.Network.Packets
public class UseItem : ClientPacket public class UseItem : ClientPacket
{ {
public byte PackSlot { get; set; } public byte PackSlot;
public byte Slot { get; set; } public byte Slot;
public ObjectGuid CastItem { get; set; } public ObjectGuid CastItem;
public SpellCastRequest Cast { get; set; } public SpellCastRequest Cast;
public UseItem(WorldPacket packet) : base(packet) public UseItem(WorldPacket packet) : base(packet)
{ {
@@ -260,8 +260,8 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(ServerCastID); _worldPacket.WritePackedGuid(ServerCastID);
} }
public ObjectGuid ClientCastID { get; set; } public ObjectGuid ClientCastID;
public ObjectGuid ServerCastID { get; set; } public ObjectGuid ServerCastID;
} }
class SpellGo : CombatLogServerPacket class SpellGo : CombatLogServerPacket
@@ -278,12 +278,12 @@ namespace Game.Network.Packets
WriteLogData(); WriteLogData();
} }
public SpellCastData Cast { get; set; } = new SpellCastData(); public SpellCastData Cast = new SpellCastData();
} }
public class SpellStart : ServerPacket public class SpellStart : ServerPacket
{ {
public SpellCastData Cast { get; set; } public SpellCastData Cast;
public SpellStart() : base(ServerOpcodes.SpellStart, ConnectionType.Instance) public SpellStart() : base(ServerOpcodes.SpellStart, ConnectionType.Instance)
{ {
@@ -316,9 +316,9 @@ namespace Game.Network.Packets
_worldPacket.WriteInt32(spellId); _worldPacket.WriteInt32(spellId);
} }
public List<uint> SpellID { get; set; } = new List<uint>(); public List<uint> SpellID = new List<uint>();
public List<uint> Superceded { get; set; } = new List<uint>(); public List<uint> Superceded = new List<uint>();
public List<int> FavoriteSpellID { get; set; } = new List<int>(); public List<int> FavoriteSpellID = new List<int>();
} }
public class LearnedSpells : ServerPacket public class LearnedSpells : ServerPacket
@@ -340,9 +340,9 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public List<uint> SpellID { get; set; } = new List<uint>(); public List<uint> SpellID = new List<uint>();
public List<int> FavoriteSpellID { get; set; } = new List<int>(); public List<int> FavoriteSpellID = new List<int>();
public bool SuppressMessaging { get; set; } public bool SuppressMessaging;
} }
public class SpellFailure : ServerPacket public class SpellFailure : ServerPacket
@@ -358,11 +358,11 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt16(Reason); _worldPacket.WriteUInt16(Reason);
} }
public ObjectGuid CasterUnit { get; set; } public ObjectGuid CasterUnit;
public uint SpellID { get; set; } public uint SpellID;
public uint SpellXSpellVisualID { get; set; } public uint SpellXSpellVisualID;
public ushort Reason { get; set; } public ushort Reason;
public ObjectGuid CastID { get; set; } public ObjectGuid CastID;
} }
public class SpellFailedOther : ServerPacket public class SpellFailedOther : ServerPacket
@@ -378,11 +378,11 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt16(Reason); _worldPacket.WriteUInt16(Reason);
} }
public ObjectGuid CasterUnit { get; set; } public ObjectGuid CasterUnit;
public uint SpellID { get; set; } public uint SpellID;
public uint SpellXSpellVisualID { get; set; } public uint SpellXSpellVisualID;
public ushort Reason { get; set; } public ushort Reason;
public ObjectGuid CastID { get; set; } public ObjectGuid CastID;
} }
class CastFailedBase : ServerPacket class CastFailedBase : ServerPacket
@@ -391,11 +391,11 @@ namespace Game.Network.Packets
public override void Write() { throw new NotImplementedException(); } public override void Write() { throw new NotImplementedException(); }
public ObjectGuid CastID { get; set; } public ObjectGuid CastID;
public int SpellID { get; set; } public int SpellID;
public SpellCastResult Reason { get; set; } public SpellCastResult Reason;
public int FailedArg1 { get; set; } = -1; public int FailedArg1 = -1;
public int FailedArg2 { get; set; } = -1; public int FailedArg2 = -1;
} }
class CastFailed : CastFailedBase class CastFailed : CastFailedBase
@@ -412,7 +412,7 @@ namespace Game.Network.Packets
_worldPacket.WriteInt32(FailedArg2); _worldPacket.WriteInt32(FailedArg2);
} }
public int SpellXSpellVisualID { get; set; } public int SpellXSpellVisualID;
} }
class PetCastFailed : CastFailedBase class PetCastFailed : CastFailedBase
@@ -440,7 +440,7 @@ namespace Game.Network.Packets
spellMod.Write(_worldPacket); spellMod.Write(_worldPacket);
} }
public List<SpellModifierInfo> Modifiers { get; set; } = new List<SpellModifierInfo>(); public List<SpellModifierInfo> Modifiers = new List<SpellModifierInfo>();
} }
public class UnlearnedSpells : ServerPacket public class UnlearnedSpells : ServerPacket
@@ -457,8 +457,8 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public List<uint> SpellID { get; set; } = new List<uint>(); public List<uint> SpellID = new List<uint>();
public bool SuppressMessaging { get; set; } public bool SuppressMessaging;
} }
public class CooldownEvent : ServerPacket public class CooldownEvent : ServerPacket
@@ -476,8 +476,8 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public bool IsPet { get; set; } public bool IsPet;
public uint SpellID { get; set; } public uint SpellID;
} }
public class ClearCooldowns : ServerPacket public class ClearCooldowns : ServerPacket
@@ -494,8 +494,8 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public List<uint> SpellID { get; set; } = new List<uint>(); public List<uint> SpellID = new List<uint>();
public bool IsPet { get; set; } public bool IsPet;
} }
public class ClearCooldown : ServerPacket public class ClearCooldown : ServerPacket
@@ -510,9 +510,9 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public bool IsPet { get; set; } public bool IsPet;
public uint SpellID { get; set; } public uint SpellID;
public bool ClearOnHold { get; set; } public bool ClearOnHold;
} }
public class ModifyCooldown : ServerPacket public class ModifyCooldown : ServerPacket
@@ -527,9 +527,9 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public bool IsPet { get; set; } public bool IsPet;
public int DeltaTime { get; set; } public int DeltaTime;
public uint SpellID { get; set; } public uint SpellID;
} }
public class SpellCooldownPkt : ServerPacket public class SpellCooldownPkt : ServerPacket
@@ -544,9 +544,9 @@ namespace Game.Network.Packets
SpellCooldowns.ForEach(p => p.Write(_worldPacket)); SpellCooldowns.ForEach(p => p.Write(_worldPacket));
} }
public List<SpellCooldownStruct> SpellCooldowns { get; set; } = new List<SpellCooldownStruct>(); public List<SpellCooldownStruct> SpellCooldowns = new List<SpellCooldownStruct>();
public ObjectGuid Caster { get; set; } public ObjectGuid Caster;
public SpellCooldownFlags Flags { get; set; } public SpellCooldownFlags Flags;
} }
public class SendSpellHistory : ServerPacket public class SendSpellHistory : ServerPacket
@@ -559,7 +559,7 @@ namespace Game.Network.Packets
Entries.ForEach(p => p.Write(_worldPacket)); Entries.ForEach(p => p.Write(_worldPacket));
} }
public List<SpellHistoryEntry> Entries { get; set; } = new List<SpellHistoryEntry>(); public List<SpellHistoryEntry> Entries = new List<SpellHistoryEntry>();
} }
public class ClearAllSpellCharges : ServerPacket public class ClearAllSpellCharges : ServerPacket
@@ -572,7 +572,7 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public bool IsPet { get; set; } public bool IsPet;
} }
public class ClearSpellCharges : ServerPacket public class ClearSpellCharges : ServerPacket
@@ -586,8 +586,8 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public bool IsPet { get; set; } public bool IsPet;
public uint Category { get; set; } public uint Category;
} }
public class SetSpellCharges : ServerPacket public class SetSpellCharges : ServerPacket
@@ -604,11 +604,11 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public bool IsPet { get; set; } public bool IsPet;
public uint Category { get; set; } public uint Category;
public uint NextRecoveryTime { get; set; } public uint NextRecoveryTime;
public byte ConsumedCharges { get; set; } public byte ConsumedCharges;
public float ChargeModRate { get; set; } = 1.0f; public float ChargeModRate = 1.0f;
} }
public class SendSpellCharges : ServerPacket public class SendSpellCharges : ServerPacket
@@ -621,7 +621,7 @@ namespace Game.Network.Packets
Entries.ForEach(p => p.Write(_worldPacket)); Entries.ForEach(p => p.Write(_worldPacket));
} }
public List<SpellChargeEntry> Entries { get; set; } = new List<SpellChargeEntry>(); public List<SpellChargeEntry> Entries = new List<SpellChargeEntry>();
} }
public class ClearTarget : ServerPacket public class ClearTarget : ServerPacket
@@ -633,7 +633,7 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(Guid); _worldPacket.WritePackedGuid(Guid);
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
} }
public class CancelOrphanSpellVisual : ServerPacket public class CancelOrphanSpellVisual : ServerPacket
@@ -645,7 +645,7 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(SpellVisualID); _worldPacket.WriteUInt32(SpellVisualID);
} }
public uint SpellVisualID { get; set; } public uint SpellVisualID;
} }
public class CancelSpellVisual : ServerPacket public class CancelSpellVisual : ServerPacket
@@ -658,8 +658,8 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(SpellVisualID); _worldPacket.WriteUInt32(SpellVisualID);
} }
public ObjectGuid Source { get; set; } public ObjectGuid Source;
public uint SpellVisualID { get; set; } public uint SpellVisualID;
} }
class CancelSpellVisualKit : ServerPacket class CancelSpellVisualKit : ServerPacket
@@ -672,8 +672,8 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(SpellVisualKitID); _worldPacket.WriteUInt32(SpellVisualKitID);
} }
public ObjectGuid Source { get; set; } public ObjectGuid Source;
public uint SpellVisualKitID { get; set; } public uint SpellVisualKitID;
} }
class PlayOrphanSpellVisual : ServerPacket class PlayOrphanSpellVisual : ServerPacket
@@ -694,10 +694,10 @@ namespace Game.Network.Packets
} }
public ObjectGuid Target; // Exclusive with TargetLocation public ObjectGuid Target; // Exclusive with TargetLocation
public Position SourceLocation { get; set; } public Position SourceLocation;
public uint SpellVisualID { get; set; } public uint SpellVisualID;
public bool SpeedAsTime { get; set; } public bool SpeedAsTime;
public float TravelSpeed { get; set; } public float TravelSpeed;
public float UnkZero; // Always zero public float UnkZero; // Always zero
public Vector3 SourceRotation; // Vector of rotations, Orientation is z public Vector3 SourceRotation; // Vector of rotations, Orientation is z
public Vector3 TargetLocation; // Exclusive with Target public Vector3 TargetLocation; // Exclusive with Target
@@ -721,15 +721,15 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public ObjectGuid Source { get; set; } public ObjectGuid Source;
public ObjectGuid Target; // Exclusive with TargetPosition public ObjectGuid Target; // Exclusive with TargetPosition
public ushort MissReason { get; set; } public ushort MissReason;
public uint SpellVisualID { get; set; } public uint SpellVisualID;
public bool SpeedAsTime { get; set; } public bool SpeedAsTime;
public ushort ReflectStatus { get; set; } public ushort ReflectStatus;
public float TravelSpeed { get; set; } public float TravelSpeed;
public Vector3 TargetPosition; // Exclusive with Target public Vector3 TargetPosition; // Exclusive with Target
public float Orientation { get; set; } public float Orientation;
} }
class PlaySpellVisualKit : ServerPacket class PlaySpellVisualKit : ServerPacket
@@ -744,10 +744,10 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(Duration); _worldPacket.WriteUInt32(Duration);
} }
public ObjectGuid Unit { get; set; } public ObjectGuid Unit;
public uint KitRecID { get; set; } public uint KitRecID;
public uint KitType { get; set; } public uint KitType;
public uint Duration { get; set; } public uint Duration;
} }
public class CancelCast : ClientPacket public class CancelCast : ClientPacket
@@ -760,8 +760,8 @@ namespace Game.Network.Packets
SpellID = _worldPacket.ReadUInt32(); SpellID = _worldPacket.ReadUInt32();
} }
public uint SpellID { get; set; } public uint SpellID;
public ObjectGuid CastID { get; set; } public ObjectGuid CastID;
} }
public class OpenItem : ClientPacket public class OpenItem : ClientPacket
@@ -774,8 +774,8 @@ namespace Game.Network.Packets
PackSlot = _worldPacket.ReadUInt8(); PackSlot = _worldPacket.ReadUInt8();
} }
public byte Slot { get; set; } public byte Slot;
public byte PackSlot { get; set; } public byte PackSlot;
} }
public class SpellChannelStart : ServerPacket public class SpellChannelStart : ServerPacket
@@ -799,12 +799,12 @@ namespace Game.Network.Packets
HealPrediction.Value.Write(_worldPacket); HealPrediction.Value.Write(_worldPacket);
} }
public int SpellID { get; set; } public int SpellID;
public int SpellXSpellVisualID { get; set; } public int SpellXSpellVisualID;
public Optional<SpellChannelStartInterruptImmunities> InterruptImmunities; public Optional<SpellChannelStartInterruptImmunities> InterruptImmunities;
public ObjectGuid CasterGUID { get; set; } public ObjectGuid CasterGUID;
public Optional<SpellTargetedHealPrediction> HealPrediction { get; set; } public Optional<SpellTargetedHealPrediction> HealPrediction;
public uint ChannelDuration { get; set; } public uint ChannelDuration;
} }
public class SpellChannelUpdate : ServerPacket public class SpellChannelUpdate : ServerPacket
@@ -817,8 +817,8 @@ namespace Game.Network.Packets
_worldPacket.WriteInt32(TimeRemaining); _worldPacket.WriteInt32(TimeRemaining);
} }
public ObjectGuid CasterGUID { get; set; } public ObjectGuid CasterGUID;
public int TimeRemaining { get; set; } public int TimeRemaining;
} }
class ResurrectRequest : ServerPacket class ResurrectRequest : ServerPacket
@@ -839,13 +839,13 @@ namespace Game.Network.Packets
_worldPacket.WriteString(Name); _worldPacket.WriteString(Name);
} }
public ObjectGuid ResurrectOffererGUID { get; set; } public ObjectGuid ResurrectOffererGUID;
public uint ResurrectOffererVirtualRealmAddress { get; set; } public uint ResurrectOffererVirtualRealmAddress;
public uint PetNumber { get; set; } public uint PetNumber;
public uint SpellID { get; set; } public uint SpellID;
public bool UseTimer { get; set; } public bool UseTimer;
public bool Sickness { get; set; } public bool Sickness;
public string Name { get; set; } public string Name;
} }
class UnlearnSkill : ClientPacket class UnlearnSkill : ClientPacket
@@ -857,7 +857,7 @@ namespace Game.Network.Packets
SkillLine = _worldPacket.ReadUInt32(); SkillLine = _worldPacket.ReadUInt32();
} }
public uint SkillLine { get; set; } public uint SkillLine;
} }
class SelfRes : ClientPacket class SelfRes : ClientPacket
@@ -877,8 +877,8 @@ namespace Game.Network.Packets
DisplayID = _worldPacket.ReadUInt32(); DisplayID = _worldPacket.ReadUInt32();
} }
public ObjectGuid UnitGUID { get; set; } public ObjectGuid UnitGUID;
public uint DisplayID { get; set; } public uint DisplayID;
} }
class MirrorImageComponentedData : ServerPacket class MirrorImageComponentedData : ServerPacket
@@ -907,20 +907,20 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(itemDisplayId); _worldPacket.WriteUInt32(itemDisplayId);
} }
public ObjectGuid UnitGUID { get; set; } public ObjectGuid UnitGUID;
public int DisplayID { get; set; } public int DisplayID;
public byte RaceID { get; set; } public byte RaceID;
public byte Gender { get; set; } public byte Gender;
public byte ClassID { get; set; } public byte ClassID;
public byte SkinColor { get; set; } public byte SkinColor;
public byte FaceVariation { get; set; } public byte FaceVariation;
public byte HairVariation { get; set; } public byte HairVariation;
public byte HairColor { get; set; } public byte HairColor;
public byte BeardVariation { get; set; } public byte BeardVariation;
public Array<byte> CustomDisplay { get; set; } = new Array<byte>(PlayerConst.CustomDisplaySize); public Array<byte> CustomDisplay = new Array<byte>(PlayerConst.CustomDisplaySize);
public ObjectGuid GuildGUID { get; set; } public ObjectGuid GuildGUID;
public List<int> ItemDisplayID { get; set; } = new List<int>(); public List<int> ItemDisplayID = new List<int>();
} }
class MirrorImageCreatureData : ServerPacket class MirrorImageCreatureData : ServerPacket
@@ -933,8 +933,8 @@ namespace Game.Network.Packets
_worldPacket.WriteInt32(DisplayID); _worldPacket.WriteInt32(DisplayID);
} }
public ObjectGuid UnitGUID { get; set; } public ObjectGuid UnitGUID;
public int DisplayID { get; set; } public int DisplayID;
} }
class SpellClick : ClientPacket class SpellClick : ClientPacket
@@ -947,8 +947,8 @@ namespace Game.Network.Packets
TryAutoDismount = _worldPacket.HasBit(); TryAutoDismount = _worldPacket.HasBit();
} }
public ObjectGuid SpellClickUnitGuid { get; set; } public ObjectGuid SpellClickUnitGuid;
public bool TryAutoDismount { get; set; } public bool TryAutoDismount;
} }
class ResyncRunes : ServerPacket class ResyncRunes : ServerPacket
@@ -960,7 +960,7 @@ namespace Game.Network.Packets
Runes.Write(_worldPacket); Runes.Write(_worldPacket);
} }
public RuneData Runes { get; set; } = new RuneData(); public RuneData Runes = new RuneData();
} }
class MissileTrajectoryCollision : ClientPacket class MissileTrajectoryCollision : ClientPacket
@@ -975,10 +975,10 @@ namespace Game.Network.Packets
CollisionPos = _worldPacket.ReadVector3(); CollisionPos = _worldPacket.ReadVector3();
} }
public ObjectGuid Target { get; set; } public ObjectGuid Target;
public uint SpellID { get; set; } public uint SpellID;
public ObjectGuid CastID { get; set; } public ObjectGuid CastID;
public Vector3 CollisionPos { get; set; } public Vector3 CollisionPos;
} }
class NotifyMissileTrajectoryCollision : ServerPacket class NotifyMissileTrajectoryCollision : ServerPacket
@@ -992,9 +992,9 @@ namespace Game.Network.Packets
_worldPacket.WriteVector3(CollisionPos); _worldPacket.WriteVector3(CollisionPos);
} }
public ObjectGuid Caster { get; set; } public ObjectGuid Caster;
public ObjectGuid CastID { get; set; } public ObjectGuid CastID;
public Vector3 CollisionPos { get; set; } public Vector3 CollisionPos;
} }
class UpdateMissileTrajectory : ClientPacket class UpdateMissileTrajectory : ClientPacket
@@ -1017,14 +1017,14 @@ namespace Game.Network.Packets
Status.Set(MovementExtensions.ReadMovementInfo(_worldPacket)); Status.Set(MovementExtensions.ReadMovementInfo(_worldPacket));
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
public ushort MoveMsgID { get; set; } public ushort MoveMsgID;
public uint SpellID { get; set; } public uint SpellID;
public float Pitch { get; set; } public float Pitch;
public float Speed { get; set; } public float Speed;
public Vector3 FirePos { get; set; } public Vector3 FirePos;
public Vector3 ImpactPos { get; set; } public Vector3 ImpactPos;
public Optional<MovementInfo> Status { get; set; } public Optional<MovementInfo> Status;
} }
public class SpellDelayed : ServerPacket public class SpellDelayed : ServerPacket
@@ -1037,8 +1037,8 @@ namespace Game.Network.Packets
_worldPacket.WriteInt32(ActualDelay); _worldPacket.WriteInt32(ActualDelay);
} }
public ObjectGuid Caster { get; set; } public ObjectGuid Caster;
public int ActualDelay { get; set; } public int ActualDelay;
} }
class DispelFailed : ServerPacket class DispelFailed : ServerPacket
@@ -1055,10 +1055,10 @@ namespace Game.Network.Packets
FailedSpells.ForEach(FailedSpellID => _worldPacket.WriteUInt32(FailedSpellID)); FailedSpells.ForEach(FailedSpellID => _worldPacket.WriteUInt32(FailedSpellID));
} }
public ObjectGuid CasterGUID { get; set; } public ObjectGuid CasterGUID;
public ObjectGuid VictimGUID { get; set; } public ObjectGuid VictimGUID;
public uint SpellID { get; set; } public uint SpellID;
public List<uint> FailedSpells { get; set; } = new List<uint>(); public List<uint> FailedSpells = new List<uint>();
} }
class CustomLoadScreen : ServerPacket class CustomLoadScreen : ServerPacket
@@ -1089,9 +1089,9 @@ namespace Game.Network.Packets
Cost = cost; Cost = cost;
} }
public int PowerType { get; set; } public int PowerType;
public int Amount { get; set; } public int Amount;
public int Cost { get; set; } public int Cost;
} }
public class SpellCastLogData public class SpellCastLogData
@@ -1247,15 +1247,15 @@ namespace Game.Network.Packets
data.WriteInt8(TargetScalingLevelDelta); data.WriteInt8(TargetScalingLevelDelta);
} }
public SandboxScalingDataType Type { get; set; } public SandboxScalingDataType Type;
public short PlayerLevelDelta { get; set; } public short PlayerLevelDelta;
public ushort PlayerItemLevel { get; set; } public ushort PlayerItemLevel;
public byte TargetLevel { get; set; } public byte TargetLevel;
public byte Expansion { get; set; } public byte Expansion;
public byte Class { get; set; } public byte Class;
public byte TargetMinScalingLevel { get; set; } public byte TargetMinScalingLevel;
public byte TargetMaxScalingLevel { get; set; } public byte TargetMaxScalingLevel;
public sbyte TargetScalingLevelDelta { get; set; } public sbyte TargetScalingLevelDelta;
public enum SandboxScalingDataType public enum SandboxScalingDataType
{ {
@@ -1307,20 +1307,20 @@ namespace Game.Network.Packets
data.WriteFloat(point); data.WriteFloat(point);
} }
public ObjectGuid CastID { get; set; } public ObjectGuid CastID;
public int SpellID { get; set; } public int SpellID;
public int SpellXSpellVisualID { get; set; } public int SpellXSpellVisualID;
public AuraFlags Flags { get; set; } public AuraFlags Flags;
public uint ActiveFlags { get; set; } public uint ActiveFlags;
public ushort CastLevel { get; set; } = 1; public ushort CastLevel = 1;
public byte Applications { get; set; } = 1; public byte Applications = 1;
Optional<SandboxScalingData> SandboxScaling; Optional<SandboxScalingData> SandboxScaling;
public Optional<ObjectGuid> CastUnit { get; set; } public Optional<ObjectGuid> CastUnit;
public Optional<int> Duration { get; set; } public Optional<int> Duration;
public Optional<int> Remaining { get; set; } public Optional<int> Remaining;
Optional<float> TimeMod; Optional<float> TimeMod;
public float[] Points { get; set; } = new float[0]; public float[] Points = new float[0];
public List<float> EstimatedPoints { get; set; } = new List<float>(); public List<float> EstimatedPoints = new List<float>();
} }
public struct AuraInfo public struct AuraInfo
@@ -1335,14 +1335,14 @@ namespace Game.Network.Packets
AuraData.Value.Write(data); AuraData.Value.Write(data);
} }
public byte Slot { get; set; } public byte Slot;
public Optional<AuraDataInfo> AuraData; public Optional<AuraDataInfo> AuraData;
} }
public struct TargetLocation public struct TargetLocation
{ {
public ObjectGuid Transport { get; set; } public ObjectGuid Transport;
public Position Location { get; set; } public Position Location;
public void Read(WorldPacket data) public void Read(WorldPacket data)
{ {
@@ -1419,9 +1419,9 @@ namespace Game.Network.Packets
data.WriteString(Name); data.WriteString(Name);
} }
public SpellCastTargetFlags Flags { get; set; } public SpellCastTargetFlags Flags;
public ObjectGuid Unit { get; set; } public ObjectGuid Unit;
public ObjectGuid Item { get; set; } public ObjectGuid Item;
public Optional<TargetLocation> SrcLocation; public Optional<TargetLocation> SrcLocation;
public Optional<TargetLocation> DstLocation; public Optional<TargetLocation> DstLocation;
public Optional<float> Orientation; public Optional<float> Orientation;
@@ -1431,8 +1431,8 @@ namespace Game.Network.Packets
public struct MissileTrajectoryRequest public struct MissileTrajectoryRequest
{ {
public float Pitch { get; set; } public float Pitch;
public float Speed { get; set; } public float Speed;
public void Read(WorldPacket data) public void Read(WorldPacket data)
{ {
@@ -1443,9 +1443,9 @@ namespace Game.Network.Packets
public struct SpellWeight public struct SpellWeight
{ {
public uint Type { get; set; } public uint Type;
public int ID { get; set; } public int ID;
public uint Quantity { get; set; } public uint Quantity;
} }
public class SpellCastRequest public class SpellCastRequest
@@ -1470,7 +1470,7 @@ namespace Game.Network.Packets
for (var i = 0; i < weightCount; ++i) for (var i = 0; i < weightCount; ++i)
{ {
data.ResetBitPos(); data.ResetBitPos();
SpellWeight weight = new SpellWeight(); SpellWeight weight;
weight.Type = data.ReadBits<uint>(2); weight.Type = data.ReadBits<uint>(2);
weight.ID = data.ReadInt32(); weight.ID = data.ReadInt32();
weight.Quantity = data.ReadUInt32(); weight.Quantity = data.ReadUInt32();
@@ -1478,16 +1478,16 @@ namespace Game.Network.Packets
} }
} }
public ObjectGuid CastID { get; set; } public ObjectGuid CastID;
public uint SpellID { get; set; } public uint SpellID;
public uint SpellXSpellVisualID { get; set; } public uint SpellXSpellVisualID;
public uint SendCastFlags { get; set; } public uint SendCastFlags;
public SpellTargetData Target { get; set; } = new SpellTargetData(); public SpellTargetData Target = new SpellTargetData();
public MissileTrajectoryRequest MissileTrajectory { get; set; } public MissileTrajectoryRequest MissileTrajectory;
public Optional<MovementInfo> MoveUpdate; public Optional<MovementInfo> MoveUpdate;
public List<SpellWeight> Weight { get; set; } = new List<SpellWeight>(); public List<SpellWeight> Weight = new List<SpellWeight>();
public ObjectGuid Charmer { get; set; } public ObjectGuid Charmer;
public uint[] Misc { get; set; } = new uint[2]; public uint[] Misc = new uint[2];
} }
public struct SpellMissStatus public struct SpellMissStatus
@@ -1501,14 +1501,14 @@ namespace Game.Network.Packets
data.FlushBits(); data.FlushBits();
} }
public byte Reason { get; set; } public byte Reason;
public byte ReflectStatus { get; set; } public byte ReflectStatus;
} }
public struct SpellPowerData public struct SpellPowerData
{ {
public int Cost { get; set; } public int Cost;
public PowerType Type { get; set; } public PowerType Type;
public void Write(WorldPacket data) public void Write(WorldPacket data)
{ {
@@ -1529,15 +1529,15 @@ namespace Game.Network.Packets
data.WriteUInt8(cd); data.WriteUInt8(cd);
} }
public byte Start { get; set; } public byte Start;
public byte Count { get; set; } public byte Count;
public List<byte> Cooldowns { get; set; } = new List<byte>(); public List<byte> Cooldowns = new List<byte>();
} }
public struct MissileTrajectoryResult public struct MissileTrajectoryResult
{ {
public uint TravelTime { get; set; } public uint TravelTime;
public float Pitch { get; set; } public float Pitch;
public void Write(WorldPacket data) public void Write(WorldPacket data)
{ {
@@ -1548,8 +1548,8 @@ namespace Game.Network.Packets
public struct SpellAmmo public struct SpellAmmo
{ {
public int DisplayID { get; set; } public int DisplayID;
public sbyte InventoryType { get; set; } public sbyte InventoryType;
public void Write(WorldPacket data) public void Write(WorldPacket data)
{ {
@@ -1560,8 +1560,8 @@ namespace Game.Network.Packets
public struct CreatureImmunities public struct CreatureImmunities
{ {
public uint School { get; set; } public uint School;
public uint Value { get; set; } public uint Value;
public void Write(WorldPacket data) public void Write(WorldPacket data)
{ {
@@ -1572,9 +1572,9 @@ namespace Game.Network.Packets
public struct SpellHealPrediction public struct SpellHealPrediction
{ {
public ObjectGuid BeaconGUID { get; set; } public ObjectGuid BeaconGUID;
public uint Points { get; set; } public uint Points;
public byte Type { get; set; } public byte Type;
public void Write(WorldPacket data) public void Write(WorldPacket data)
{ {
@@ -1635,33 +1635,33 @@ namespace Game.Network.Packets
targetLoc.Write(data); targetLoc.Write(data);
} }
public ObjectGuid CasterGUID { get; set; } public ObjectGuid CasterGUID;
public ObjectGuid CasterUnit { get; set; } public ObjectGuid CasterUnit;
public ObjectGuid CastID { get; set; } public ObjectGuid CastID;
public ObjectGuid OriginalCastID { get; set; } public ObjectGuid OriginalCastID;
public int SpellID { get; set; } public int SpellID;
public uint SpellXSpellVisualID { get; set; } public uint SpellXSpellVisualID;
public SpellCastFlags CastFlags { get; set; } public SpellCastFlags CastFlags;
public SpellCastFlagsEx CastFlagsEx { get; set; } public SpellCastFlagsEx CastFlagsEx;
public uint CastTime { get; set; } public uint CastTime;
public List<ObjectGuid> HitTargets { get; set; } = new List<ObjectGuid>(); public List<ObjectGuid> HitTargets = new List<ObjectGuid>();
public List<ObjectGuid> MissTargets { get; set; } = new List<ObjectGuid>(); public List<ObjectGuid> MissTargets = new List<ObjectGuid>();
public List<SpellMissStatus> MissStatus { get; set; } = new List<SpellMissStatus>(); public List<SpellMissStatus> MissStatus = new List<SpellMissStatus>();
public SpellTargetData Target { get; set; } = new SpellTargetData(); public SpellTargetData Target = new SpellTargetData();
public List<SpellPowerData> RemainingPower { get; set; } = new List<SpellPowerData>(); public List<SpellPowerData> RemainingPower = new List<SpellPowerData>();
public Optional<RuneData> RemainingRunes; public Optional<RuneData> RemainingRunes;
public MissileTrajectoryResult MissileTrajectory; public MissileTrajectoryResult MissileTrajectory;
public SpellAmmo Ammo { get; set; } public SpellAmmo Ammo;
public byte DestLocSpellCastIndex { get; set; } public byte DestLocSpellCastIndex;
public List<TargetLocation> TargetPoints { get; set; } = new List<TargetLocation>(); public List<TargetLocation> TargetPoints = new List<TargetLocation>();
public CreatureImmunities Immunities; public CreatureImmunities Immunities;
public SpellHealPrediction Predict { get; set; } public SpellHealPrediction Predict;
} }
public struct SpellModifierData public struct SpellModifierData
{ {
public float ModifierValue { get; set; } public float ModifierValue;
public byte ClassIndex { get; set; } public byte ClassIndex;
public void Write(WorldPacket data) public void Write(WorldPacket data)
{ {
@@ -1672,8 +1672,8 @@ namespace Game.Network.Packets
public class SpellModifierInfo public class SpellModifierInfo
{ {
public byte ModIndex { get; set; } public byte ModIndex;
public List<SpellModifierData> ModifierData { get; set; } = new List<SpellModifierData>(); public List<SpellModifierData> ModifierData = new List<SpellModifierData>();
public void Write(WorldPacket data) public void Write(WorldPacket data)
{ {
@@ -1699,9 +1699,9 @@ namespace Game.Network.Packets
data.WriteFloat(ModRate); data.WriteFloat(ModRate);
} }
public uint SrecID { get; set; } public uint SrecID;
public uint ForcedCooldown { get; set; } public uint ForcedCooldown;
public float ModRate { get; set; } = 1.0f; public float ModRate = 1.0f;
} }
public class SpellHistoryEntry public class SpellHistoryEntry
@@ -1725,13 +1725,13 @@ namespace Game.Network.Packets
data.WriteUInt32(unused622_2.Value); data.WriteUInt32(unused622_2.Value);
} }
public uint SpellID { get; set; } public uint SpellID;
public uint ItemID { get; set; } public uint ItemID;
public uint Category { get; set; } public uint Category;
public int RecoveryTime { get; set; } public int RecoveryTime;
public int CategoryRecoveryTime { get; set; } public int CategoryRecoveryTime;
public float ModRate { get; set; } = 1.0f; public float ModRate = 1.0f;
public bool OnHold { get; set; } public bool OnHold;
Optional<uint> unused622_1; // This field is not used for anything in the client in 6.2.2.20444 Optional<uint> unused622_1; // This field is not used for anything in the client in 6.2.2.20444
Optional<uint> unused622_2; // This field is not used for anything in the client in 6.2.2.20444 Optional<uint> unused622_2; // This field is not used for anything in the client in 6.2.2.20444
} }
@@ -1746,10 +1746,10 @@ namespace Game.Network.Packets
data.WriteUInt8(ConsumedCharges); data.WriteUInt8(ConsumedCharges);
} }
public uint Category { get; set; } public uint Category;
public uint NextRecoveryTime { get; set; } public uint NextRecoveryTime;
public float ChargeModRate { get; set; } = 1.0f; public float ChargeModRate = 1.0f;
public byte ConsumedCharges { get; set; } public byte ConsumedCharges;
} }
public struct SpellChannelStartInterruptImmunities public struct SpellChannelStartInterruptImmunities
@@ -1760,8 +1760,8 @@ namespace Game.Network.Packets
data.WriteInt32(Immunities); data.WriteInt32(Immunities);
} }
public int SchoolImmunities { get; set; } public int SchoolImmunities;
public int Immunities { get; set; } public int Immunities;
} }
public struct SpellTargetedHealPrediction public struct SpellTargetedHealPrediction
@@ -1772,7 +1772,7 @@ namespace Game.Network.Packets
Predict.Write(data); Predict.Write(data);
} }
public ObjectGuid TargetGUID { get; set; } public ObjectGuid TargetGUID;
public SpellHealPrediction Predict { get; set; } public SpellHealPrediction Predict;
} }
} }
+69 -69
View File
@@ -123,92 +123,92 @@ namespace Game.Network.Packets
} }
} }
public bool VoiceEnabled { get; set; } public bool VoiceEnabled;
public bool BrowserEnabled { get; set; } public bool BrowserEnabled;
public bool BpayStoreAvailable { get; set; } public bool BpayStoreAvailable;
public bool RecruitAFriendSendingEnabled { get; set; } public bool RecruitAFriendSendingEnabled;
public bool BpayStoreEnabled { get; set; } public bool BpayStoreEnabled;
public Optional<SessionAlertConfig> SessionAlert { get; set; } public Optional<SessionAlertConfig> SessionAlert;
public uint ScrollOfResurrectionMaxRequestsPerDay { get; set; } public uint ScrollOfResurrectionMaxRequestsPerDay;
public bool ScrollOfResurrectionEnabled { get; set; } public bool ScrollOfResurrectionEnabled;
public Optional<EuropaTicketConfig> EuropaTicketSystemStatus; public Optional<EuropaTicketConfig> EuropaTicketSystemStatus;
public uint ScrollOfResurrectionRequestsRemaining { get; set; } public uint ScrollOfResurrectionRequestsRemaining;
public uint CfgRealmID { get; set; } public uint CfgRealmID;
public byte ComplaintStatus { get; set; } public byte ComplaintStatus;
public int CfgRealmRecID { get; set; } public int CfgRealmRecID;
public uint TwitterPostThrottleLimit { get; set; } public uint TwitterPostThrottleLimit;
public uint TwitterPostThrottleCooldown { get; set; } public uint TwitterPostThrottleCooldown;
public uint TokenPollTimeSeconds { get; set; } public uint TokenPollTimeSeconds;
public uint TokenRedeemIndex { get; set; } public uint TokenRedeemIndex;
public long TokenBalanceAmount { get; set; } public long TokenBalanceAmount;
public bool ItemRestorationButtonEnabled { get; set; } public bool ItemRestorationButtonEnabled;
public bool CharUndeleteEnabled; // Implemented public bool CharUndeleteEnabled; // Implemented
public bool BpayStoreDisabledByParentalControls { get; set; } public bool BpayStoreDisabledByParentalControls;
public bool TwitterEnabled { get; set; } public bool TwitterEnabled;
public bool CommerceSystemEnabled { get; set; } public bool CommerceSystemEnabled;
public bool Unk67 { get; set; } public bool Unk67;
public bool WillKickFromWorld { get; set; } public bool WillKickFromWorld;
public bool RestrictedAccount { get; set; } public bool RestrictedAccount;
public bool TutorialsEnabled { get; set; } public bool TutorialsEnabled;
public bool NPETutorialsEnabled { get; set; } public bool NPETutorialsEnabled;
public bool KioskModeEnabled { get; set; } public bool KioskModeEnabled;
public bool CompetitiveModeEnabled { get; set; } public bool CompetitiveModeEnabled;
public bool TokenBalanceEnabled { get; set; } public bool TokenBalanceEnabled;
public Optional<List<byte>> RaceClassExpansionLevels { get; set; } public Optional<List<byte>> RaceClassExpansionLevels;
public SocialQueueConfig QuickJoinConfig { get; set; } public SocialQueueConfig QuickJoinConfig;
public struct SavedThrottleObjectState public struct SavedThrottleObjectState
{ {
public uint MaxTries { get; set; } public uint MaxTries;
public uint PerMilliseconds { get; set; } public uint PerMilliseconds;
public uint TryCount { get; set; } public uint TryCount;
public uint LastResetTimeBeforeNow { get; set; } public uint LastResetTimeBeforeNow;
} }
public struct EuropaTicketConfig public struct EuropaTicketConfig
{ {
public bool TicketsEnabled { get; set; } public bool TicketsEnabled;
public bool BugsEnabled { get; set; } public bool BugsEnabled;
public bool ComplaintsEnabled { get; set; } public bool ComplaintsEnabled;
public bool SuggestionsEnabled { get; set; } public bool SuggestionsEnabled;
public SavedThrottleObjectState ThrottleState; public SavedThrottleObjectState ThrottleState;
} }
public struct SessionAlertConfig public struct SessionAlertConfig
{ {
public int Delay { get; set; } public int Delay;
public int Period { get; set; } public int Period;
public int DisplayTime { get; set; } public int DisplayTime;
} }
public struct SocialQueueConfig public struct SocialQueueConfig
{ {
public bool ToastsDisabled { get; set; } public bool ToastsDisabled;
public float ToastDuration { get; set; } public float ToastDuration;
public float DelayDuration { get; set; } public float DelayDuration;
public float QueueMultiplier { get; set; } public float QueueMultiplier;
public float PlayerMultiplier { get; set; } public float PlayerMultiplier;
public float PlayerFriendValue { get; set; } public float PlayerFriendValue;
public float PlayerGuildValue { get; set; } public float PlayerGuildValue;
public float ThrottleInitialThreshold { get; set; } public float ThrottleInitialThreshold;
public float ThrottleDecayTime { get; set; } public float ThrottleDecayTime;
public float ThrottlePrioritySpike { get; set; } public float ThrottlePrioritySpike;
public float ThrottleMinThreshold { get; set; } public float ThrottleMinThreshold;
public float ThrottlePvPPriorityNormal { get; set; } public float ThrottlePvPPriorityNormal;
public float ThrottlePvPPriorityLow { get; set; } public float ThrottlePvPPriorityLow;
public float ThrottlePvPHonorThreshold { get; set; } public float ThrottlePvPHonorThreshold;
public float ThrottleLfgListPriorityDefault { get; set; } public float ThrottleLfgListPriorityDefault;
public float ThrottleLfgListPriorityAbove { get; set; } public float ThrottleLfgListPriorityAbove;
public float ThrottleLfgListPriorityBelow { get; set; } public float ThrottleLfgListPriorityBelow;
public float ThrottleLfgListIlvlScalingAbove { get; set; } public float ThrottleLfgListIlvlScalingAbove;
public float ThrottleLfgListIlvlScalingBelow { get; set; } public float ThrottleLfgListIlvlScalingBelow;
public float ThrottleRfPriorityAbove { get; set; } public float ThrottleRfPriorityAbove;
public float ThrottleRfIlvlScalingAbove { get; set; } public float ThrottleRfIlvlScalingAbove;
public float ThrottleDfMaxItemLevel { get; set; } public float ThrottleDfMaxItemLevel;
public float ThrottleDfBestPriority { get; set; } public float ThrottleDfBestPriority;
} }
} }
@@ -240,7 +240,7 @@ namespace Game.Network.Packets
public bool BpayStoreAvailable; // NYI public bool BpayStoreAvailable; // NYI
public bool BpayStoreDisabledByParentalControls; // NYI public bool BpayStoreDisabledByParentalControls; // NYI
public bool CharUndeleteEnabled { get; set; } public bool CharUndeleteEnabled;
public bool BpayStoreEnabled; // NYI public bool BpayStoreEnabled; // NYI
public bool CommerceSystemEnabled; // NYI public bool CommerceSystemEnabled; // NYI
public bool Unk14; // NYI public bool Unk14; // NYI
@@ -272,7 +272,7 @@ namespace Game.Network.Packets
} }
} }
public List<string> Text { get; set; } public List<string> Text;
} }
public class SetTimeZoneInformation : ServerPacket public class SetTimeZoneInformation : ServerPacket
@@ -287,7 +287,7 @@ namespace Game.Network.Packets
_worldPacket.WriteString(GameTimeTZ); _worldPacket.WriteString(GameTimeTZ);
} }
public string ServerTimeTZ { get; set; } public string ServerTimeTZ;
public string GameTimeTZ { get; set; } public string GameTimeTZ;
} }
} }
+17 -17
View File
@@ -45,20 +45,20 @@ namespace Game.Network.Packets
} }
} }
public TalentInfoUpdate Info { get; set; } = new TalentInfoUpdate(); public TalentInfoUpdate Info = new TalentInfoUpdate();
public class TalentGroupInfo public class TalentGroupInfo
{ {
public uint SpecID { get; set; } public uint SpecID;
public List<ushort> TalentIDs { get; set; } = new List<ushort>(); public List<ushort> TalentIDs = new List<ushort>();
public List<ushort> PvPTalentIDs { get; set; } = new List<ushort>(); public List<ushort> PvPTalentIDs = new List<ushort>();
} }
public class TalentInfoUpdate public class TalentInfoUpdate
{ {
public byte ActiveGroup { get; set; } public byte ActiveGroup;
public uint PrimarySpecialization { get; set; } public uint PrimarySpecialization;
public List<TalentGroupInfo> TalentGroups { get; set; } = new List<TalentGroupInfo>(); public List<TalentGroupInfo> TalentGroups = new List<TalentGroupInfo>();
} }
} }
@@ -74,7 +74,7 @@ namespace Game.Network.Packets
Talents.Add(_worldPacket.ReadUInt16()); Talents.Add(_worldPacket.ReadUInt16());
} }
public Array<ushort> Talents { get; set; } = new Array<ushort>(PlayerConst.MaxTalentTiers); public Array<ushort> Talents = new Array<ushort>(PlayerConst.MaxTalentTiers);
} }
class RespecWipeConfirm : ServerPacket class RespecWipeConfirm : ServerPacket
@@ -88,9 +88,9 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(RespecMaster); _worldPacket.WritePackedGuid(RespecMaster);
} }
public ObjectGuid RespecMaster { get; set; } public ObjectGuid RespecMaster;
public uint Cost { get; set; } public uint Cost;
public SpecResetType RespecType { get; set; } public SpecResetType RespecType;
} }
class ConfirmRespecWipe : ClientPacket class ConfirmRespecWipe : ClientPacket
@@ -103,8 +103,8 @@ namespace Game.Network.Packets
RespecType = (SpecResetType)_worldPacket.ReadUInt8(); RespecType = (SpecResetType)_worldPacket.ReadUInt8();
} }
public ObjectGuid RespecMaster { get; set; } public ObjectGuid RespecMaster;
public SpecResetType RespecType { get; set; } public SpecResetType RespecType;
} }
class LearnTalentsFailed : ServerPacket class LearnTalentsFailed : ServerPacket
@@ -121,9 +121,9 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt16(talent); _worldPacket.WriteUInt16(talent);
} }
public uint Reason { get; set; } public uint Reason;
public int SpellID; public int SpellID;
public List<ushort> Talents { get; set; } = new List<ushort>(); public List<ushort> Talents = new List<ushort>();
} }
class ActiveGlyphs : ServerPacket class ActiveGlyphs : ServerPacket
@@ -140,8 +140,8 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public List<GlyphBinding> Glyphs { get; set; } = new List<GlyphBinding>(); public List<GlyphBinding> Glyphs = new List<GlyphBinding>();
public bool IsFullUpdate { get; set; } public bool IsFullUpdate;
} }
//Structs //Structs
+12 -12
View File
@@ -30,7 +30,7 @@ namespace Game.Network.Packets
UnitGUID = _worldPacket.ReadPackedGuid(); UnitGUID = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid UnitGUID { get; set; } public ObjectGuid UnitGUID;
} }
class TaxiNodeStatusPkt : ServerPacket class TaxiNodeStatusPkt : ServerPacket
@@ -45,7 +45,7 @@ namespace Game.Network.Packets
} }
public TaxiNodeStatus Status; // replace with TaxiStatus enum public TaxiNodeStatus Status; // replace with TaxiStatus enum
public ObjectGuid Unit { get; set; } public ObjectGuid Unit;
} }
public class ShowTaxiNodes : ServerPacket public class ShowTaxiNodes : ServerPacket
@@ -70,7 +70,7 @@ namespace Game.Network.Packets
} }
public Optional<ShowTaxiNodesWindowInfo> WindowInfo; public Optional<ShowTaxiNodesWindowInfo> WindowInfo;
public byte[] Nodes { get; set; } = null; public byte[] Nodes = null;
} }
class EnableTaxiNode : ClientPacket class EnableTaxiNode : ClientPacket
@@ -82,7 +82,7 @@ namespace Game.Network.Packets
Unit = _worldPacket.ReadPackedGuid(); Unit = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid Unit { get; set; } public ObjectGuid Unit;
} }
class TaxiQueryAvailableNodes : ClientPacket class TaxiQueryAvailableNodes : ClientPacket
@@ -94,7 +94,7 @@ namespace Game.Network.Packets
Unit = _worldPacket.ReadPackedGuid(); Unit = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid Unit { get; set; } public ObjectGuid Unit;
} }
class ActivateTaxi : ClientPacket class ActivateTaxi : ClientPacket
@@ -109,10 +109,10 @@ namespace Game.Network.Packets
FlyingMountID = _worldPacket.ReadUInt32(); FlyingMountID = _worldPacket.ReadUInt32();
} }
public ObjectGuid Vendor { get; set; } public ObjectGuid Vendor;
public uint Node { get; set; } public uint Node;
public uint GroundMountID { get; set; } = 0; public uint GroundMountID = 0;
public uint FlyingMountID { get; set; } = 0; public uint FlyingMountID = 0;
} }
class NewTaxiPath : ServerPacket class NewTaxiPath : ServerPacket
@@ -132,7 +132,7 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public ActivateTaxiReply Reply { get; set; } public ActivateTaxiReply Reply;
} }
class TaxiRequestEarlyLanding : ClientPacket class TaxiRequestEarlyLanding : ClientPacket
@@ -144,7 +144,7 @@ namespace Game.Network.Packets
public struct ShowTaxiNodesWindowInfo public struct ShowTaxiNodesWindowInfo
{ {
public ObjectGuid UnitGUID { get; set; } public ObjectGuid UnitGUID;
public int CurrentNode { get; set; } public int CurrentNode;
} }
} }
+37 -37
View File
@@ -39,7 +39,7 @@ namespace Game.Network.Packets
_worldPacket.WriteInt32(Status); _worldPacket.WriteInt32(Status);
} }
public int Status { get; set; } public int Status;
} }
public class GMTicketGetCaseStatus : ClientPacket public class GMTicketGetCaseStatus : ClientPacket
@@ -74,18 +74,18 @@ namespace Game.Network.Packets
} }
} }
public List<GMTicketCase> Cases { get; set; } = new List<GMTicketCase>(); public List<GMTicketCase> Cases = new List<GMTicketCase>();
public struct GMTicketCase public struct GMTicketCase
{ {
public int CaseID { get; set; } public int CaseID;
public int CaseOpened { get; set; } public int CaseOpened;
public int CaseStatus { get; set; } public int CaseStatus;
public short CfgRealmID { get; set; } public short CfgRealmID;
public long CharacterID { get; set; } public long CharacterID;
public int WaitTimeOverrideMinutes { get; set; } public int WaitTimeOverrideMinutes;
public string Url { get; set; } public string Url;
public string WaitTimeOverrideMessage { get; set; } public string WaitTimeOverrideMessage;
} }
} }
@@ -103,8 +103,8 @@ namespace Game.Network.Packets
public class SupportTicketSubmitBug : ClientPacket public class SupportTicketSubmitBug : ClientPacket
{ {
public SupportTicketHeader Header { get; set; } public SupportTicketHeader Header;
public string Note { get; set; } public string Note;
public SupportTicketSubmitBug(WorldPacket packet) : base(packet) { } public SupportTicketSubmitBug(WorldPacket packet) : base(packet) { }
@@ -117,8 +117,8 @@ namespace Game.Network.Packets
public class SupportTicketSubmitSuggestion : ClientPacket public class SupportTicketSubmitSuggestion : ClientPacket
{ {
public SupportTicketHeader Header { get; set; } public SupportTicketHeader Header;
public string Note { get; set; } public string Note;
public SupportTicketSubmitSuggestion(WorldPacket packet) : base(packet) { } public SupportTicketSubmitSuggestion(WorldPacket packet) : base(packet) { }
@@ -189,11 +189,11 @@ namespace Game.Network.Packets
} }
} }
public SupportTicketHeader Header { get; set; } public SupportTicketHeader Header;
public SupportTicketChatLog ChatLog { get; set; } public SupportTicketChatLog ChatLog;
public ObjectGuid TargetCharacterGUID { get; set; } public ObjectGuid TargetCharacterGUID;
public byte ComplaintType { get; set; } public byte ComplaintType;
public string Note { get; set; } public string Note;
public Optional<SupportTicketMailInfo> MailInfo; public Optional<SupportTicketMailInfo> MailInfo;
public Optional<SupportTicketCalendarEventInfo> CalenderInfo; public Optional<SupportTicketCalendarEventInfo> CalenderInfo;
public Optional<SupportTicketPetInfo> PetInfo; public Optional<SupportTicketPetInfo> PetInfo;
@@ -203,8 +203,8 @@ namespace Game.Network.Packets
public struct SupportTicketChatLine public struct SupportTicketChatLine
{ {
public uint Timestamp { get; set; } public uint Timestamp;
public string Text { get; set; } public string Text;
public SupportTicketChatLine(WorldPacket data) public SupportTicketChatLine(WorldPacket data)
{ {
@@ -240,7 +240,7 @@ namespace Game.Network.Packets
ReportLineIndex.Value = data.ReadUInt32(); ReportLineIndex.Value = data.ReadUInt32();
} }
public List<SupportTicketChatLine> Lines { get; set; } = new List<SupportTicketChatLine>(); public List<SupportTicketChatLine> Lines = new List<SupportTicketChatLine>();
public Optional<uint> ReportLineIndex; public Optional<uint> ReportLineIndex;
} }
@@ -373,7 +373,7 @@ namespace Game.Network.Packets
} }
} }
public SupportSpamType ComplaintType { get; set; } public SupportSpamType ComplaintType;
ComplaintOffender Offender; ComplaintOffender Offender;
uint MailID; uint MailID;
ComplaintChat Chat; ComplaintChat Chat;
@@ -390,9 +390,9 @@ namespace Game.Network.Packets
TimeSinceOffence = data.ReadUInt32(); TimeSinceOffence = data.ReadUInt32();
} }
public ObjectGuid PlayerGuid { get; set; } public ObjectGuid PlayerGuid;
public uint RealmAddress { get; set; } public uint RealmAddress;
public uint TimeSinceOffence { get; set; } public uint TimeSinceOffence;
} }
struct ComplaintChat struct ComplaintChat
@@ -404,9 +404,9 @@ namespace Game.Network.Packets
MessageLog = data.ReadString(data.ReadBits<uint>(12)); MessageLog = data.ReadString(data.ReadBits<uint>(12));
} }
public uint Command { get; set; } public uint Command;
public uint ChannelID { get; set; } public uint ChannelID;
public string MessageLog { get; set; } public string MessageLog;
} }
} }
@@ -420,8 +420,8 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt8(Result); _worldPacket.WriteUInt8(Result);
} }
public SupportSpamType ComplaintType { get; set; } public SupportSpamType ComplaintType;
public byte Result { get; set; } public byte Result;
} }
class BugReport : ClientPacket class BugReport : ClientPacket
@@ -437,9 +437,9 @@ namespace Game.Network.Packets
Text = _worldPacket.ReadString(textLen); Text = _worldPacket.ReadString(textLen);
} }
public uint Type { get; set; } public uint Type;
public string Text { get; set; } public string Text;
public string DiagInfo { get; set; } public string DiagInfo;
} }
//Structs //Structs
@@ -452,8 +452,8 @@ namespace Game.Network.Packets
Facing = packet.ReadFloat(); Facing = packet.ReadFloat();
} }
public uint MapID { get; set; } public uint MapID;
public Vector3 Position { get; set; } public Vector3 Position;
public float Facing { get; set; } public float Facing;
} }
} }
+11 -11
View File
@@ -29,7 +29,7 @@ namespace Game.Network.Packets
UnkInt = _worldPacket.ReadUInt32(); UnkInt = _worldPacket.ReadUInt32();
} }
public uint UnkInt { get; set; } public uint UnkInt;
} }
class UpdateListedAuctionableTokensResponse : ServerPacket class UpdateListedAuctionableTokensResponse : ServerPacket
@@ -53,16 +53,16 @@ namespace Game.Network.Packets
} }
public uint UnkInt; // send CMSG_UPDATE_WOW_TOKEN_AUCTIONABLE_LIST public uint UnkInt; // send CMSG_UPDATE_WOW_TOKEN_AUCTIONABLE_LIST
public TokenResult Result { get; set; } public TokenResult Result;
List<AuctionableTokenAuctionable> AuctionableTokenAuctionableList =new List<AuctionableTokenAuctionable>(); List<AuctionableTokenAuctionable> AuctionableTokenAuctionableList =new List<AuctionableTokenAuctionable>();
struct AuctionableTokenAuctionable struct AuctionableTokenAuctionable
{ {
public ulong UnkInt1 { get; set; } public ulong UnkInt1;
public uint UnkInt2 { get; set; } public uint UnkInt2;
public uint Owner { get; set; } public uint Owner;
public ulong BuyoutPrice { get; set; } public ulong BuyoutPrice;
public uint EndTime { get; set; } public uint EndTime;
} }
} }
@@ -75,7 +75,7 @@ namespace Game.Network.Packets
UnkInt = _worldPacket.ReadUInt32(); UnkInt = _worldPacket.ReadUInt32();
} }
public uint UnkInt { get; set; } public uint UnkInt;
} }
class WowTokenMarketPriceResponse : ServerPacket class WowTokenMarketPriceResponse : ServerPacket
@@ -90,9 +90,9 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(UnkInt2); _worldPacket.WriteUInt32(UnkInt2);
} }
public ulong CurrentMarketPrice { get; set; } public ulong CurrentMarketPrice;
public uint UnkInt; // send CMSG_REQUEST_WOW_TOKEN_MARKET_PRICE public uint UnkInt; // send CMSG_REQUEST_WOW_TOKEN_MARKET_PRICE
public TokenResult Result { get; set; } public TokenResult Result;
public uint UnkInt2 { get; set; } = 0; public uint UnkInt2 = 0;
} }
} }
+11 -11
View File
@@ -30,8 +30,8 @@ namespace Game.Network.Packets
TotemGUID = _worldPacket.ReadPackedGuid(); TotemGUID = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid TotemGUID { get; set; } public ObjectGuid TotemGUID;
public byte Slot { get; set; } public byte Slot;
} }
class TotemCreated : ServerPacket class TotemCreated : ServerPacket
@@ -49,12 +49,12 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public ObjectGuid Totem { get; set; } public ObjectGuid Totem;
public uint SpellID { get; set; } public uint SpellID;
public uint Duration { get; set; } public uint Duration;
public byte Slot { get; set; } public byte Slot;
public float TimeMod { get; set; } = 1.0f; public float TimeMod = 1.0f;
public bool CannotDismiss { get; set; } public bool CannotDismiss;
} }
class TotemMoved : ServerPacket class TotemMoved : ServerPacket
@@ -68,8 +68,8 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(Totem); _worldPacket.WritePackedGuid(Totem);
} }
public ObjectGuid Totem { get; set; } public ObjectGuid Totem;
public byte Slot { get; set; } public byte Slot;
public byte NewSlot { get; set; } public byte NewSlot;
} }
} }
+5 -5
View File
@@ -30,7 +30,7 @@ namespace Game.Network.Packets
Guid = _worldPacket.ReadPackedGuid(); Guid = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
} }
class UseToy : ClientPacket class UseToy : ClientPacket
@@ -43,8 +43,8 @@ namespace Game.Network.Packets
Cast.Read(_worldPacket); Cast.Read(_worldPacket);
} }
public SpellCastRequest Cast { get; set; } = new SpellCastRequest(); public SpellCastRequest Cast = new SpellCastRequest();
public uint ItemID { get; set; } public uint ItemID;
} }
class AccountToysUpdate : ServerPacket class AccountToysUpdate : ServerPacket
@@ -69,7 +69,7 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public bool IsFullUpdate { get; set; } = false; public bool IsFullUpdate = false;
public Dictionary<uint, bool> Toys { get; set; } = new Dictionary<uint, bool>(); public Dictionary<uint, bool> Toys = new Dictionary<uint, bool>();
} }
} }
+41 -41
View File
@@ -31,7 +31,7 @@ namespace Game.Network.Packets
StateIndex = _worldPacket.ReadUInt32(); StateIndex = _worldPacket.ReadUInt32();
} }
public uint StateIndex { get; set; } public uint StateIndex;
} }
public class BeginTrade : ClientPacket public class BeginTrade : ClientPacket
@@ -64,7 +64,7 @@ namespace Game.Network.Packets
TradeSlot = _worldPacket.ReadUInt8(); TradeSlot = _worldPacket.ReadUInt8();
} }
public byte TradeSlot { get; set; } public byte TradeSlot;
} }
public class IgnoreTrade : ClientPacket public class IgnoreTrade : ClientPacket
@@ -83,7 +83,7 @@ namespace Game.Network.Packets
Guid = _worldPacket.ReadPackedGuid(); Guid = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
} }
public class SetTradeCurrency : ClientPacket public class SetTradeCurrency : ClientPacket
@@ -96,8 +96,8 @@ namespace Game.Network.Packets
Quantity = _worldPacket.ReadUInt32(); Quantity = _worldPacket.ReadUInt32();
} }
public uint Type { get; set; } public uint Type;
public uint Quantity { get; set; } public uint Quantity;
} }
public class SetTradeGold : ClientPacket public class SetTradeGold : ClientPacket
@@ -109,7 +109,7 @@ namespace Game.Network.Packets
Coinage = _worldPacket.ReadUInt64(); Coinage = _worldPacket.ReadUInt64();
} }
public ulong Coinage { get; set; } public ulong Coinage;
} }
public class SetTradeItem : ClientPacket public class SetTradeItem : ClientPacket
@@ -123,9 +123,9 @@ namespace Game.Network.Packets
ItemSlotInPack = _worldPacket.ReadUInt8(); ItemSlotInPack = _worldPacket.ReadUInt8();
} }
public byte TradeSlot { get; set; } public byte TradeSlot;
public byte PackSlot { get; set; } public byte PackSlot;
public byte ItemSlotInPack { get; set; } public byte ItemSlotInPack;
} }
public class UnacceptTrade : ClientPacket public class UnacceptTrade : ClientPacket
@@ -172,17 +172,17 @@ namespace Game.Network.Packets
} }
} }
public TradeStatus Status { get; set; } = TradeStatus.Initiated; public TradeStatus Status = TradeStatus.Initiated;
public byte TradeSlot { get; set; } public byte TradeSlot;
public ObjectGuid PartnerAccount { get; set; } public ObjectGuid PartnerAccount;
public ObjectGuid Partner { get; set; } public ObjectGuid Partner;
public int CurrencyType { get; set; } public int CurrencyType;
public int CurrencyQuantity { get; set; } public int CurrencyQuantity;
public bool FailureForYou { get; set; } public bool FailureForYou;
public InventoryResult BagResult { get; set; } public InventoryResult BagResult;
public uint ItemID; public uint ItemID;
public uint ID { get; set; } public uint ID;
public bool PartnerIsSameBnetAccount { get; set; } public bool PartnerIsSameBnetAccount;
} }
public class TradeUpdated : ServerPacket public class TradeUpdated : ServerPacket
@@ -222,15 +222,15 @@ namespace Game.Network.Packets
gem.Write(data); gem.Write(data);
} }
public ItemInstance Item { get; set; } public ItemInstance Item;
public int EnchantID { get; set; } public int EnchantID;
public int OnUseEnchantmentID { get; set; } public int OnUseEnchantmentID;
public ObjectGuid Creator { get; set; } public ObjectGuid Creator;
public int Charges { get; set; } public int Charges;
public bool Lock { get; set; } public bool Lock;
public uint MaxDurability { get; set; } public uint MaxDurability;
public uint Durability { get; set; } public uint Durability;
public List<ItemGemData> Gems { get; set; } = new List<ItemGemData>(); public List<ItemGemData> Gems = new List<ItemGemData>();
} }
public class TradeItem public class TradeItem
@@ -248,21 +248,21 @@ namespace Game.Network.Packets
Unwrapped.Value.Write(data); Unwrapped.Value.Write(data);
} }
public byte Slot { get; set; } public byte Slot;
public ItemInstance Item { get; set; } = new ItemInstance(); public ItemInstance Item = new ItemInstance();
public int StackCount { get; set; } public int StackCount;
public ObjectGuid GiftCreator { get; set; } public ObjectGuid GiftCreator;
public Optional<UnwrappedTradeItem> Unwrapped; public Optional<UnwrappedTradeItem> Unwrapped;
} }
public ulong Gold { get; set; } public ulong Gold;
public uint CurrentStateIndex { get; set; } public uint CurrentStateIndex;
public byte WhichPlayer { get; set; } public byte WhichPlayer;
public uint ClientStateIndex { get; set; } public uint ClientStateIndex;
public List<TradeItem> Items { get; set; } = new List<TradeItem>(); public List<TradeItem> Items = new List<TradeItem>();
public int CurrencyType { get; set; } public int CurrencyType;
public uint ID { get; set; } public uint ID;
public int ProposedEnchantment { get; set; } public int ProposedEnchantment;
public int CurrencyQuantity { get; set; } public int CurrencyQuantity;
} }
} }
@@ -40,9 +40,9 @@ namespace Game.Network.Packets
CurrentSpecOnly = _worldPacket.HasBit(); CurrentSpecOnly = _worldPacket.HasBit();
} }
public ObjectGuid Npc { get; set; } public ObjectGuid Npc;
public Array<TransmogrifyItem> Items { get; set; } = new Array<TransmogrifyItem>(13); public Array<TransmogrifyItem> Items = new Array<TransmogrifyItem>(13);
public bool CurrentSpecOnly { get; set; } public bool CurrentSpecOnly;
} }
class TransmogCollectionUpdate : ServerPacket class TransmogCollectionUpdate : ServerPacket
@@ -59,9 +59,9 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(itemModifiedAppearanceId); _worldPacket.WriteUInt32(itemModifiedAppearanceId);
} }
public bool IsFullUpdate { get; set; } public bool IsFullUpdate;
public bool IsSetFavorite { get; set; } public bool IsSetFavorite;
public List<uint> FavoriteAppearances { get; set; } = new List<uint>(); public List<uint> FavoriteAppearances = new List<uint>();
} }
struct TransmogrifyItem struct TransmogrifyItem
@@ -73,8 +73,8 @@ namespace Game.Network.Packets
SpellItemEnchantmentID = data.ReadInt32(); SpellItemEnchantmentID = data.ReadInt32();
} }
public int ItemModifiedAppearanceID { get; set; } public int ItemModifiedAppearanceID;
public uint Slot { get; set; } public uint Slot;
public int SpellItemEnchantmentID { get; set; } public int SpellItemEnchantmentID;
} }
} }
+3 -3
View File
@@ -30,8 +30,8 @@ namespace Game.Network.Packets
_worldPacket.WriteBytes(Data); _worldPacket.WriteBytes(Data);
} }
public uint NumObjUpdates { get; set; } public uint NumObjUpdates;
public ushort MapID { get; set; } public ushort MapID;
public byte[] Data { get; set; } public byte[] Data;
} }
} }
+15 -15
View File
@@ -31,9 +31,9 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(VehicleRecID); _worldPacket.WriteUInt32(VehicleRecID);
} }
public ObjectGuid MoverGUID { get; set; } public ObjectGuid MoverGUID;
public uint SequenceIndex { get; set; } public uint SequenceIndex;
public uint VehicleRecID { get; set; } public uint VehicleRecID;
} }
public class MoveSetVehicleRecIdAck : ClientPacket public class MoveSetVehicleRecIdAck : ClientPacket
@@ -46,8 +46,8 @@ namespace Game.Network.Packets
VehicleRecID = _worldPacket.ReadInt32(); ; VehicleRecID = _worldPacket.ReadInt32(); ;
} }
public MovementAck Data { get; set; } public MovementAck Data;
public int VehicleRecID { get; set; } public int VehicleRecID;
} }
public class SetVehicleRecID : ServerPacket public class SetVehicleRecID : ServerPacket
@@ -60,8 +60,8 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(VehicleRecID); _worldPacket.WriteUInt32(VehicleRecID);
} }
public ObjectGuid VehicleGUID { get; set; } public ObjectGuid VehicleGUID;
public uint VehicleRecID { get; set; } public uint VehicleRecID;
} }
public class OnCancelExpectedRideVehicleAura : ServerPacket public class OnCancelExpectedRideVehicleAura : ServerPacket
@@ -80,7 +80,7 @@ namespace Game.Network.Packets
Status = MovementExtensions.ReadMovementInfo(_worldPacket); Status = MovementExtensions.ReadMovementInfo(_worldPacket);
} }
public MovementInfo Status { get; set; } public MovementInfo Status;
} }
public class RequestVehiclePrevSeat : ClientPacket public class RequestVehiclePrevSeat : ClientPacket
@@ -108,9 +108,9 @@ namespace Game.Network.Packets
DstSeatIndex = _worldPacket.ReadUInt8(); DstSeatIndex = _worldPacket.ReadUInt8();
} }
public ObjectGuid DstVehicle { get; set; } public ObjectGuid DstVehicle;
public MovementInfo Status { get; set; } public MovementInfo Status;
public byte DstSeatIndex { get; set; } = 255; public byte DstSeatIndex = 255;
} }
public class RequestVehicleSwitchSeat : ClientPacket public class RequestVehicleSwitchSeat : ClientPacket
@@ -123,8 +123,8 @@ namespace Game.Network.Packets
SeatIndex = _worldPacket.ReadUInt8(); SeatIndex = _worldPacket.ReadUInt8();
} }
public ObjectGuid Vehicle { get; set; } public ObjectGuid Vehicle;
public byte SeatIndex { get; set; } = 255; public byte SeatIndex = 255;
} }
public class RideVehicleInteract : ClientPacket public class RideVehicleInteract : ClientPacket
@@ -136,7 +136,7 @@ namespace Game.Network.Packets
Vehicle = _worldPacket.ReadPackedGuid(); Vehicle = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid Vehicle { get; set; } public ObjectGuid Vehicle;
} }
public class EjectPassenger : ClientPacket public class EjectPassenger : ClientPacket
@@ -148,7 +148,7 @@ namespace Game.Network.Packets
Passenger = _worldPacket.ReadPackedGuid(); Passenger = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid Passenger { get; set; } public ObjectGuid Passenger;
} }
public class RequestVehicleExit : ClientPacket public class RequestVehicleExit : ClientPacket
@@ -33,7 +33,7 @@ namespace Game.Network.Packets
_worldPacket.WriteInt32(Result); _worldPacket.WriteInt32(Result);
} }
public VoidTransferError Result { get; set; } public VoidTransferError Result;
} }
class UnlockVoidStorage : ClientPacket class UnlockVoidStorage : ClientPacket
@@ -45,7 +45,7 @@ namespace Game.Network.Packets
Npc = _worldPacket.ReadPackedGuid(); Npc = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid Npc { get; set; } public ObjectGuid Npc;
} }
class QueryVoidStorage : ClientPacket class QueryVoidStorage : ClientPacket
@@ -57,7 +57,7 @@ namespace Game.Network.Packets
Npc = _worldPacket.ReadPackedGuid(); Npc = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid Npc { get; set; } public ObjectGuid Npc;
} }
class VoidStorageFailed : ServerPacket class VoidStorageFailed : ServerPacket
@@ -69,7 +69,7 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt8(Reason); _worldPacket.WriteUInt8(Reason);
} }
public byte Reason { get; set; } = 0; public byte Reason = 0;
} }
class VoidStorageContents : ServerPacket class VoidStorageContents : ServerPacket
@@ -85,7 +85,7 @@ namespace Game.Network.Packets
voidItem.Write(_worldPacket); voidItem.Write(_worldPacket);
} }
public List<VoidItem> Items { get; set; } = new List<VoidItem>(); public List<VoidItem> Items = new List<VoidItem>();
} }
class VoidStorageTransfer : ClientPacket class VoidStorageTransfer : ClientPacket
@@ -105,9 +105,9 @@ namespace Game.Network.Packets
Withdrawals[i] = _worldPacket.ReadPackedGuid(); Withdrawals[i] = _worldPacket.ReadPackedGuid();
} }
public ObjectGuid[] Withdrawals { get; set; } = new ObjectGuid[(int)SharedConst.VoidStorageMaxWithdraw]; public ObjectGuid[] Withdrawals = new ObjectGuid[(int)SharedConst.VoidStorageMaxWithdraw];
public ObjectGuid[] Deposits { get; set; } = new ObjectGuid[(int)SharedConst.VoidStorageMaxDeposit]; public ObjectGuid[] Deposits = new ObjectGuid[(int)SharedConst.VoidStorageMaxDeposit];
public ObjectGuid Npc { get; set; } public ObjectGuid Npc;
} }
class VoidStorageTransferChanges : ServerPacket class VoidStorageTransferChanges : ServerPacket
@@ -127,8 +127,8 @@ namespace Game.Network.Packets
_worldPacket.WritePackedGuid(removedItem); _worldPacket.WritePackedGuid(removedItem);
} }
public List<ObjectGuid> RemovedItems { get; set; } = new List<ObjectGuid>(); public List<ObjectGuid> RemovedItems = new List<ObjectGuid>();
public List<VoidItem> AddedItems { get; set; } = new List<VoidItem>(); public List<VoidItem> AddedItems = new List<VoidItem>();
} }
class SwapVoidItem : ClientPacket class SwapVoidItem : ClientPacket
@@ -142,9 +142,9 @@ namespace Game.Network.Packets
DstSlot = _worldPacket.ReadUInt32(); DstSlot = _worldPacket.ReadUInt32();
} }
public ObjectGuid Npc { get; set; } public ObjectGuid Npc;
public ObjectGuid VoidItemGuid { get; set; } public ObjectGuid VoidItemGuid;
public uint DstSlot { get; set; } public uint DstSlot;
} }
class VoidItemSwapResponse : ServerPacket class VoidItemSwapResponse : ServerPacket
@@ -159,10 +159,10 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(VoidItemSlotB); _worldPacket.WriteUInt32(VoidItemSlotB);
} }
public ObjectGuid VoidItemA { get; set; } public ObjectGuid VoidItemA;
public ObjectGuid VoidItemB { get; set; } public ObjectGuid VoidItemB;
public uint VoidItemSlotA { get; set; } public uint VoidItemSlotA;
public uint VoidItemSlotB { get; set; } public uint VoidItemSlotB;
} }
struct VoidItem struct VoidItem
@@ -175,9 +175,9 @@ namespace Game.Network.Packets
Item.Write(data); Item.Write(data);
} }
public ObjectGuid Guid { get; set; } public ObjectGuid Guid;
public ObjectGuid Creator { get; set; } public ObjectGuid Creator;
public uint Slot { get; set; } public uint Slot;
public ItemInstance Item { get; set; } public ItemInstance Item;
} }
} }
+35 -35
View File
@@ -51,7 +51,7 @@ namespace Game.Network.Packets
Data = new ByteBuffer(_worldPacket.ReadBytes(size)); Data = new ByteBuffer(_worldPacket.ReadBytes(size));
} }
public ByteBuffer Data { get; set; } public ByteBuffer Data;
} }
class WardenDataServer : ServerPacket class WardenDataServer : ServerPacket
@@ -63,7 +63,7 @@ namespace Game.Network.Packets
_worldPacket.WriteBytes(Data); _worldPacket.WriteBytes(Data);
} }
public ByteBuffer Data { get; set; } public ByteBuffer Data;
} }
class WardenModuleTransfer : ByteBuffer class WardenModuleTransfer : ByteBuffer
@@ -77,9 +77,9 @@ namespace Game.Network.Packets
return GetData(); return GetData();
} }
public WardenOpcodes Command { get; set; } public WardenOpcodes Command;
public ushort DataSize { get; set; } public ushort DataSize;
public byte[] Data { get; set; } = new byte[500]; public byte[] Data = new byte[500];
} }
class WardenModuleUse : ByteBuffer class WardenModuleUse : ByteBuffer
@@ -94,10 +94,10 @@ namespace Game.Network.Packets
return GetData(); return GetData();
} }
public WardenOpcodes Command { get; set; } public WardenOpcodes Command;
public byte[] ModuleId { get; set; } = new byte[16]; public byte[] ModuleId = new byte[16];
public byte[] ModuleKey { get; set; } = new byte[16]; public byte[] ModuleKey = new byte[16];
public uint Size { get; set; } public uint Size;
} }
class WardenHashRequest : ByteBuffer class WardenHashRequest : ByteBuffer
@@ -110,8 +110,8 @@ namespace Game.Network.Packets
return GetData(); return GetData();
} }
public WardenOpcodes Command { get; set; } public WardenOpcodes Command;
public byte[] Seed { get; set; } = new byte[16]; public byte[] Seed = new byte[16];
} }
class WardenInitModuleRequest : ByteBuffer class WardenInitModuleRequest : ByteBuffer
@@ -149,31 +149,31 @@ namespace Game.Network.Packets
return GetData(); return GetData();
} }
public WardenOpcodes Command1 { get; set; } public WardenOpcodes Command1;
public ushort Size1 { get; set; } public ushort Size1;
public uint CheckSumm1 { get; set; } public uint CheckSumm1;
public byte Unk1 { get; set; } public byte Unk1;
public byte Unk2 { get; set; } public byte Unk2;
public byte Type { get; set; } public byte Type;
public byte String_library1 { get; set; } public byte String_library1;
public uint[] Function1 { get; set; } = new uint[4]; public uint[] Function1 = new uint[4];
public WardenOpcodes Command2 { get; set; } public WardenOpcodes Command2;
public ushort Size2 { get; set; } public ushort Size2;
public uint CheckSumm2 { get; set; } public uint CheckSumm2;
public byte Unk3 { get; set; } public byte Unk3;
public byte Unk4 { get; set; } public byte Unk4;
public byte String_library2 { get; set; } public byte String_library2;
public uint Function2 { get; set; } public uint Function2;
public byte Function2_set { get; set; } public byte Function2_set;
public WardenOpcodes Command3 { get; set; } public WardenOpcodes Command3;
public ushort Size3 { get; set; } public ushort Size3;
public uint CheckSumm3 { get; set; } public uint CheckSumm3;
public byte Unk5 { get; set; } public byte Unk5;
public byte Unk6 { get; set; } public byte Unk6;
public byte String_library3 { get; set; } public byte String_library3;
public uint Function3 { get; set; } public uint Function3;
public byte Function3_set { get; set; } public byte Function3_set;
} }
} }
+25 -25
View File
@@ -44,7 +44,7 @@ namespace Game.Network.Packets
_worldPacket.WriteString(AccountName); _worldPacket.WriteString(AccountName);
} }
public string AccountName { get; set; } public string AccountName;
} }
public class WhoRequestPkt : ClientPacket public class WhoRequestPkt : ClientPacket
@@ -61,8 +61,8 @@ namespace Game.Network.Packets
Areas.Add(_worldPacket.ReadInt32()); Areas.Add(_worldPacket.ReadInt32());
} }
public WhoRequest Request { get; set; } = new WhoRequest(); public WhoRequest Request = new WhoRequest();
public List<int> Areas{ get; set; } = new List<int>(); public List<int> Areas= new List<int>();
} }
public class WhoResponsePkt : ServerPacket public class WhoResponsePkt : ServerPacket
@@ -77,7 +77,7 @@ namespace Game.Network.Packets
Response.ForEach(p => p.Write(_worldPacket)); Response.ForEach(p => p.Write(_worldPacket));
} }
public List<WhoEntry> Response { get; set; } = new List<WhoEntry>(); public List<WhoEntry> Response = new List<WhoEntry>();
} }
public struct WhoRequestServerInfo public struct WhoRequestServerInfo
@@ -89,9 +89,9 @@ namespace Game.Network.Packets
RequesterVirtualRealmAddress = data.ReadUInt32(); RequesterVirtualRealmAddress = data.ReadUInt32();
} }
public int FactionGroup { get; set; } public int FactionGroup;
public int Locale { get; set; } public int Locale;
public uint RequesterVirtualRealmAddress { get; set; } public uint RequesterVirtualRealmAddress;
} }
public class WhoRequest public class WhoRequest
@@ -130,18 +130,18 @@ namespace Game.Network.Packets
ServerInfo.Value.Read(data); ServerInfo.Value.Read(data);
} }
public int MinLevel { get; set; } public int MinLevel;
public int MaxLevel { get; set; } public int MaxLevel;
public string Name { get; set; } public string Name;
public string VirtualRealmName { get; set; } public string VirtualRealmName;
public string Guild { get; set; } public string Guild;
public string GuildVirtualRealmName { get; set; } public string GuildVirtualRealmName;
public int RaceFilter { get; set; } = -1; public int RaceFilter = -1;
public int ClassFilter { get; set; } = -1; public int ClassFilter = -1;
public List<string> Words { get; set; } = new List<string>(); public List<string> Words = new List<string>();
public bool ShowEnemies { get; set; } public bool ShowEnemies;
public bool ShowArenaPlayers { get; set; } public bool ShowArenaPlayers;
public bool ExactName { get; set; } public bool ExactName;
public Optional<WhoRequestServerInfo> ServerInfo; public Optional<WhoRequestServerInfo> ServerInfo;
} }
@@ -162,11 +162,11 @@ namespace Game.Network.Packets
data.FlushBits(); data.FlushBits();
} }
public PlayerGuidLookupData PlayerData { get; set; } = new PlayerGuidLookupData(); public PlayerGuidLookupData PlayerData = new PlayerGuidLookupData();
public ObjectGuid GuildGUID { get; set; } public ObjectGuid GuildGUID;
public uint GuildVirtualRealmAddress { get; set; } public uint GuildVirtualRealmAddress;
public string GuildName { get; set; } = ""; public string GuildName = "";
public int AreaID { get; set; } public int AreaID;
public bool IsGM { get; set; } public bool IsGM;
} }
} }
@@ -48,9 +48,9 @@ namespace Game.Network.Packets
Worldstates.Add(new WorldStateInfo(variableID, value ? 1 : 0)); Worldstates.Add(new WorldStateInfo(variableID, value ? 1 : 0));
} }
public uint AreaID { get; set; } public uint AreaID;
public uint SubareaID { get; set; } public uint SubareaID;
public uint MapID { get; set; } public uint MapID;
List<WorldStateInfo> Worldstates = new List<WorldStateInfo>(); List<WorldStateInfo> Worldstates = new List<WorldStateInfo>();
@@ -62,8 +62,8 @@ namespace Game.Network.Packets
Value = value; Value = value;
} }
public uint VariableID { get; set; } public uint VariableID;
public int Value { get; set; } public int Value;
} }
} }
@@ -79,8 +79,8 @@ namespace Game.Network.Packets
_worldPacket.FlushBits(); _worldPacket.FlushBits();
} }
public int Value { get; set; } public int Value;
public bool Hidden; // @todo: researh public bool Hidden; // @todo: research
public uint VariableID { get; set; } public uint VariableID;
} }
} }
+1 -1
View File
@@ -169,7 +169,7 @@ namespace Game
foreach (var pair in _forcedReactions) foreach (var pair in _forcedReactions)
{ {
ForcedReaction forcedReaction = new ForcedReaction(); ForcedReaction forcedReaction;
forcedReaction.Faction = (int)pair.Key; forcedReaction.Faction = (int)pair.Key;
forcedReaction.Reaction = (int)pair.Value; forcedReaction.Reaction = (int)pair.Value;
+1 -1
View File
@@ -289,7 +289,7 @@ namespace Game.Scenarios
if (Global.CriteriaMgr.GetCriteriaTree(step.CriteriaTreeID) != null) if (Global.CriteriaMgr.GetCriteriaTree(step.CriteriaTreeID) != null)
{ {
BonusObjectiveData bonusObjectiveData = new BonusObjectiveData(); BonusObjectiveData bonusObjectiveData;
bonusObjectiveData.BonusObjectiveID = (int)step.Id; bonusObjectiveData.BonusObjectiveID = (int)step.Id;
bonusObjectiveData.ObjectiveComplete = GetStepState(step) == ScenarioStepState.Done; bonusObjectiveData.ObjectiveComplete = GetStepState(step) == ScenarioStepState.Done;
bonusObjectivesData.Add(bonusObjectiveData); bonusObjectivesData.Add(bonusObjectiveData);
+11 -11
View File
@@ -3519,7 +3519,7 @@ namespace Game.Spells
{ {
foreach (SpellPowerCost cost in m_powerCost) foreach (SpellPowerCost cost in m_powerCost)
{ {
SpellPowerData powerData = new SpellPowerData(); SpellPowerData powerData;
powerData.Type = cost.Power; powerData.Type = cost.Power;
powerData.Cost = m_caster.GetPower(cost.Power); powerData.Cost = m_caster.GetPower(cost.Power);
castData.RemainingPower.Add(powerData); castData.RemainingPower.Add(powerData);
@@ -3637,7 +3637,7 @@ namespace Game.Spells
castData.RemainingPower = new List<SpellPowerData>(); castData.RemainingPower = new List<SpellPowerData>();
foreach (SpellPowerCost cost in m_powerCost) foreach (SpellPowerCost cost in m_powerCost)
{ {
SpellPowerData powerData = new SpellPowerData(); SpellPowerData powerData;
powerData.Type = cost.Power; powerData.Type = cost.Power;
powerData.Cost = m_caster.GetPower(cost.Power); powerData.Cost = m_caster.GetPower(cost.Power);
castData.RemainingPower.Add(powerData); castData.RemainingPower.Add(powerData);
@@ -3827,7 +3827,7 @@ namespace Game.Spells
void ExecuteLogEffectTakeTargetPower(uint effIndex, Unit target, PowerType powerType, uint points, float amplitude) void ExecuteLogEffectTakeTargetPower(uint effIndex, Unit target, PowerType powerType, uint points, float amplitude)
{ {
SpellLogEffectPowerDrainParams spellLogEffectPowerDrainParams = new SpellLogEffectPowerDrainParams(); SpellLogEffectPowerDrainParams spellLogEffectPowerDrainParams;
spellLogEffectPowerDrainParams.Victim = target.GetGUID(); spellLogEffectPowerDrainParams.Victim = target.GetGUID();
spellLogEffectPowerDrainParams.Points = points; spellLogEffectPowerDrainParams.Points = points;
@@ -3839,7 +3839,7 @@ namespace Game.Spells
void ExecuteLogEffectExtraAttacks(uint effIndex, Unit victim, uint numAttacks) void ExecuteLogEffectExtraAttacks(uint effIndex, Unit victim, uint numAttacks)
{ {
SpellLogEffectExtraAttacksParams spellLogEffectExtraAttacksParams = new SpellLogEffectExtraAttacksParams(); SpellLogEffectExtraAttacksParams spellLogEffectExtraAttacksParams;
spellLogEffectExtraAttacksParams.Victim = victim.GetGUID(); spellLogEffectExtraAttacksParams.Victim = victim.GetGUID();
spellLogEffectExtraAttacksParams.NumAttacks = numAttacks; spellLogEffectExtraAttacksParams.NumAttacks = numAttacks;
@@ -3859,7 +3859,7 @@ namespace Game.Spells
void ExecuteLogEffectDurabilityDamage(uint effIndex, Unit victim, int itemId, int amount) void ExecuteLogEffectDurabilityDamage(uint effIndex, Unit victim, int itemId, int amount)
{ {
SpellLogEffectDurabilityDamageParams spellLogEffectDurabilityDamageParams = new SpellLogEffectDurabilityDamageParams(); SpellLogEffectDurabilityDamageParams spellLogEffectDurabilityDamageParams;
spellLogEffectDurabilityDamageParams.Victim = victim.GetGUID(); spellLogEffectDurabilityDamageParams.Victim = victim.GetGUID();
spellLogEffectDurabilityDamageParams.ItemID = itemId; spellLogEffectDurabilityDamageParams.ItemID = itemId;
spellLogEffectDurabilityDamageParams.Amount = amount; spellLogEffectDurabilityDamageParams.Amount = amount;
@@ -3869,7 +3869,7 @@ namespace Game.Spells
void ExecuteLogEffectOpenLock(uint effIndex, WorldObject obj) void ExecuteLogEffectOpenLock(uint effIndex, WorldObject obj)
{ {
SpellLogEffectGenericVictimParams spellLogEffectGenericVictimParams = new SpellLogEffectGenericVictimParams(); SpellLogEffectGenericVictimParams spellLogEffectGenericVictimParams;
spellLogEffectGenericVictimParams.Victim = obj.GetGUID(); spellLogEffectGenericVictimParams.Victim = obj.GetGUID();
_genericVictimTargets.Add(effIndex, spellLogEffectGenericVictimParams); _genericVictimTargets.Add(effIndex, spellLogEffectGenericVictimParams);
@@ -3877,7 +3877,7 @@ namespace Game.Spells
void ExecuteLogEffectCreateItem(uint effIndex, uint entry) void ExecuteLogEffectCreateItem(uint effIndex, uint entry)
{ {
SpellLogEffectTradeSkillItemParams spellLogEffectTradeSkillItemParams = new SpellLogEffectTradeSkillItemParams(); SpellLogEffectTradeSkillItemParams spellLogEffectTradeSkillItemParams;
spellLogEffectTradeSkillItemParams.ItemID = (int)entry; spellLogEffectTradeSkillItemParams.ItemID = (int)entry;
_tradeSkillTargets.Add(effIndex, spellLogEffectTradeSkillItemParams); _tradeSkillTargets.Add(effIndex, spellLogEffectTradeSkillItemParams);
@@ -3885,7 +3885,7 @@ namespace Game.Spells
void ExecuteLogEffectDestroyItem(uint effIndex, uint entry) void ExecuteLogEffectDestroyItem(uint effIndex, uint entry)
{ {
SpellLogEffectFeedPetParams spellLogEffectFeedPetParams = new SpellLogEffectFeedPetParams(); SpellLogEffectFeedPetParams spellLogEffectFeedPetParams;
spellLogEffectFeedPetParams.ItemID = (int)entry; spellLogEffectFeedPetParams.ItemID = (int)entry;
_feedPetTargets.Add(effIndex, spellLogEffectFeedPetParams); _feedPetTargets.Add(effIndex, spellLogEffectFeedPetParams);
@@ -3893,7 +3893,7 @@ namespace Game.Spells
void ExecuteLogEffectSummonObject(uint effIndex, WorldObject obj) void ExecuteLogEffectSummonObject(uint effIndex, WorldObject obj)
{ {
SpellLogEffectGenericVictimParams spellLogEffectGenericVictimParams = new SpellLogEffectGenericVictimParams(); SpellLogEffectGenericVictimParams spellLogEffectGenericVictimParams;
spellLogEffectGenericVictimParams.Victim = obj.GetGUID(); spellLogEffectGenericVictimParams.Victim = obj.GetGUID();
_genericVictimTargets.Add(effIndex, spellLogEffectGenericVictimParams); _genericVictimTargets.Add(effIndex, spellLogEffectGenericVictimParams);
@@ -3901,7 +3901,7 @@ namespace Game.Spells
void ExecuteLogEffectUnsummonObject(uint effIndex, WorldObject obj) void ExecuteLogEffectUnsummonObject(uint effIndex, WorldObject obj)
{ {
SpellLogEffectGenericVictimParams spellLogEffectGenericVictimParams = new SpellLogEffectGenericVictimParams(); SpellLogEffectGenericVictimParams spellLogEffectGenericVictimParams;
spellLogEffectGenericVictimParams.Victim = obj.GetGUID(); spellLogEffectGenericVictimParams.Victim = obj.GetGUID();
_genericVictimTargets.Add(effIndex, spellLogEffectGenericVictimParams); _genericVictimTargets.Add(effIndex, spellLogEffectGenericVictimParams);
@@ -3909,7 +3909,7 @@ namespace Game.Spells
void ExecuteLogEffectResurrect(uint effIndex, Unit target) void ExecuteLogEffectResurrect(uint effIndex, Unit target)
{ {
SpellLogEffectGenericVictimParams spellLogEffectGenericVictimParams = new SpellLogEffectGenericVictimParams(); SpellLogEffectGenericVictimParams spellLogEffectGenericVictimParams;
spellLogEffectGenericVictimParams.Victim = target.GetGUID(); spellLogEffectGenericVictimParams.Victim = target.GetGUID();
_genericVictimTargets.Add(effIndex, spellLogEffectGenericVictimParams); _genericVictimTargets.Add(effIndex, spellLogEffectGenericVictimParams);