Fixed some (many) "{ get; set; }"
This commit is contained in:
@@ -53,10 +53,10 @@ namespace Game.Arenas
|
||||
$"PreMatchMMR: {PreMatchMMR} PostMatchRating: {PostMatchRating} PostMatchMMR: {PostMatchMMR}";
|
||||
}
|
||||
|
||||
uint PreMatchRating;
|
||||
uint PreMatchMMR;
|
||||
uint PostMatchRating;
|
||||
uint PostMatchMMR;
|
||||
public uint PreMatchRating { get; set; }
|
||||
public uint PreMatchMMR { get; set; }
|
||||
public uint PostMatchRating { get; set; }
|
||||
public uint PostMatchMMR { get; set; }
|
||||
}
|
||||
|
||||
public class ArenaTeamScore
|
||||
|
||||
@@ -431,7 +431,7 @@ namespace Game.BattlePets
|
||||
public List<BattlePetSlot> GetSlots() { return _slots; }
|
||||
|
||||
WorldSession _owner;
|
||||
ushort _trapLevel;
|
||||
private ushort _trapLevel;
|
||||
Dictionary<ulong, BattlePet> _pets = new Dictionary<ulong, BattlePet>();
|
||||
List<BattlePetSlot> _slots = new List<BattlePetSlot>();
|
||||
|
||||
@@ -440,6 +440,8 @@ namespace Game.BattlePets
|
||||
static MultiMap<uint, byte> _availableBreedsPerSpecies = new MultiMap<uint, byte>();
|
||||
static Dictionary<uint, byte> _defaultQualityPerSpecies = new Dictionary<uint, byte>();
|
||||
|
||||
public ushort TrapLevel { get => _trapLevel; set => _trapLevel = value; }
|
||||
|
||||
public class BattlePet
|
||||
{
|
||||
public void CalculateStats()
|
||||
|
||||
@@ -217,7 +217,7 @@ namespace Game.Chat
|
||||
SetSpellModifier packet = new SetSpellModifier(ServerOpcodes.SetFlatSpellModifier);
|
||||
SpellModifierInfo spellMod = new SpellModifierInfo();
|
||||
spellMod.ModIndex = op;
|
||||
SpellModifierData modData;
|
||||
SpellModifierData modData = new SpellModifierData();
|
||||
modData.ClassIndex = spellflatid;
|
||||
modData.ModifierValue = val;
|
||||
spellMod.ModifierData.Add(modData);
|
||||
|
||||
@@ -766,5 +766,8 @@ namespace Game.Entities
|
||||
List<ObjectGuid> _insideUnits = new List<ObjectGuid>();
|
||||
|
||||
AreaTriggerAI _ai;
|
||||
|
||||
public Vector3 RollPitchYaw { get => _rollPitchYaw; set => _rollPitchYaw = value; }
|
||||
public Vector3 TargetRollPitchYaw { get => _targetRollPitchYaw; set => _targetRollPitchYaw = value; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -315,9 +315,9 @@ namespace Game.Entities
|
||||
|
||||
struct PlayerDynamicFieldSpellModByLabel
|
||||
{
|
||||
public uint Mod;
|
||||
public float Value;
|
||||
public uint Label;
|
||||
public uint Mod { get; set; }
|
||||
public float Value { get; set; }
|
||||
public uint Label { get; set; }
|
||||
}
|
||||
|
||||
public class SpecializationInfo
|
||||
|
||||
@@ -418,7 +418,7 @@ namespace Game.Entities
|
||||
{
|
||||
InstanceSave save = pair.Value.save;
|
||||
|
||||
InstanceLockInfos lockInfos;
|
||||
InstanceLockInfos lockInfos = new InstanceLockInfos();
|
||||
|
||||
lockInfos.InstanceID = save.GetInstanceId();
|
||||
lockInfos.MapID = save.GetMapId();
|
||||
|
||||
@@ -2735,8 +2735,8 @@ namespace Game.Entities
|
||||
FlagArray128 mask = new FlagArray128();
|
||||
mask[j / 32] = 1u << (j % 32);
|
||||
|
||||
SpellModifierData flatData;
|
||||
SpellModifierData pctData;
|
||||
SpellModifierData flatData = new SpellModifierData();
|
||||
SpellModifierData pctData = new SpellModifierData();
|
||||
|
||||
flatData.ClassIndex = j;
|
||||
flatData.ModifierValue = 0.0f;
|
||||
|
||||
@@ -138,5 +138,7 @@ namespace Game.Garrisons
|
||||
Garrison i_garrison;
|
||||
uint i_gameObjects;
|
||||
uint i_creatures;
|
||||
|
||||
public uint I_creatures { get => i_creatures; set => i_creatures = value; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1020,7 +1020,7 @@ namespace Game.Guilds
|
||||
|
||||
for (byte tabId = 0; tabId < GuildConst.MaxBankTabs; ++tabId)
|
||||
{
|
||||
GuildPermissionsQueryResults.GuildRankTabPermissions tabPerm;
|
||||
GuildPermissionsQueryResults.GuildRankTabPermissions tabPerm = new GuildPermissionsQueryResults.GuildRankTabPermissions();
|
||||
tabPerm.Flags = (int)_GetRankBankTabRights(rankId, tabId);
|
||||
tabPerm.WithdrawItemLimit = _GetMemberRemainingSlots(member, tabId);
|
||||
queryResult.Tab.Add(tabPerm);
|
||||
@@ -2169,7 +2169,7 @@ namespace Game.Guilds
|
||||
{
|
||||
for (byte i = 0; i < _GetPurchasedTabsSize(); ++i)
|
||||
{
|
||||
GuildBankTabInfo tabInfo;
|
||||
GuildBankTabInfo tabInfo = new GuildBankTabInfo();
|
||||
tabInfo.TabIndex = i;
|
||||
tabInfo.Name = m_bankTabs[i].GetName();
|
||||
tabInfo.Icon = m_bankTabs[i].GetIcon();
|
||||
@@ -2754,7 +2754,7 @@ namespace Game.Guilds
|
||||
ObjectGuid playerGUID = ObjectGuid.Create(HighGuid.Player, m_playerGuid1);
|
||||
ObjectGuid otherGUID = ObjectGuid.Create(HighGuid.Player, m_playerGuid2);
|
||||
|
||||
GuildEventEntry eventEntry;
|
||||
GuildEventEntry eventEntry = new GuildEventEntry();
|
||||
eventEntry.PlayerGUID = playerGUID;
|
||||
eventEntry.OtherGUID = otherGUID;
|
||||
eventEntry.TransactionType = (byte)m_eventType;
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace Game
|
||||
var playerEvents = Global.CalendarMgr.GetPlayerEvents(guid);
|
||||
foreach (var calendarEvent in playerEvents)
|
||||
{
|
||||
CalendarSendCalendarEventInfo eventInfo;
|
||||
CalendarSendCalendarEventInfo eventInfo = new CalendarSendCalendarEventInfo();
|
||||
eventInfo.EventID = calendarEvent.EventId;
|
||||
eventInfo.Date = calendarEvent.Date;
|
||||
Guild guild = Global.GuildMgr.GetGuildById(calendarEvent.GuildId);
|
||||
@@ -78,7 +78,7 @@ namespace Game
|
||||
{
|
||||
if (pair.Value.perm)
|
||||
{
|
||||
CalendarSendCalendarRaidLockoutInfo lockoutInfo;
|
||||
CalendarSendCalendarRaidLockoutInfo lockoutInfo = new CalendarSendCalendarRaidLockoutInfo();
|
||||
|
||||
InstanceSave save = pair.Value.save;
|
||||
lockoutInfo.MapID = (int)save.GetMapId();
|
||||
|
||||
@@ -375,7 +375,7 @@ namespace Game
|
||||
// not let move dead pet in slot
|
||||
if (pet && pet.IsAlive() && pet.getPetType() == PetType.Hunter)
|
||||
{
|
||||
PetStableInfo stableEntry;// = new PetStableInfo();
|
||||
PetStableInfo stableEntry = new PetStableInfo();
|
||||
stableEntry.PetSlot = petSlot;
|
||||
stableEntry.PetNumber = pet.GetCharmInfo().GetPetNumber();
|
||||
stableEntry.CreatureID = pet.GetEntry();
|
||||
@@ -392,7 +392,7 @@ namespace Game
|
||||
{
|
||||
do
|
||||
{
|
||||
PetStableInfo stableEntry;// = new PetStableInfo();
|
||||
PetStableInfo stableEntry = new PetStableInfo();
|
||||
|
||||
stableEntry.PetSlot = petSlot;
|
||||
stableEntry.PetNumber = result.Read<uint>(1); // petnumber
|
||||
|
||||
@@ -224,7 +224,7 @@ namespace Game
|
||||
if (pageText == null)
|
||||
break;
|
||||
|
||||
QueryPageTextResponse.PageTextInfo page;
|
||||
QueryPageTextResponse.PageTextInfo page = new QueryPageTextResponse.PageTextInfo();
|
||||
page.ID = pageID;
|
||||
page.NextPageID = pageText.NextPageID;
|
||||
page.Text = pageText.Text;
|
||||
|
||||
@@ -164,7 +164,7 @@ namespace Game
|
||||
item.GetModifier(ItemModifier.ScalingStatDistributionFixedLevel), item.GetModifier(ItemModifier.ArtifactKnowledgeLevel),
|
||||
(byte)item.GetUInt32Value(ItemFields.Context), item.GetDynamicValues(ItemDynamicFields.BonusListIds));
|
||||
|
||||
VoidItem voidItem;
|
||||
VoidItem voidItem = new VoidItem();
|
||||
voidItem.Guid = ObjectGuid.Create(HighGuid.Item, itemVS.ItemId);
|
||||
voidItem.Creator = item.GetGuidValue(ItemFields.Creator);
|
||||
voidItem.Item = new ItemInstance(itemVS);
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace Game.Network.Packets
|
||||
Data.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public AllAchievements Data = new AllAchievements();
|
||||
public AllAchievements Data { get; set; } = new AllAchievements();
|
||||
}
|
||||
|
||||
public class RespondInspectAchievements : ServerPacket
|
||||
@@ -44,8 +44,8 @@ namespace Game.Network.Packets
|
||||
Data.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public ObjectGuid Player;
|
||||
public AllAchievements Data = new AllAchievements();
|
||||
public ObjectGuid Player { get; set; }
|
||||
public AllAchievements Data { get; set; } = new AllAchievements();
|
||||
}
|
||||
|
||||
public class CriteriaUpdate : ServerPacket
|
||||
@@ -63,13 +63,13 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(CreationTime);
|
||||
}
|
||||
|
||||
public uint CriteriaID;
|
||||
public ulong Quantity;
|
||||
public ObjectGuid PlayerGUID;
|
||||
public uint Flags;
|
||||
public long CurrentTime;
|
||||
public uint ElapsedTime;
|
||||
public uint CreationTime;
|
||||
public uint CriteriaID { get; set; }
|
||||
public ulong Quantity { get; set; }
|
||||
public ObjectGuid PlayerGUID { get; set; }
|
||||
public uint Flags { get; set; }
|
||||
public long CurrentTime { get; set; }
|
||||
public uint ElapsedTime { get; set; }
|
||||
public uint CreationTime { get; set; }
|
||||
}
|
||||
|
||||
public class CriteriaDeleted : ServerPacket
|
||||
@@ -81,7 +81,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(CriteriaID);
|
||||
}
|
||||
|
||||
public uint CriteriaID;
|
||||
public uint CriteriaID { get; set; }
|
||||
}
|
||||
|
||||
public class AchievementDeleted : ServerPacket
|
||||
@@ -94,7 +94,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(Immunities);
|
||||
}
|
||||
|
||||
public uint AchievementID;
|
||||
public uint AchievementID { get; set; }
|
||||
public uint Immunities; // this is just garbage, not used by client
|
||||
}
|
||||
|
||||
@@ -114,13 +114,13 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public ObjectGuid Earner;
|
||||
public uint EarnerNativeRealm;
|
||||
public uint EarnerVirtualRealm;
|
||||
public uint AchievementID;
|
||||
public long Time;
|
||||
public bool Initial;
|
||||
public ObjectGuid Sender;
|
||||
public ObjectGuid Earner { get; set; }
|
||||
public uint EarnerNativeRealm { get; set; }
|
||||
public uint EarnerVirtualRealm { get; set; }
|
||||
public uint AchievementID { get; set; }
|
||||
public long Time { get; set; }
|
||||
public bool Initial { get; set; }
|
||||
public ObjectGuid Sender { get; set; }
|
||||
}
|
||||
|
||||
public class ServerFirstAchievement : ServerPacket
|
||||
@@ -136,10 +136,10 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(Name);
|
||||
}
|
||||
|
||||
public ObjectGuid PlayerGUID;
|
||||
public string Name = "";
|
||||
public uint AchievementID;
|
||||
public bool GuildAchievement;
|
||||
public ObjectGuid PlayerGUID { get; set; }
|
||||
public string Name { get; set; } = "";
|
||||
public uint AchievementID { get; set; }
|
||||
public bool GuildAchievement { get; set; }
|
||||
}
|
||||
|
||||
public class GuildCriteriaUpdate : ServerPacket
|
||||
@@ -162,7 +162,7 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public List<GuildCriteriaProgress> Progress = new List<GuildCriteriaProgress>();
|
||||
public List<GuildCriteriaProgress> Progress { get; set; } = new List<GuildCriteriaProgress>();
|
||||
}
|
||||
|
||||
public class GuildCriteriaDeleted : ServerPacket
|
||||
@@ -175,8 +175,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(CriteriaID);
|
||||
}
|
||||
|
||||
public ObjectGuid GuildGUID;
|
||||
public uint CriteriaID;
|
||||
public ObjectGuid GuildGUID { get; set; }
|
||||
public uint CriteriaID { get; set; }
|
||||
}
|
||||
|
||||
public class GuildSetFocusedAchievement : ClientPacket
|
||||
@@ -188,7 +188,7 @@ namespace Game.Network.Packets
|
||||
AchievementID = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public uint AchievementID;
|
||||
public uint AchievementID { get; set; }
|
||||
}
|
||||
|
||||
public class GuildAchievementDeleted : ServerPacket
|
||||
@@ -202,9 +202,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedTime(TimeDeleted);
|
||||
}
|
||||
|
||||
public ObjectGuid GuildGUID;
|
||||
public uint AchievementID;
|
||||
public long TimeDeleted;
|
||||
public ObjectGuid GuildGUID { get; set; }
|
||||
public uint AchievementID { get; set; }
|
||||
public long TimeDeleted { get; set; }
|
||||
}
|
||||
|
||||
public class GuildAchievementEarned : ServerPacket
|
||||
@@ -218,9 +218,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedTime(TimeEarned);
|
||||
}
|
||||
|
||||
public uint AchievementID;
|
||||
public ObjectGuid GuildGUID;
|
||||
public long TimeEarned;
|
||||
public uint AchievementID { get; set; }
|
||||
public ObjectGuid GuildGUID { get; set; }
|
||||
public long TimeEarned { get; set; }
|
||||
}
|
||||
|
||||
public class AllGuildAchievements : ServerPacket
|
||||
@@ -235,7 +235,7 @@ namespace Game.Network.Packets
|
||||
earned.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public List<EarnedAchievement> Earned = new List<EarnedAchievement>();
|
||||
public List<EarnedAchievement> Earned { get; set; } = new List<EarnedAchievement>();
|
||||
}
|
||||
|
||||
class GuildGetAchievementMembers : ClientPacket
|
||||
@@ -249,9 +249,9 @@ namespace Game.Network.Packets
|
||||
AchievementID = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public ObjectGuid PlayerGUID;
|
||||
public ObjectGuid GuildGUID;
|
||||
public uint AchievementID;
|
||||
public ObjectGuid PlayerGUID { get; set; }
|
||||
public ObjectGuid GuildGUID { get; set; }
|
||||
public uint AchievementID { get; set; }
|
||||
}
|
||||
|
||||
class GuildAchievementMembers : ServerPacket
|
||||
@@ -267,9 +267,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(guid);
|
||||
}
|
||||
|
||||
public ObjectGuid GuildGUID;
|
||||
public uint AchievementID;
|
||||
public List<ObjectGuid> Member = new List<ObjectGuid>();
|
||||
public ObjectGuid GuildGUID { get; set; }
|
||||
public uint AchievementID { get; set; }
|
||||
public List<ObjectGuid> Member { get; set; } = new List<ObjectGuid>();
|
||||
}
|
||||
|
||||
//Structs
|
||||
@@ -284,11 +284,11 @@ namespace Game.Network.Packets
|
||||
data.WriteUInt32(NativeRealmAddress);
|
||||
}
|
||||
|
||||
public uint Id;
|
||||
public long Date;
|
||||
public ObjectGuid Owner;
|
||||
public uint VirtualRealmAddress;
|
||||
public uint NativeRealmAddress;
|
||||
public uint Id { get; set; }
|
||||
public long Date { get; set; }
|
||||
public ObjectGuid Owner { get; set; }
|
||||
public uint VirtualRealmAddress { get; set; }
|
||||
public uint NativeRealmAddress { get; set; }
|
||||
}
|
||||
|
||||
public struct CriteriaProgressPkt
|
||||
@@ -305,24 +305,24 @@ namespace Game.Network.Packets
|
||||
data.FlushBits();
|
||||
}
|
||||
|
||||
public uint Id;
|
||||
public ulong Quantity;
|
||||
public ObjectGuid Player;
|
||||
public uint Flags;
|
||||
public long Date;
|
||||
public uint TimeFromStart;
|
||||
public uint TimeFromCreate;
|
||||
public uint Id { get; set; }
|
||||
public ulong Quantity { get; set; }
|
||||
public ObjectGuid Player { get; set; }
|
||||
public uint Flags { get; set; }
|
||||
public long Date { get; set; }
|
||||
public uint TimeFromStart { get; set; }
|
||||
public uint TimeFromCreate { get; set; }
|
||||
}
|
||||
|
||||
public struct GuildCriteriaProgress
|
||||
{
|
||||
public uint CriteriaID;
|
||||
public uint DateCreated;
|
||||
public uint DateStarted;
|
||||
public long DateUpdated;
|
||||
public ulong Quantity;
|
||||
public ObjectGuid PlayerGUID;
|
||||
public int Flags;
|
||||
public uint CriteriaID { get; set; }
|
||||
public uint DateCreated { get; set; }
|
||||
public uint DateStarted { get; set; }
|
||||
public long DateUpdated { get; set; }
|
||||
public ulong Quantity { get; set; }
|
||||
public ObjectGuid PlayerGUID { get; set; }
|
||||
public int Flags { get; set; }
|
||||
}
|
||||
|
||||
public class AllAchievements
|
||||
@@ -339,7 +339,7 @@ namespace Game.Network.Packets
|
||||
progress.Write(data);
|
||||
}
|
||||
|
||||
public List<EarnedAchievement> Earned = new List<EarnedAchievement>();
|
||||
public List<CriteriaProgressPkt> Progress = new List<CriteriaProgressPkt>();
|
||||
public List<EarnedAchievement> Earned { get; set; } = new List<EarnedAchievement>();
|
||||
public List<CriteriaProgressPkt> Progress { get; set; } = new List<CriteriaProgressPkt>();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,9 +35,9 @@ namespace Game.Network.Packets
|
||||
FromClient = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public uint AreaTriggerID;
|
||||
public bool Entered;
|
||||
public bool FromClient;
|
||||
public uint AreaTriggerID { get; set; }
|
||||
public bool Entered { get; set; }
|
||||
public bool FromClient { get; set; }
|
||||
}
|
||||
|
||||
class AreaTriggerDenied : ServerPacket
|
||||
@@ -51,8 +51,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public int AreaTriggerID;
|
||||
public bool Entered;
|
||||
public int AreaTriggerID { get; set; }
|
||||
public bool Entered { get; set; }
|
||||
}
|
||||
|
||||
class AreaTriggerNoCorpse : ServerPacket
|
||||
@@ -72,8 +72,8 @@ namespace Game.Network.Packets
|
||||
AreaTriggerSpline.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public AreaTriggerSplineInfo AreaTriggerSpline = new AreaTriggerSplineInfo();
|
||||
public ObjectGuid TriggerGUID;
|
||||
public AreaTriggerSplineInfo AreaTriggerSpline { get; set; } = new AreaTriggerSplineInfo();
|
||||
public ObjectGuid TriggerGUID { get; set; }
|
||||
}
|
||||
|
||||
class AreaTriggerReShape : ServerPacket
|
||||
@@ -97,7 +97,7 @@ namespace Game.Network.Packets
|
||||
|
||||
public Optional<AreaTriggerSplineInfo> AreaTriggerSpline;
|
||||
public Optional<AreaTriggerUnkTypeInfo> AreaTriggerUnkType;
|
||||
public ObjectGuid TriggerGUID;
|
||||
public ObjectGuid TriggerGUID { get; set; }
|
||||
}
|
||||
|
||||
//Structs
|
||||
@@ -115,9 +115,9 @@ namespace Game.Network.Packets
|
||||
data.WriteVector3(point);
|
||||
}
|
||||
|
||||
public uint TimeToTarget;
|
||||
public uint ElapsedTimeForMovement;
|
||||
public List<Vector3> Points = new List<Vector3>();
|
||||
public uint TimeToTarget { get; set; }
|
||||
public uint ElapsedTimeForMovement { get; set; }
|
||||
public List<Vector3> Points { get; set; } = new List<Vector3>();
|
||||
}
|
||||
|
||||
struct AreaTriggerUnkTypeInfo
|
||||
@@ -144,16 +144,16 @@ namespace Game.Network.Packets
|
||||
data.WriteVector3(Center.Value);
|
||||
}
|
||||
|
||||
public Optional<ObjectGuid> AreaTriggerUnkGUID;
|
||||
public Optional<Vector3> Center;
|
||||
public bool UnkBit1;
|
||||
public bool UnkBit2;
|
||||
public uint UnkUInt1;
|
||||
public int UnkInt1;
|
||||
public uint UnkUInt2;
|
||||
public float Radius;
|
||||
public float BlendFromRadius;
|
||||
public float InitialAngel;
|
||||
public float ZOffset;
|
||||
public Optional<ObjectGuid> AreaTriggerUnkGUID { get; set; }
|
||||
public Optional<Vector3> Center { get; set; }
|
||||
public bool UnkBit1 { get; set; }
|
||||
public bool UnkBit2 { get; set; }
|
||||
public uint UnkUInt1 { get; set; }
|
||||
public int UnkInt1 { get; set; }
|
||||
public uint UnkUInt2 { get; set; }
|
||||
public float Radius { get; set; }
|
||||
public float BlendFromRadius { get; set; }
|
||||
public float InitialAngel { get; set; }
|
||||
public float ZOffset { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,21 +33,21 @@ namespace Game.Network.Packets
|
||||
var powerCount = _worldPacket.ReadUInt32();
|
||||
for (var i = 0; i < powerCount; ++i)
|
||||
{
|
||||
ArtifactPowerChoice artifactPowerChoice;
|
||||
ArtifactPowerChoice artifactPowerChoice = new ArtifactPowerChoice();
|
||||
artifactPowerChoice.ArtifactPowerID = _worldPacket.ReadUInt32();
|
||||
artifactPowerChoice.Rank = _worldPacket.ReadUInt8();
|
||||
PowerChoices.Add(artifactPowerChoice);
|
||||
}
|
||||
}
|
||||
|
||||
public ObjectGuid ArtifactGUID;
|
||||
public ObjectGuid ForgeGUID;
|
||||
public Array<ArtifactPowerChoice> PowerChoices = new Array<ArtifactPowerChoice>(1);
|
||||
public ObjectGuid ArtifactGUID { get; set; }
|
||||
public ObjectGuid ForgeGUID { get; set; }
|
||||
public Array<ArtifactPowerChoice> PowerChoices { get; set; } = new Array<ArtifactPowerChoice>(1);
|
||||
|
||||
public struct ArtifactPowerChoice
|
||||
{
|
||||
public uint ArtifactPowerID;
|
||||
public byte Rank;
|
||||
public uint ArtifactPowerID { get; set; }
|
||||
public byte Rank { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,9 +62,9 @@ namespace Game.Network.Packets
|
||||
ArtifactAppearanceID = _worldPacket.ReadInt32();
|
||||
}
|
||||
|
||||
public ObjectGuid ArtifactGUID;
|
||||
public ObjectGuid ForgeGUID;
|
||||
public int ArtifactAppearanceID;
|
||||
public ObjectGuid ArtifactGUID { get; set; }
|
||||
public ObjectGuid ForgeGUID { get; set; }
|
||||
public int ArtifactAppearanceID { get; set; }
|
||||
}
|
||||
|
||||
class ConfirmArtifactRespec : ClientPacket
|
||||
@@ -77,8 +77,8 @@ namespace Game.Network.Packets
|
||||
NpcGUID = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid ArtifactGUID;
|
||||
public ObjectGuid NpcGUID;
|
||||
public ObjectGuid ArtifactGUID { get; set; }
|
||||
public ObjectGuid NpcGUID { get; set; }
|
||||
}
|
||||
|
||||
class ArtifactForgeOpened : ServerPacket
|
||||
@@ -91,8 +91,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(ForgeGUID);
|
||||
}
|
||||
|
||||
public ObjectGuid ArtifactGUID;
|
||||
public ObjectGuid ForgeGUID;
|
||||
public ObjectGuid ArtifactGUID { get; set; }
|
||||
public ObjectGuid ForgeGUID { get; set; }
|
||||
}
|
||||
|
||||
class ArtifactRespecConfirm : ServerPacket
|
||||
@@ -105,8 +105,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(NpcGUID);
|
||||
}
|
||||
|
||||
public ObjectGuid ArtifactGUID;
|
||||
public ObjectGuid NpcGUID;
|
||||
public ObjectGuid ArtifactGUID { get; set; }
|
||||
public ObjectGuid NpcGUID { get; set; }
|
||||
}
|
||||
|
||||
class ArtifactXpGain : ServerPacket
|
||||
@@ -119,7 +119,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt64(Amount);
|
||||
}
|
||||
|
||||
public ObjectGuid ArtifactGUID;
|
||||
public ulong Amount;
|
||||
public ObjectGuid ArtifactGUID { get; set; }
|
||||
public ulong Amount { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace Game.Network.Packets
|
||||
Guid = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
}
|
||||
|
||||
class AuctionHelloResponse : ServerPacket
|
||||
@@ -44,8 +44,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public bool OpenForBusiness = true;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
public bool OpenForBusiness { get; set; } = true;
|
||||
}
|
||||
|
||||
class AuctionCommandResult : ServerPacket
|
||||
@@ -75,10 +75,10 @@ namespace Game.Network.Packets
|
||||
}
|
||||
|
||||
public uint AuctionItemID; // the id of the auction that triggered this notification
|
||||
public AuctionAction Command;
|
||||
public AuctionError ErrorCode;
|
||||
public AuctionAction Command { get; set; }
|
||||
public AuctionError ErrorCode { get; set; }
|
||||
public ulong Money; // the amount of money that the player bid in copper
|
||||
public AuctionError BagResult;
|
||||
public AuctionError BagResult { get; set; }
|
||||
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.
|
||||
}
|
||||
@@ -99,23 +99,23 @@ namespace Game.Network.Packets
|
||||
|
||||
for (byte i = 0; i < ItemsCount; i++)
|
||||
{
|
||||
AuctionItemForSale item;
|
||||
AuctionItemForSale item = new AuctionItemForSale();
|
||||
item.Guid = _worldPacket.ReadPackedGuid();
|
||||
item.UseCount = _worldPacket.ReadUInt32();
|
||||
Items.Add(item);
|
||||
}
|
||||
}
|
||||
|
||||
public ulong BuyoutPrice;
|
||||
public ObjectGuid Auctioneer;
|
||||
public ulong MinBid;
|
||||
public uint RunTime;
|
||||
public Array<AuctionItemForSale> Items = new Array<AuctionItemForSale>(32);
|
||||
public ulong BuyoutPrice { get; set; }
|
||||
public ObjectGuid Auctioneer { get; set; }
|
||||
public ulong MinBid { get; set; }
|
||||
public uint RunTime { get; set; }
|
||||
public Array<AuctionItemForSale> Items { get; set; } = new Array<AuctionItemForSale>(32);
|
||||
|
||||
public struct AuctionItemForSale
|
||||
{
|
||||
public ObjectGuid Guid;
|
||||
public uint UseCount;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
public uint UseCount { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -130,9 +130,9 @@ namespace Game.Network.Packets
|
||||
BidAmount = _worldPacket.ReadUInt64();
|
||||
}
|
||||
|
||||
public ObjectGuid Auctioneer;
|
||||
public ulong BidAmount;
|
||||
public uint AuctionItemID;
|
||||
public ObjectGuid Auctioneer { get; set; }
|
||||
public ulong BidAmount { get; set; }
|
||||
public uint AuctionItemID { get; set; }
|
||||
}
|
||||
|
||||
class AuctionListBidderItems : ClientPacket
|
||||
@@ -153,9 +153,9 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public uint Offset;
|
||||
public List<uint> AuctionItemIDs = new List<uint>();
|
||||
public ObjectGuid Auctioneer;
|
||||
public uint Offset { get; set; }
|
||||
public List<uint> AuctionItemIDs { get; set; } = new List<uint>();
|
||||
public ObjectGuid Auctioneer { get; set; }
|
||||
}
|
||||
|
||||
class AuctionRemoveItem : ClientPacket
|
||||
@@ -168,8 +168,8 @@ namespace Game.Network.Packets
|
||||
AuctionItemID = _worldPacket.ReadInt32();
|
||||
}
|
||||
|
||||
public ObjectGuid Auctioneer;
|
||||
public int AuctionItemID;
|
||||
public ObjectGuid Auctioneer { get; set; }
|
||||
public int AuctionItemID { get; set; }
|
||||
}
|
||||
|
||||
class AuctionReplicateItems : ClientPacket
|
||||
@@ -185,11 +185,11 @@ namespace Game.Network.Packets
|
||||
ChangeNumberTombstone = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public ObjectGuid Auctioneer;
|
||||
public uint Count;
|
||||
public uint ChangeNumberGlobal;
|
||||
public uint ChangeNumberCursor;
|
||||
public uint ChangeNumberTombstone;
|
||||
public ObjectGuid Auctioneer { get; set; }
|
||||
public uint Count { get; set; }
|
||||
public uint ChangeNumberGlobal { get; set; }
|
||||
public uint ChangeNumberCursor { get; set; }
|
||||
public uint ChangeNumberTombstone { get; set; }
|
||||
}
|
||||
|
||||
class AuctionListPendingSales : ClientPacket
|
||||
@@ -215,10 +215,10 @@ namespace Game.Network.Packets
|
||||
item.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public uint DesiredDelay;
|
||||
public List<AuctionItem> Items = new List<AuctionItem>();
|
||||
public bool OnlyUsable = true;
|
||||
public uint TotalCount;
|
||||
public uint DesiredDelay { get; set; }
|
||||
public List<AuctionItem> Items { get; set; } = new List<AuctionItem>();
|
||||
public bool OnlyUsable { get; set; } = true;
|
||||
public uint TotalCount { get; set; }
|
||||
}
|
||||
|
||||
public class AuctionListOwnerItemsResult : ServerPacket
|
||||
@@ -235,9 +235,9 @@ namespace Game.Network.Packets
|
||||
item.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public uint DesiredDelay;
|
||||
public uint DesiredDelay { get; set; }
|
||||
public uint TotalCount;
|
||||
public List<AuctionItem> Items = new List<AuctionItem>();
|
||||
public List<AuctionItem> Items { get; set; } = new List<AuctionItem>();
|
||||
}
|
||||
|
||||
public class AuctionListBidderItemsResult : ServerPacket
|
||||
@@ -254,9 +254,9 @@ namespace Game.Network.Packets
|
||||
item.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public uint DesiredDelay;
|
||||
public uint DesiredDelay { get; set; }
|
||||
public uint TotalCount;
|
||||
public List<AuctionItem> Items = new List<AuctionItem>();
|
||||
public List<AuctionItem> Items { get; set; } = new List<AuctionItem>();
|
||||
}
|
||||
|
||||
class AuctionListOwnerItems : ClientPacket
|
||||
@@ -269,8 +269,8 @@ namespace Game.Network.Packets
|
||||
Offset = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public ObjectGuid Auctioneer;
|
||||
public uint Offset;
|
||||
public ObjectGuid Auctioneer { get; set; }
|
||||
public uint Offset { get; set; }
|
||||
}
|
||||
|
||||
class AuctionListItems : ClientPacket
|
||||
@@ -301,7 +301,7 @@ namespace Game.Network.Packets
|
||||
classFilter.SubClassFilters = new Array<ClassFilter.SubClassFilter>(_worldPacket.ReadBits<int>(5));
|
||||
for (int x = 0; x < classFilter.SubClassFilters.Capacity; ++x)
|
||||
{
|
||||
ClassFilter.SubClassFilter subClassFilter;
|
||||
ClassFilter.SubClassFilter subClassFilter = new ClassFilter.SubClassFilter();
|
||||
subClassFilter.ItemSubclass = _worldPacket.ReadInt32();
|
||||
subClassFilter.InvTypeMask = _worldPacket.ReadUInt32();
|
||||
classFilter.SubClassFilters.Add(subClassFilter);
|
||||
@@ -312,43 +312,43 @@ namespace Game.Network.Packets
|
||||
_worldPacket.Skip(4); // DataSize = (SortCount * 2)
|
||||
for (int i = 0; i < SortCount; i++)
|
||||
{
|
||||
AuctionListItems.Sort sort;
|
||||
AuctionListItems.Sort sort = new Sort();
|
||||
sort.Type = _worldPacket.ReadUInt8();
|
||||
sort.Direction = _worldPacket.ReadUInt8();
|
||||
DataSort.Add(sort);
|
||||
}
|
||||
}
|
||||
|
||||
public uint Offset;
|
||||
public ObjectGuid Auctioneer;
|
||||
public byte MinLevel = 1;
|
||||
public byte MaxLevel = 100;
|
||||
public uint Quality;
|
||||
public byte SortCount;
|
||||
public Array<byte> KnownPets;
|
||||
public sbyte MaxPetLevel;
|
||||
public string Name = "";
|
||||
public Array<ClassFilter> ClassFilters = new Array<ClassFilter>(7);
|
||||
public bool ExactMatch = true;
|
||||
public bool OnlyUsable;
|
||||
public List<Sort> DataSort = new List<Sort>();
|
||||
public uint Offset { get; set; }
|
||||
public ObjectGuid Auctioneer { get; set; }
|
||||
public byte MinLevel { get; set; } = 1;
|
||||
public byte MaxLevel { get; set; } = 100;
|
||||
public uint Quality { get; set; }
|
||||
public byte SortCount { get; set; }
|
||||
public Array<byte> KnownPets { get; set; }
|
||||
public sbyte MaxPetLevel { get; set; }
|
||||
public string Name { get; set; } = "";
|
||||
public Array<ClassFilter> ClassFilters { get; set; } = new Array<ClassFilter>(7);
|
||||
public bool ExactMatch { get; set; } = true;
|
||||
public bool OnlyUsable { get; set; }
|
||||
public List<Sort> DataSort { get; set; } = new List<Sort>();
|
||||
|
||||
public struct Sort
|
||||
{
|
||||
public byte Type;
|
||||
public byte Direction;
|
||||
public byte Type { get; set; }
|
||||
public byte Direction { get; set; }
|
||||
}
|
||||
|
||||
public class ClassFilter
|
||||
{
|
||||
public struct SubClassFilter
|
||||
{
|
||||
public int ItemSubclass;
|
||||
public uint InvTypeMask;
|
||||
public int ItemSubclass { get; set; }
|
||||
public uint InvTypeMask { get; set; }
|
||||
}
|
||||
|
||||
public int ItemClass;
|
||||
public Array<SubClassFilter> SubClassFilters = new Array<SubClassFilter>(31);
|
||||
public int ItemClass { get; set; }
|
||||
public Array<SubClassFilter> SubClassFilters { get; set; } = new Array<SubClassFilter>(31);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -365,8 +365,8 @@ namespace Game.Network.Packets
|
||||
mail.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public List<MailListEntry> Mails = new List<MailListEntry>();
|
||||
public int TotalNumRecords;
|
||||
public List<MailListEntry> Mails { get; set; } = new List<MailListEntry>();
|
||||
public int TotalNumRecords { get; set; }
|
||||
}
|
||||
|
||||
class AuctionClosedNotification : ServerPacket
|
||||
@@ -381,9 +381,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public AuctionOwnerNotification Info;
|
||||
public float ProceedsMailDelay;
|
||||
public bool Sold = true;
|
||||
public AuctionOwnerNotification Info { get; set; }
|
||||
public float ProceedsMailDelay { get; set; }
|
||||
public bool Sold { get; set; } = true;
|
||||
}
|
||||
|
||||
class AuctionOwnerBidNotification : ServerPacket
|
||||
@@ -397,9 +397,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(Bidder);
|
||||
}
|
||||
|
||||
public AuctionOwnerNotification Info;
|
||||
public ObjectGuid Bidder;
|
||||
public ulong MinIncrement;
|
||||
public AuctionOwnerNotification Info { get; set; }
|
||||
public ObjectGuid Bidder { get; set; }
|
||||
public ulong MinIncrement { get; set; }
|
||||
}
|
||||
|
||||
class AuctionWonNotification : ServerPacket
|
||||
@@ -411,7 +411,7 @@ namespace Game.Network.Packets
|
||||
Info.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public AuctionBidderNotification Info;
|
||||
public AuctionBidderNotification Info { get; set; }
|
||||
}
|
||||
|
||||
class AuctionOutBidNotification : ServerPacket
|
||||
@@ -425,9 +425,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt64(MinIncrement);
|
||||
}
|
||||
|
||||
public AuctionBidderNotification Info;
|
||||
public ulong BidAmount;
|
||||
public ulong MinIncrement;
|
||||
public AuctionBidderNotification Info { get; set; }
|
||||
public ulong BidAmount { get; set; }
|
||||
public ulong MinIncrement { get; set; }
|
||||
}
|
||||
|
||||
class AuctionReplicateResponse : ServerPacket
|
||||
@@ -447,12 +447,12 @@ namespace Game.Network.Packets
|
||||
item.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public uint ChangeNumberCursor;
|
||||
public uint ChangeNumberGlobal;
|
||||
public uint DesiredDelay;
|
||||
public uint ChangeNumberTombstone;
|
||||
public uint Result;
|
||||
public List<AuctionItem> Items = new List<AuctionItem>();
|
||||
public uint ChangeNumberCursor { get; set; }
|
||||
public uint ChangeNumberGlobal { get; set; }
|
||||
public uint DesiredDelay { get; set; }
|
||||
public uint ChangeNumberTombstone { get; set; }
|
||||
public uint Result { get; set; }
|
||||
public List<AuctionItem> Items { get; set; } = new List<AuctionItem>();
|
||||
}
|
||||
|
||||
public class AuctionItem
|
||||
@@ -496,26 +496,26 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public ItemInstance Item;
|
||||
public int Count;
|
||||
public int Charges;
|
||||
public List<ItemEnchantData> Enchantments = new List<ItemEnchantData>();
|
||||
public int Flags;
|
||||
public int AuctionItemID;
|
||||
public ObjectGuid Owner;
|
||||
public ulong MinBid;
|
||||
public ulong MinIncrement;
|
||||
public ulong BuyoutPrice;
|
||||
public int DurationLeft;
|
||||
public byte DeleteReason;
|
||||
public bool CensorServerSideInfo;
|
||||
public bool CensorBidInfo;
|
||||
public ObjectGuid ItemGuid;
|
||||
public ObjectGuid OwnerAccountID;
|
||||
public uint EndTime;
|
||||
public ObjectGuid Bidder;
|
||||
public ulong BidAmount;
|
||||
public List<ItemGemData> Gems = new List<ItemGemData>();
|
||||
public ItemInstance Item { get; set; }
|
||||
public int Count { get; set; }
|
||||
public int Charges { get; set; }
|
||||
public List<ItemEnchantData> Enchantments { get; set; } = new List<ItemEnchantData>();
|
||||
public int Flags { get; set; }
|
||||
public int AuctionItemID { get; set; }
|
||||
public ObjectGuid Owner { get; set; }
|
||||
public ulong MinBid { get; set; }
|
||||
public ulong MinIncrement { get; set; }
|
||||
public ulong BuyoutPrice { get; set; }
|
||||
public int DurationLeft { get; set; }
|
||||
public byte DeleteReason { get; set; }
|
||||
public bool CensorServerSideInfo { get; set; }
|
||||
public bool CensorBidInfo { get; set; }
|
||||
public ObjectGuid ItemGuid { get; set; }
|
||||
public ObjectGuid OwnerAccountID { get; set; }
|
||||
public uint EndTime { get; set; }
|
||||
public ObjectGuid Bidder { get; set; }
|
||||
public ulong BidAmount { get; set; }
|
||||
public List<ItemGemData> Gems { get; set; } = new List<ItemGemData>();
|
||||
}
|
||||
|
||||
struct AuctionOwnerNotification
|
||||
@@ -534,9 +534,9 @@ namespace Game.Network.Packets
|
||||
Item.Write(data);
|
||||
}
|
||||
|
||||
public int AuctionItemID;
|
||||
public ulong BidAmount;
|
||||
public ItemInstance Item;
|
||||
public int AuctionItemID { get; set; }
|
||||
public ulong BidAmount { get; set; }
|
||||
public ItemInstance Item { get; set; }
|
||||
}
|
||||
|
||||
struct AuctionBidderNotification
|
||||
@@ -555,8 +555,8 @@ namespace Game.Network.Packets
|
||||
Item.Write(data);
|
||||
}
|
||||
|
||||
public int AuctionItemID;
|
||||
public ObjectGuid Bidder;
|
||||
public ItemInstance Item;
|
||||
public int AuctionItemID { get; set; }
|
||||
public ObjectGuid Bidder { get; set; }
|
||||
public ItemInstance Item { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,8 +36,8 @@ namespace Game.Network.Packets
|
||||
Latency = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public uint Serial;
|
||||
public uint Latency;
|
||||
public uint Serial { get; set; }
|
||||
public uint Latency { get; set; }
|
||||
}
|
||||
|
||||
class Pong : ServerPacket
|
||||
@@ -66,9 +66,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt8(DosZeroBits);
|
||||
}
|
||||
|
||||
public byte[] Challenge = new byte[16];
|
||||
public byte[] DosChallenge = new byte[32]; // Encryption seeds
|
||||
public byte DosZeroBits;
|
||||
public byte[] Challenge { get; set; } = new byte[16];
|
||||
public byte[] DosChallenge { get; set; } = new byte[32]; // Encryption seeds
|
||||
public byte DosZeroBits { get; set; }
|
||||
}
|
||||
|
||||
class AuthSession : ClientPacket
|
||||
@@ -97,16 +97,16 @@ namespace Game.Network.Packets
|
||||
RealmJoinTicket = _worldPacket.ReadString(realmJoinTicketSize);
|
||||
}
|
||||
|
||||
public ushort Build;
|
||||
public sbyte BuildType;
|
||||
public uint RegionID;
|
||||
public uint BattlegroupID;
|
||||
public uint RealmID;
|
||||
public Array<byte> LocalChallenge = new Array<byte>(16);
|
||||
public byte[] Digest = new byte[24];
|
||||
public ulong DosResponse;
|
||||
public string RealmJoinTicket;
|
||||
public bool UseIPv6;
|
||||
public ushort Build { get; set; }
|
||||
public sbyte BuildType { get; set; }
|
||||
public uint RegionID { get; set; }
|
||||
public uint BattlegroupID { get; set; }
|
||||
public uint RealmID { get; set; }
|
||||
public Array<byte> LocalChallenge { get; set; } = new Array<byte>(16);
|
||||
public byte[] Digest { get; set; } = new byte[24];
|
||||
public ulong DosResponse { get; set; }
|
||||
public string RealmJoinTicket { get; set; }
|
||||
public bool UseIPv6 { get; set; }
|
||||
}
|
||||
|
||||
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<AuthWaitInfo> WaitInfo; // contains the queue wait information in case the account is in the login queue.
|
||||
public BattlenetRpcErrorCode Result; // the result of the authentication process, possible values are @ref BattlenetRpcErrorCode
|
||||
public BattlenetRpcErrorCode Result { get; set; } // the result of the authentication process, possible values are @ref BattlenetRpcErrorCode.
|
||||
|
||||
public class AuthSuccessInfo
|
||||
{
|
||||
public byte AccountExpansionLevel; // the current expansion of this account, the possible values are in @ref Expansions
|
||||
public byte ActiveExpansionLevel; // the current server expansion, the possible values are in @ref Expansions
|
||||
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 byte AccountExpansionLevel { get; set; } // the current expansion of this account, the possible values are in @ref Expansion.
|
||||
public byte ActiveExpansionLevel { get; set; } // the current server expansion, the possible values are in @ref Expansion.
|
||||
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 VirtualRealmAddress; // a special identifier made from the Index, BattleGroup and Region. @todo implement
|
||||
public uint TimeSecondsUntilPCKick; // @todo research
|
||||
public uint CurrencyID; // this is probably used for the ingame shop. @todo implement
|
||||
public uint Time;
|
||||
public uint VirtualRealmAddress { get; set; } // a special identifier made from the Index, BattleGroup and Region. @todo implement
|
||||
public uint TimeSecondsUntilPCKick { get; set; } // @todo research
|
||||
public uint CurrencyID { get; set; } // this is probably used for the ingame shop. @todo implement
|
||||
public uint Time { get; set; }
|
||||
|
||||
public BillingInfo Billing;
|
||||
public BillingInfo Billing { get; set; }
|
||||
|
||||
public List<VirtualRealmInfo> VirtualRealms = new List<VirtualRealmInfo>(); // list of realms connected to this one (inclusive) @todo implement
|
||||
public List<CharacterTemplate> Templates = new List<CharacterTemplate>(); // list of pre-made character templates. @todo implement
|
||||
public List<VirtualRealmInfo> VirtualRealms { get; set; } = 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 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 bool IsExpansionTrial;
|
||||
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; // number of horde players in this realm. @todo implement
|
||||
public Optional<ushort> NumPlayersAlliance; // number of alliance players in this realm. @todo implement
|
||||
public bool IsExpansionTrial { get; set; }
|
||||
public bool ForceCharacterTemplate { get; set; } // 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> NumPlayersAlliance { get; set; } // number of alliance players in this realm. @todo implement
|
||||
|
||||
public struct BillingInfo
|
||||
{
|
||||
public uint BillingPlan;
|
||||
public uint TimeRemain;
|
||||
public bool InGameRoom;
|
||||
public uint BillingPlan { get; set; }
|
||||
public uint TimeRemain { get; set; }
|
||||
public bool InGameRoom { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -308,12 +308,12 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt8(Con);
|
||||
}
|
||||
|
||||
public ulong Key;
|
||||
public ConnectToSerial Serial;
|
||||
public ConnectPayload Payload;
|
||||
public byte Con;
|
||||
public ulong Key { get; set; }
|
||||
public ConnectToSerial Serial { get; set; }
|
||||
public ConnectPayload Payload { get; set; }
|
||||
public byte Con { get; set; }
|
||||
|
||||
public string Haiku = "An island of peace\nCorruption is brought ashore\nPandarens will rise\n\0\0\0";
|
||||
public string Haiku { get; set; } = "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,
|
||||
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,
|
||||
@@ -324,10 +324,10 @@ namespace Game.Network.Packets
|
||||
|
||||
public class ConnectPayload
|
||||
{
|
||||
public IPEndPoint Where;
|
||||
public uint Adler32;
|
||||
public byte XorMagic = 0x2A;
|
||||
public byte[] PanamaKey = new byte[32];
|
||||
public IPEndPoint Where { get; set; }
|
||||
public uint Adler32 { get; set; }
|
||||
public byte XorMagic { get; set; } = 0x2A;
|
||||
public byte[] PanamaKey { get; set; } = new byte[32];
|
||||
}
|
||||
|
||||
RsaCrypt Crypt;
|
||||
@@ -345,10 +345,10 @@ namespace Game.Network.Packets
|
||||
Digest = _worldPacket.ReadBytes(24);
|
||||
}
|
||||
|
||||
public ulong DosResponse;
|
||||
public ulong Key;
|
||||
public byte[] LocalChallenge = new byte[16];
|
||||
public byte[] Digest = new byte[24];
|
||||
public ulong DosResponse { get; set; }
|
||||
public ulong Key { get; set; }
|
||||
public byte[] LocalChallenge { get; set; } = new byte[16];
|
||||
public byte[] Digest { get; set; } = new byte[24];
|
||||
}
|
||||
|
||||
class ResumeComms : ServerPacket
|
||||
@@ -368,7 +368,7 @@ namespace Game.Network.Packets
|
||||
Con = _worldPacket.ReadUInt8();
|
||||
}
|
||||
|
||||
public ConnectToSerial Serial;
|
||||
public ConnectToSerial Serial { get; set; }
|
||||
byte Con;
|
||||
}
|
||||
|
||||
@@ -417,8 +417,8 @@ namespace Game.Network.Packets
|
||||
data.WriteString(RealmNameNormalized);
|
||||
}
|
||||
|
||||
public bool IsLocal; // true if the realm is the same as the account's home realm
|
||||
public bool IsInternalRealm; // @todo research
|
||||
public bool IsLocal; // true if the realm is the same as the account's home realm
|
||||
public bool IsInternalRealm; // @todo research
|
||||
public string RealmNameActual; // the name of the realm
|
||||
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 VirtualRealmNameInfo RealmNameInfo;
|
||||
public VirtualRealmNameInfo RealmNameInfo { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,9 +21,9 @@ namespace Game.Network.Packets
|
||||
{
|
||||
public class AutoBankItem : ClientPacket
|
||||
{
|
||||
public InvUpdate Inv;
|
||||
public byte Bag;
|
||||
public byte Slot;
|
||||
public InvUpdate Inv { get; set; }
|
||||
public byte Bag { get; set; }
|
||||
public byte Slot { get; set; }
|
||||
|
||||
public AutoBankItem(WorldPacket packet) : base(packet) { }
|
||||
|
||||
@@ -37,9 +37,9 @@ namespace Game.Network.Packets
|
||||
|
||||
public class AutoStoreBankItem : ClientPacket
|
||||
{
|
||||
public InvUpdate Inv;
|
||||
public byte Bag;
|
||||
public byte Slot;
|
||||
public InvUpdate Inv { get; set; }
|
||||
public byte Bag { get; set; }
|
||||
public byte Slot { get; set; }
|
||||
|
||||
public AutoStoreBankItem(WorldPacket packet) : base(packet) { }
|
||||
|
||||
@@ -60,6 +60,6 @@ namespace Game.Network.Packets
|
||||
Guid = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,8 +34,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(PreviousSeason);
|
||||
}
|
||||
|
||||
public uint PreviousSeason = 0;
|
||||
public uint CurrentSeason = 0;
|
||||
public uint PreviousSeason { get; set; } = 0;
|
||||
public uint CurrentSeason { get; set; } = 0;
|
||||
}
|
||||
|
||||
public class AreaSpiritHealerQuery : ClientPacket
|
||||
@@ -47,7 +47,7 @@ namespace Game.Network.Packets
|
||||
HealerGuid = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid HealerGuid;
|
||||
public ObjectGuid HealerGuid { get; set; }
|
||||
}
|
||||
|
||||
public class AreaSpiritHealerQueue : ClientPacket
|
||||
@@ -59,7 +59,7 @@ namespace Game.Network.Packets
|
||||
HealerGuid = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid HealerGuid;
|
||||
public ObjectGuid HealerGuid { get; set; }
|
||||
}
|
||||
|
||||
public class HearthAndResurrect : ClientPacket
|
||||
@@ -98,10 +98,10 @@ namespace Game.Network.Packets
|
||||
player.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public Optional<byte> Winner;
|
||||
public List<PlayerData> Players = new List<PlayerData>();
|
||||
public Optional<byte> Winner { get; set; }
|
||||
public List<PlayerData> Players { get; set; } = new List<PlayerData>();
|
||||
public Optional<RatingData> Ratings;
|
||||
public sbyte[] PlayerCount = new sbyte[2];
|
||||
public sbyte[] PlayerCount { get; set; } = new sbyte[2];
|
||||
|
||||
public class RatingData
|
||||
{
|
||||
@@ -117,9 +117,9 @@ namespace Game.Network.Packets
|
||||
data.WriteUInt32(id);
|
||||
}
|
||||
|
||||
public uint[] Prematch = new uint[2];
|
||||
public uint[] Postmatch = new uint[2];
|
||||
public uint[] PrematchMMR = new uint[2];
|
||||
public uint[] Prematch { get; set; } = new uint[2];
|
||||
public uint[] Postmatch { get; set; } = new uint[2];
|
||||
public uint[] PrematchMMR { get; set; } = new uint[2];
|
||||
}
|
||||
|
||||
public struct HonorData
|
||||
@@ -131,9 +131,9 @@ namespace Game.Network.Packets
|
||||
data.WriteUInt32(ContributionPoints);
|
||||
}
|
||||
|
||||
public uint HonorKills;
|
||||
public uint Deaths;
|
||||
public uint ContributionPoints;
|
||||
public uint HonorKills { get; set; }
|
||||
public uint Deaths { get; set; }
|
||||
public uint ContributionPoints { get; set; }
|
||||
}
|
||||
|
||||
public class PlayerData
|
||||
@@ -176,22 +176,22 @@ namespace Game.Network.Packets
|
||||
data.WriteInt32(MmrChange.Value);
|
||||
}
|
||||
|
||||
public ObjectGuid PlayerGUID;
|
||||
public uint Kills;
|
||||
public byte Faction;
|
||||
public bool IsInWorld;
|
||||
public ObjectGuid PlayerGUID { get; set; }
|
||||
public uint Kills { get; set; }
|
||||
public byte Faction { get; set; }
|
||||
public bool IsInWorld { get; set; }
|
||||
public Optional<HonorData> Honor;
|
||||
public uint DamageDone;
|
||||
public uint HealingDone;
|
||||
public Optional<uint> PreMatchRating;
|
||||
public Optional<int> RatingChange;
|
||||
public Optional<uint> PreMatchMMR;
|
||||
public Optional<int> MmrChange;
|
||||
public List<uint> Stats = new List<uint>();
|
||||
public int PrimaryTalentTree;
|
||||
public uint DamageDone { get; set; }
|
||||
public uint HealingDone { get; set; }
|
||||
public Optional<uint> PreMatchRating { get; set; }
|
||||
public Optional<int> RatingChange { get; set; }
|
||||
public Optional<uint> PreMatchMMR { get; set; }
|
||||
public Optional<int> MmrChange { get; set; }
|
||||
public List<uint> Stats { get; set; } = new List<uint>();
|
||||
public int PrimaryTalentTree { get; set; }
|
||||
public int PrimaryTalentTreeNameIndex; // controls which name field from ChrSpecialization.dbc will be sent to lua
|
||||
public Race PlayerRace;
|
||||
public uint Prestige;
|
||||
public Race PlayerRace { get; set; }
|
||||
public uint Prestige { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -204,7 +204,7 @@ namespace Game.Network.Packets
|
||||
Ticket.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public RideTicket Ticket = new RideTicket();
|
||||
public RideTicket Ticket { get; set; } = new RideTicket();
|
||||
}
|
||||
|
||||
public class BattlefieldStatusNeedConfirmation : ServerPacket
|
||||
@@ -219,10 +219,10 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt8(Role);
|
||||
}
|
||||
|
||||
public uint Timeout;
|
||||
public uint Mapid;
|
||||
public uint Timeout { get; set; }
|
||||
public uint Mapid { get; set; }
|
||||
public BattlefieldStatusHeader Hdr;
|
||||
public byte Role;
|
||||
public byte Role { get; set; }
|
||||
}
|
||||
|
||||
public class BattlefieldStatusActive : ServerPacket
|
||||
@@ -241,11 +241,11 @@ namespace Game.Network.Packets
|
||||
}
|
||||
|
||||
public BattlefieldStatusHeader Hdr;
|
||||
public uint ShutdownTimer;
|
||||
public byte ArenaFaction;
|
||||
public bool LeftEarly;
|
||||
public uint StartTimer;
|
||||
public uint Mapid;
|
||||
public uint ShutdownTimer { get; set; }
|
||||
public byte ArenaFaction { get; set; }
|
||||
public bool LeftEarly { get; set; }
|
||||
public uint StartTimer { get; set; }
|
||||
public uint Mapid { get; set; }
|
||||
}
|
||||
|
||||
public class BattlefieldStatusQueued : ServerPacket
|
||||
@@ -263,12 +263,12 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public uint AverageWaitTime;
|
||||
public uint AverageWaitTime { get; set; }
|
||||
public BattlefieldStatusHeader Hdr;
|
||||
public bool AsGroup;
|
||||
public bool SuspendedQueue;
|
||||
public bool EligibleForMatchmaking;
|
||||
public uint WaitTime;
|
||||
public bool AsGroup { get; set; }
|
||||
public bool SuspendedQueue { get; set; }
|
||||
public bool EligibleForMatchmaking { get; set; }
|
||||
public uint WaitTime { get; set; }
|
||||
}
|
||||
|
||||
public class BattlefieldStatusFailed : ServerPacket
|
||||
@@ -283,10 +283,10 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(ClientID);
|
||||
}
|
||||
|
||||
public ulong QueueID;
|
||||
public ObjectGuid ClientID;
|
||||
public int Reason;
|
||||
public RideTicket Ticket = new RideTicket();
|
||||
public ulong QueueID { get; set; }
|
||||
public ObjectGuid ClientID { get; set; }
|
||||
public int Reason { get; set; }
|
||||
public RideTicket Ticket { get; set; } = new RideTicket();
|
||||
}
|
||||
|
||||
class BattlemasterJoin : ClientPacket
|
||||
@@ -302,10 +302,10 @@ namespace Game.Network.Packets
|
||||
JoinAsGroup = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public bool JoinAsGroup = false;
|
||||
public byte Roles = 0;
|
||||
public ulong QueueID = 0;
|
||||
public int[] BlacklistMap = new int[2];
|
||||
public bool JoinAsGroup { get; set; } = false;
|
||||
public byte Roles { get; set; } = 0;
|
||||
public ulong QueueID { get; set; } = 0;
|
||||
public int[] BlacklistMap { get; set; } = new int[2];
|
||||
}
|
||||
|
||||
class BattlemasterJoinArena : ClientPacket
|
||||
@@ -318,8 +318,8 @@ namespace Game.Network.Packets
|
||||
Roles = _worldPacket.ReadUInt8();
|
||||
}
|
||||
|
||||
public byte TeamSizeIndex;
|
||||
public byte Roles;
|
||||
public byte TeamSizeIndex { get; set; }
|
||||
public byte Roles { get; set; }
|
||||
}
|
||||
|
||||
class BattlefieldLeave : ClientPacket
|
||||
@@ -339,8 +339,8 @@ namespace Game.Network.Packets
|
||||
AcceptedInvite = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public RideTicket Ticket = new RideTicket();
|
||||
public bool AcceptedInvite;
|
||||
public RideTicket Ticket { get; set; } = new RideTicket();
|
||||
public bool AcceptedInvite { get; set; }
|
||||
}
|
||||
|
||||
class BattlefieldListRequest : ClientPacket
|
||||
@@ -352,7 +352,7 @@ namespace Game.Network.Packets
|
||||
ListID = _worldPacket.ReadInt32();
|
||||
}
|
||||
|
||||
public int ListID;
|
||||
public int ListID { get; set; }
|
||||
}
|
||||
|
||||
class BattlefieldList : ServerPacket
|
||||
@@ -374,13 +374,13 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public ObjectGuid BattlemasterGuid;
|
||||
public int BattlemasterListID;
|
||||
public byte MinLevel;
|
||||
public byte MaxLevel;
|
||||
public List<int> Battlefields = new List<int>(); // Players cannot join a specific Battleground instance anymore - this is always empty
|
||||
public bool PvpAnywhere;
|
||||
public bool HasRandomWinToday;
|
||||
public ObjectGuid BattlemasterGuid { get; set; }
|
||||
public int BattlemasterListID { get; set; }
|
||||
public byte MinLevel { get; set; }
|
||||
public byte MaxLevel { get; set; }
|
||||
public List<int> Battlefields { get; set; } = new List<int>(); // Players cannot join a specific Battleground instance anymore - this is always empty
|
||||
public bool PvpAnywhere { get; set; }
|
||||
public bool HasRandomWinToday { get; set; }
|
||||
}
|
||||
|
||||
class GetPVPOptionsEnabled : ClientPacket
|
||||
@@ -405,12 +405,12 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public bool WargameArenas;
|
||||
public bool RatedArenas;
|
||||
public bool WargameBattlegrounds;
|
||||
public bool ArenaSkirmish;
|
||||
public bool PugBattlegrounds;
|
||||
public bool RatedBattlegrounds;
|
||||
public bool WargameArenas { get; set; }
|
||||
public bool RatedArenas { get; set; }
|
||||
public bool WargameBattlegrounds { get; set; }
|
||||
public bool ArenaSkirmish { get; set; }
|
||||
public bool PugBattlegrounds { get; set; }
|
||||
public bool RatedBattlegrounds { get; set; }
|
||||
}
|
||||
|
||||
class RequestBattlefieldStatus : ClientPacket
|
||||
@@ -429,7 +429,7 @@ namespace Game.Network.Packets
|
||||
Offender = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid Offender;
|
||||
public ObjectGuid Offender { get; set; }
|
||||
}
|
||||
|
||||
class ReportPvPPlayerAFKResult : ServerPacket
|
||||
@@ -444,10 +444,10 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt8(NumPlayersIHaveReported);
|
||||
}
|
||||
|
||||
public ObjectGuid Offender;
|
||||
public byte NumPlayersIHaveReported = 0;
|
||||
public byte NumBlackMarksOnOffender = 0;
|
||||
public ResultCode Result = ResultCode.GenericFailure;
|
||||
public ObjectGuid Offender { get; set; }
|
||||
public byte NumPlayersIHaveReported { get; set; } = 0;
|
||||
public byte NumBlackMarksOnOffender { get; set; } = 0;
|
||||
public ResultCode Result { get; set; } = ResultCode.GenericFailure;
|
||||
|
||||
public enum ResultCode
|
||||
{
|
||||
@@ -468,7 +468,7 @@ namespace Game.Network.Packets
|
||||
FlagCarriers.ForEach(pos => pos.Write(_worldPacket));
|
||||
}
|
||||
|
||||
public List<BattlegroundPlayerPosition> FlagCarriers = new List<BattlegroundPlayerPosition>();
|
||||
public List<BattlegroundPlayerPosition> FlagCarriers { get; set; } = new List<BattlegroundPlayerPosition>();
|
||||
}
|
||||
|
||||
class BattlegroundPlayerJoined : ServerPacket
|
||||
@@ -480,7 +480,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(Guid);
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
}
|
||||
|
||||
class BattlegroundPlayerLeft : ServerPacket
|
||||
@@ -492,7 +492,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(Guid);
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
}
|
||||
|
||||
class DestroyArenaUnit : ServerPacket
|
||||
@@ -504,7 +504,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(Guid);
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
}
|
||||
|
||||
class RequestPVPRewards : ClientPacket
|
||||
@@ -523,16 +523,16 @@ namespace Game.Network.Packets
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public uint RatedRewardPointsThisWeek;
|
||||
public uint ArenaRewardPointsThisWeek;
|
||||
public uint RatedMaxRewardPointsThisWeek;
|
||||
public uint ArenaRewardPoints;
|
||||
public uint RandomRewardPointsThisWeek;
|
||||
public uint ArenaMaxRewardPointsThisWeek;
|
||||
public uint RatedRewardPoints;
|
||||
public uint MaxRewardPointsThisWeek;
|
||||
public uint RewardPointsThisWeek;
|
||||
public uint RandomMaxRewardPointsThisWeek;
|
||||
public uint RatedRewardPointsThisWeek { get; set; }
|
||||
public uint ArenaRewardPointsThisWeek { get; set; }
|
||||
public uint RatedMaxRewardPointsThisWeek { get; set; }
|
||||
public uint ArenaRewardPoints { get; set; }
|
||||
public uint RandomRewardPointsThisWeek { get; set; }
|
||||
public uint ArenaMaxRewardPointsThisWeek { get; set; }
|
||||
public uint RatedRewardPoints { get; set; }
|
||||
public uint MaxRewardPointsThisWeek { get; set; }
|
||||
public uint RewardPointsThisWeek { get; set; }
|
||||
public uint RandomMaxRewardPointsThisWeek { get; set; }
|
||||
}
|
||||
|
||||
class RequestRatedBattlefieldInfo : ClientPacket
|
||||
@@ -553,8 +553,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt8(TeamSize);
|
||||
}
|
||||
|
||||
public ArenaErrorType ErrorType;
|
||||
public byte TeamSize;
|
||||
public ArenaErrorType ErrorType { get; set; }
|
||||
public byte TeamSize { get; set; }
|
||||
}
|
||||
|
||||
//Structs
|
||||
@@ -573,14 +573,14 @@ namespace Game.Network.Packets
|
||||
data.FlushBits();
|
||||
}
|
||||
|
||||
public RideTicket Ticket;
|
||||
public ulong QueueID;
|
||||
public byte RangeMin;
|
||||
public byte RangeMax;
|
||||
public byte TeamSize;
|
||||
public uint InstanceID;
|
||||
public bool RegisteredMatch;
|
||||
public bool TournamentRules;
|
||||
public RideTicket Ticket { get; set; }
|
||||
public ulong QueueID { get; set; }
|
||||
public byte RangeMin { get; set; }
|
||||
public byte RangeMax { get; set; }
|
||||
public byte TeamSize { get; set; }
|
||||
public uint InstanceID { get; set; }
|
||||
public bool RegisteredMatch { get; set; }
|
||||
public bool TournamentRules { get; set; }
|
||||
}
|
||||
|
||||
public struct BattlegroundPlayerPosition
|
||||
@@ -593,9 +593,9 @@ namespace Game.Network.Packets
|
||||
data.WriteInt8(ArenaSlot);
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
public Vector2 Pos;
|
||||
public sbyte IconID;
|
||||
public sbyte ArenaSlot;
|
||||
public sbyte IconID { get; set; }
|
||||
public sbyte ArenaSlot { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,10 +43,10 @@ namespace Game.Network.Packets
|
||||
pet.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public ushort Trap;
|
||||
public ushort Trap { get; set; }
|
||||
bool HasJournalLock = true;
|
||||
public List<BattlePetSlot> Slots = new List<BattlePetSlot>();
|
||||
public List<BattlePetStruct> Pets = new List<BattlePetStruct>();
|
||||
public List<BattlePetSlot> Slots { get; set; } = new List<BattlePetSlot>();
|
||||
public List<BattlePetStruct> Pets { get; set; } = new List<BattlePetStruct>();
|
||||
int MaxPets = 1000;
|
||||
}
|
||||
|
||||
@@ -78,8 +78,8 @@ namespace Game.Network.Packets
|
||||
pet.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public List<BattlePetStruct> Pets = new List<BattlePetStruct>();
|
||||
public bool PetAdded;
|
||||
public List<BattlePetStruct> Pets { get; set; } = new List<BattlePetStruct>();
|
||||
public bool PetAdded { get; set; }
|
||||
}
|
||||
|
||||
class PetBattleSlotUpdates : ServerPacket
|
||||
@@ -97,9 +97,9 @@ namespace Game.Network.Packets
|
||||
slot.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public List<BattlePetSlot> Slots = new List<BattlePetSlot>();
|
||||
public bool AutoSlotted;
|
||||
public bool NewSlot;
|
||||
public List<BattlePetSlot> Slots { get; set; } = new List<BattlePetSlot>();
|
||||
public bool AutoSlotted { get; set; }
|
||||
public bool NewSlot { get; set; }
|
||||
}
|
||||
|
||||
class BattlePetSetBattleSlot : ClientPacket
|
||||
@@ -112,8 +112,8 @@ namespace Game.Network.Packets
|
||||
Slot = _worldPacket.ReadUInt8();
|
||||
}
|
||||
|
||||
public ObjectGuid PetGuid;
|
||||
public byte Slot;
|
||||
public ObjectGuid PetGuid { get; set; }
|
||||
public byte Slot { get; set; }
|
||||
}
|
||||
|
||||
class BattlePetModifyName : ClientPacket
|
||||
@@ -141,9 +141,9 @@ namespace Game.Network.Packets
|
||||
Name = _worldPacket.ReadString(nameLength);
|
||||
}
|
||||
|
||||
public ObjectGuid PetGuid;
|
||||
public string Name;
|
||||
public DeclinedName Declined;
|
||||
public ObjectGuid PetGuid { get; set; }
|
||||
public string Name { get; set; }
|
||||
public DeclinedName Declined { get; set; }
|
||||
}
|
||||
|
||||
class BattlePetDeletePet : ClientPacket
|
||||
@@ -155,7 +155,7 @@ namespace Game.Network.Packets
|
||||
PetGuid = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid PetGuid;
|
||||
public ObjectGuid PetGuid { get; set; }
|
||||
}
|
||||
|
||||
class BattlePetSetFlags : ClientPacket
|
||||
@@ -169,9 +169,9 @@ namespace Game.Network.Packets
|
||||
ControlType = (FlagsControlType)_worldPacket.ReadBits<byte>(2);
|
||||
}
|
||||
|
||||
public ObjectGuid PetGuid;
|
||||
public uint Flags;
|
||||
public FlagsControlType ControlType;
|
||||
public ObjectGuid PetGuid { get; set; }
|
||||
public uint Flags { get; set; }
|
||||
public FlagsControlType ControlType { get; set; }
|
||||
}
|
||||
|
||||
class CageBattlePet : ClientPacket
|
||||
@@ -183,7 +183,7 @@ namespace Game.Network.Packets
|
||||
PetGuid = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid PetGuid;
|
||||
public ObjectGuid PetGuid { get; set; }
|
||||
}
|
||||
|
||||
class BattlePetDeleted : ServerPacket
|
||||
@@ -195,7 +195,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(PetGuid);
|
||||
}
|
||||
|
||||
public ObjectGuid PetGuid;
|
||||
public ObjectGuid PetGuid { get; set; }
|
||||
}
|
||||
|
||||
class BattlePetErrorPacket : ServerPacket
|
||||
@@ -208,8 +208,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(CreatureID);
|
||||
}
|
||||
|
||||
public BattlePetError Result;
|
||||
public uint CreatureID;
|
||||
public BattlePetError Result { get; set; }
|
||||
public uint CreatureID { get; set; }
|
||||
}
|
||||
|
||||
class BattlePetSummon : ClientPacket
|
||||
@@ -221,7 +221,7 @@ namespace Game.Network.Packets
|
||||
PetGuid = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid PetGuid;
|
||||
public ObjectGuid PetGuid { get; set; }
|
||||
}
|
||||
|
||||
|
||||
@@ -260,26 +260,26 @@ namespace Game.Network.Packets
|
||||
|
||||
public struct BattlePetOwnerInfo
|
||||
{
|
||||
public ObjectGuid Guid;
|
||||
public uint PlayerVirtualRealm;
|
||||
public uint PlayerNativeRealm;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
public uint PlayerVirtualRealm { get; set; }
|
||||
public uint PlayerNativeRealm { get; set; }
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public uint Species;
|
||||
public uint CreatureID;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
public uint Species { get; set; }
|
||||
public uint CreatureID { get; set; }
|
||||
public uint CollarID; // what's this?
|
||||
public ushort Breed;
|
||||
public ushort Level;
|
||||
public ushort Exp;
|
||||
public ushort Flags;
|
||||
public uint Power;
|
||||
public uint Health;
|
||||
public uint MaxHealth;
|
||||
public uint Speed;
|
||||
public byte Quality;
|
||||
public Optional<BattlePetOwnerInfo> OwnerInfo;
|
||||
public string Name;
|
||||
public ushort Breed { get; set; }
|
||||
public ushort Level { get; set; }
|
||||
public ushort Exp { get; set; }
|
||||
public ushort Flags { get; set; }
|
||||
public uint Power { get; set; }
|
||||
public uint Health { get; set; }
|
||||
public uint MaxHealth { get; set; }
|
||||
public uint Speed { get; set; }
|
||||
public byte Quality { get; set; }
|
||||
public Optional<BattlePetOwnerInfo> OwnerInfo { get; set; }
|
||||
public string Name { get; set; }
|
||||
}
|
||||
|
||||
public class BattlePetSlot
|
||||
@@ -293,9 +293,9 @@ namespace Game.Network.Packets
|
||||
data.FlushBits();
|
||||
}
|
||||
|
||||
public BattlePetStruct Pet;
|
||||
public BattlePetStruct Pet { get; set; }
|
||||
public uint CollarID; // what's this?
|
||||
public byte Index;
|
||||
public bool Locked = true;
|
||||
public byte Index { get; set; }
|
||||
public bool Locked { get; set; } = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,9 +31,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(ExpireTime);
|
||||
}
|
||||
|
||||
public ulong QueueID;
|
||||
public int AreaID;
|
||||
public long ExpireTime;
|
||||
public ulong QueueID { get; set; }
|
||||
public int AreaID { get; set; }
|
||||
public long ExpireTime { get; set; }
|
||||
}
|
||||
|
||||
class BFMgrEntryInviteResponse : ClientPacket
|
||||
@@ -46,8 +46,8 @@ namespace Game.Network.Packets
|
||||
AcceptedInvite = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public ulong QueueID;
|
||||
public bool AcceptedInvite;
|
||||
public ulong QueueID { get; set; }
|
||||
public bool AcceptedInvite { get; set; }
|
||||
}
|
||||
|
||||
class BFMgrQueueInvite : ServerPacket
|
||||
@@ -67,14 +67,14 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public ulong QueueID;
|
||||
public BattlefieldState BattleState;
|
||||
public uint Timeout = uint.MaxValue; // unused in client
|
||||
public int MinLevel; // unused in client
|
||||
public int MaxLevel; // unused in client
|
||||
public int MapID; // unused in client
|
||||
public uint InstanceID; // unused in client
|
||||
public sbyte Index; // unused in client
|
||||
public ulong QueueID { get; set; }
|
||||
public BattlefieldState BattleState { get; set; }
|
||||
public uint Timeout { get; set; } = uint.MaxValue; // unused in client
|
||||
public int MinLevel { get; set; } // unused in client
|
||||
public int MaxLevel { get; set; } // unused in client
|
||||
public int MapID { get; set; } // unused in client
|
||||
public uint InstanceID { get; set; } // unused in client
|
||||
public sbyte Index { get; set; } // unused in client
|
||||
}
|
||||
|
||||
class BFMgrQueueInviteResponse : ClientPacket
|
||||
@@ -87,8 +87,8 @@ namespace Game.Network.Packets
|
||||
AcceptedInvite = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public ulong QueueID;
|
||||
public bool AcceptedInvite;
|
||||
public ulong QueueID { get; set; }
|
||||
public bool AcceptedInvite { get; set; }
|
||||
}
|
||||
|
||||
class BFMgrQueueRequestResponse : ServerPacket
|
||||
@@ -106,12 +106,12 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public ulong QueueID;
|
||||
public int AreaID;
|
||||
public sbyte Result;
|
||||
public ObjectGuid FailedPlayerGUID;
|
||||
public BattlefieldState BattleState;
|
||||
public bool LoggingIn;
|
||||
public ulong QueueID { get; set; }
|
||||
public int AreaID { get; set; }
|
||||
public sbyte Result { get; set; }
|
||||
public ObjectGuid FailedPlayerGUID { get; set; }
|
||||
public BattlefieldState BattleState { get; set; }
|
||||
public bool LoggingIn { get; set; }
|
||||
}
|
||||
|
||||
class BFMgrQueueExitRequest : ClientPacket
|
||||
@@ -123,7 +123,7 @@ namespace Game.Network.Packets
|
||||
QueueID = _worldPacket.ReadUInt64();
|
||||
}
|
||||
|
||||
public ulong QueueID;
|
||||
public ulong QueueID { get; set; }
|
||||
}
|
||||
|
||||
class BFMgrEntering : ServerPacket
|
||||
@@ -138,10 +138,10 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt64(QueueID);
|
||||
}
|
||||
|
||||
public bool ClearedAFK;
|
||||
public bool Relocated;
|
||||
public bool OnOffense;
|
||||
public ulong QueueID;
|
||||
public bool ClearedAFK { get; set; }
|
||||
public bool Relocated { get; set; }
|
||||
public bool OnOffense { get; set; }
|
||||
public ulong QueueID { get; set; }
|
||||
}
|
||||
|
||||
class BFMgrEjected : ServerPacket
|
||||
@@ -157,10 +157,10 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public ulong QueueID;
|
||||
public BFLeaveReason Reason;
|
||||
public BattlefieldState BattleState;
|
||||
public bool Relocated;
|
||||
public ulong QueueID { get; set; }
|
||||
public BFLeaveReason Reason { get; set; }
|
||||
public BattlefieldState BattleState { get; set; }
|
||||
public bool Relocated { get; set; }
|
||||
}
|
||||
|
||||
public class AreaSpiritHealerTime : ServerPacket
|
||||
@@ -173,7 +173,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(TimeLeft);
|
||||
}
|
||||
|
||||
public ObjectGuid HealerGuid;
|
||||
public uint TimeLeft;
|
||||
public ObjectGuid HealerGuid { get; set; }
|
||||
public uint TimeLeft { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace Game.Network.Packets
|
||||
}
|
||||
|
||||
public MethodCall Method;
|
||||
public ByteBuffer Data = new ByteBuffer();
|
||||
public ByteBuffer Data { get; set; } = new ByteBuffer();
|
||||
}
|
||||
|
||||
class Response : ServerPacket
|
||||
@@ -48,9 +48,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteBytes(Data);
|
||||
}
|
||||
|
||||
public BattlenetRpcErrorCode BnetStatus = BattlenetRpcErrorCode.Ok;
|
||||
public BattlenetRpcErrorCode BnetStatus { get; set; } = BattlenetRpcErrorCode.Ok;
|
||||
public MethodCall Method;
|
||||
public ByteBuffer Data = new ByteBuffer();
|
||||
public ByteBuffer Data { get; set; } = new ByteBuffer();
|
||||
}
|
||||
|
||||
class SetSessionState : ServerPacket
|
||||
@@ -63,7 +63,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public byte State;
|
||||
public byte State { get; set; }
|
||||
}
|
||||
|
||||
class RealmListTicket : ServerPacket
|
||||
@@ -78,9 +78,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteBytes(Ticket);
|
||||
}
|
||||
|
||||
public uint Token;
|
||||
public bool Allow = true;
|
||||
public ByteBuffer Ticket;
|
||||
public uint Token { get; set; }
|
||||
public bool Allow { get; set; } = true;
|
||||
public ByteBuffer Ticket { get; set; }
|
||||
}
|
||||
|
||||
class BattlenetRequest : ClientPacket
|
||||
@@ -95,8 +95,8 @@ namespace Game.Network.Packets
|
||||
Data = _worldPacket.ReadBytes(protoSize);
|
||||
}
|
||||
|
||||
public MethodCall Method;
|
||||
public byte[] Data;
|
||||
public MethodCall Method { get; set; }
|
||||
public byte[] Data { get; set; }
|
||||
}
|
||||
|
||||
class RequestRealmListTicket : ClientPacket
|
||||
@@ -109,14 +109,14 @@ namespace Game.Network.Packets
|
||||
Secret.AddRange(_worldPacket.ReadBytes((uint)Secret.Capacity));
|
||||
}
|
||||
|
||||
public uint Token;
|
||||
public Array<byte> Secret = new Array<byte>(32);
|
||||
public uint Token { get; set; }
|
||||
public Array<byte> Secret { get; set; } = new Array<byte>(32);
|
||||
}
|
||||
|
||||
struct MethodCall
|
||||
{
|
||||
public uint GetServiceHash() { return (uint)(Type >> 32); }
|
||||
public uint GetMethodId() { return (uint)(Type & 0xFFFFFFFF); }
|
||||
public uint GetServiceHash() => (uint)(Type >> 32);
|
||||
public uint GetMethodId() => (uint)(Type & 0xFFFFFFFF);
|
||||
|
||||
public void Read(ByteBuffer data)
|
||||
{
|
||||
@@ -132,8 +132,8 @@ namespace Game.Network.Packets
|
||||
data.WriteUInt32(Token);
|
||||
}
|
||||
|
||||
public ulong Type;
|
||||
public ulong ObjectId;
|
||||
public uint Token;
|
||||
public ulong Type { get; set; }
|
||||
public ulong ObjectId { get; set; }
|
||||
public uint Token { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace Game.Network.Packets
|
||||
Guid = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
}
|
||||
|
||||
class BlackMarketOpenResult : ServerPacket
|
||||
@@ -44,8 +44,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public bool Enable = true;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
public bool Enable { get; set; } = true;
|
||||
}
|
||||
|
||||
class BlackMarketRequestItems : ClientPacket
|
||||
@@ -58,8 +58,8 @@ namespace Game.Network.Packets
|
||||
LastUpdateID = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public uint LastUpdateID;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
public uint LastUpdateID { get; set; }
|
||||
}
|
||||
|
||||
public class BlackMarketRequestItemsResult : ServerPacket
|
||||
@@ -75,8 +75,8 @@ namespace Game.Network.Packets
|
||||
item.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public int LastUpdateID;
|
||||
public List<BlackMarketItem> Items = new List<BlackMarketItem>();
|
||||
public int LastUpdateID { get; set; }
|
||||
public List<BlackMarketItem> Items { get; set; } = new List<BlackMarketItem>();
|
||||
}
|
||||
|
||||
class BlackMarketBidOnItem : ClientPacket
|
||||
@@ -91,10 +91,10 @@ namespace Game.Network.Packets
|
||||
Item.Read(_worldPacket);
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public uint MarketID;
|
||||
public ItemInstance Item = new ItemInstance();
|
||||
public ulong BidAmount;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
public uint MarketID { get; set; }
|
||||
public ItemInstance Item { get; set; } = new ItemInstance();
|
||||
public ulong BidAmount { get; set; }
|
||||
}
|
||||
|
||||
class BlackMarketBidOnItemResult : ServerPacket
|
||||
@@ -108,9 +108,9 @@ namespace Game.Network.Packets
|
||||
Item.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public uint MarketID;
|
||||
public ItemInstance Item;
|
||||
public BlackMarketError Result;
|
||||
public uint MarketID { get; set; }
|
||||
public ItemInstance Item { get; set; }
|
||||
public BlackMarketError Result { get; set; }
|
||||
}
|
||||
|
||||
class BlackMarketOutbid : ServerPacket
|
||||
@@ -124,9 +124,9 @@ namespace Game.Network.Packets
|
||||
Item.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public uint MarketID;
|
||||
public ItemInstance Item;
|
||||
public uint RandomPropertiesID;
|
||||
public uint MarketID { get; set; }
|
||||
public ItemInstance Item { get; set; }
|
||||
public uint RandomPropertiesID { get; set; }
|
||||
}
|
||||
|
||||
class BlackMarketWon : ServerPacket
|
||||
@@ -140,9 +140,9 @@ namespace Game.Network.Packets
|
||||
Item.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public uint MarketID;
|
||||
public ItemInstance Item;
|
||||
public int RandomPropertiesID;
|
||||
public uint MarketID { get; set; }
|
||||
public ItemInstance Item { get; set; }
|
||||
public int RandomPropertiesID { get; set; }
|
||||
}
|
||||
|
||||
public struct BlackMarketItem
|
||||
@@ -176,15 +176,15 @@ namespace Game.Network.Packets
|
||||
data.FlushBits();
|
||||
}
|
||||
|
||||
public uint MarketID;
|
||||
public uint SellerNPC;
|
||||
public ItemInstance Item;
|
||||
public uint Quantity;
|
||||
public ulong MinBid;
|
||||
public ulong MinIncrement;
|
||||
public ulong CurrentBid;
|
||||
public uint SecondsRemaining;
|
||||
public uint NumBids;
|
||||
public bool HighBid;
|
||||
public uint MarketID { get; set; }
|
||||
public uint SellerNPC { get; set; }
|
||||
public ItemInstance Item { get; set; }
|
||||
public uint Quantity { get; set; }
|
||||
public ulong MinBid { get; set; }
|
||||
public ulong MinIncrement { get; set; }
|
||||
public ulong CurrentBid { get; set; }
|
||||
public uint SecondsRemaining { get; set; }
|
||||
public uint NumBids { get; set; }
|
||||
public bool HighBid { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace Game.Network.Packets
|
||||
EventID = _worldPacket.ReadUInt64();
|
||||
}
|
||||
|
||||
public ulong EventID;
|
||||
public ulong EventID { get; set; }
|
||||
}
|
||||
|
||||
class CalendarGuildFilter : ClientPacket
|
||||
@@ -51,9 +51,9 @@ namespace Game.Network.Packets
|
||||
MaxRankOrder = _worldPacket.ReadUInt8();
|
||||
}
|
||||
|
||||
public byte MinLevel = 1;
|
||||
public byte MaxLevel = 100;
|
||||
public byte MaxRankOrder;
|
||||
public byte MinLevel { get; set; } = 1;
|
||||
public byte MaxLevel { get; set; } = 100;
|
||||
public byte MaxRankOrder { get; set; }
|
||||
}
|
||||
|
||||
class CalendarAddEvent : ClientPacket
|
||||
@@ -66,8 +66,8 @@ namespace Game.Network.Packets
|
||||
MaxSize = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public uint MaxSize = 100;
|
||||
public CalendarAddEventInfo EventInfo = new CalendarAddEventInfo();
|
||||
public uint MaxSize { get; set; } = 100;
|
||||
public CalendarAddEventInfo EventInfo { get; set; } = new CalendarAddEventInfo();
|
||||
}
|
||||
|
||||
class CalendarUpdateEvent : ClientPacket
|
||||
@@ -91,7 +91,7 @@ namespace Game.Network.Packets
|
||||
MaxSize = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public uint MaxSize;
|
||||
public uint MaxSize { get; set; }
|
||||
public CalendarUpdateEventInfo EventInfo;
|
||||
}
|
||||
|
||||
@@ -106,9 +106,9 @@ namespace Game.Network.Packets
|
||||
Flags = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public ulong ModeratorID;
|
||||
public ulong EventID;
|
||||
public uint Flags;
|
||||
public ulong ModeratorID { get; set; }
|
||||
public ulong EventID { get; set; }
|
||||
public uint Flags { get; set; }
|
||||
}
|
||||
|
||||
class CalendarCopyEvent : ClientPacket
|
||||
@@ -122,9 +122,9 @@ namespace Game.Network.Packets
|
||||
Date = _worldPacket.ReadPackedTime();
|
||||
}
|
||||
|
||||
public ulong ModeratorID;
|
||||
public ulong EventID;
|
||||
public long Date;
|
||||
public ulong ModeratorID { get; set; }
|
||||
public ulong EventID { get; set; }
|
||||
public long Date { get; set; }
|
||||
}
|
||||
|
||||
class SCalendarEventInvite : ServerPacket
|
||||
@@ -145,14 +145,14 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public ulong InviteID;
|
||||
public long ResponseTime;
|
||||
public byte Level = 100;
|
||||
public ObjectGuid InviteGuid;
|
||||
public ulong EventID;
|
||||
public byte Type;
|
||||
public bool ClearPending;
|
||||
public CalendarInviteStatus Status;
|
||||
public ulong InviteID { get; set; }
|
||||
public long ResponseTime { get; set; }
|
||||
public byte Level { get; set; } = 100;
|
||||
public ObjectGuid InviteGuid { get; set; }
|
||||
public ulong EventID { get; set; }
|
||||
public byte Type { get; set; }
|
||||
public bool ClearPending { get; set; }
|
||||
public CalendarInviteStatus Status { get; set; }
|
||||
}
|
||||
|
||||
class CalendarSendCalendar : ServerPacket
|
||||
@@ -176,10 +176,10 @@ namespace Game.Network.Packets
|
||||
Event.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public long ServerTime;
|
||||
public List<CalendarSendCalendarInviteInfo> Invites = new List<CalendarSendCalendarInviteInfo>();
|
||||
public List<CalendarSendCalendarRaidLockoutInfo> RaidLockouts = new List<CalendarSendCalendarRaidLockoutInfo>();
|
||||
public List<CalendarSendCalendarEventInfo> Events = new List<CalendarSendCalendarEventInfo>();
|
||||
public long ServerTime { get; set; }
|
||||
public List<CalendarSendCalendarInviteInfo> Invites { get; set; } = new List<CalendarSendCalendarInviteInfo>();
|
||||
public List<CalendarSendCalendarRaidLockoutInfo> RaidLockouts { get; set; } = new List<CalendarSendCalendarRaidLockoutInfo>();
|
||||
public List<CalendarSendCalendarEventInfo> Events { get; set; } = new List<CalendarSendCalendarEventInfo>();
|
||||
}
|
||||
|
||||
class CalendarSendEvent : ServerPacket
|
||||
@@ -210,18 +210,18 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(Description);
|
||||
}
|
||||
|
||||
public ObjectGuid OwnerGuid;
|
||||
public ObjectGuid EventGuildID;
|
||||
public ulong EventID;
|
||||
public long Date;
|
||||
public long LockDate;
|
||||
public CalendarFlags Flags;
|
||||
public int TextureID;
|
||||
public CalendarEventType GetEventType;
|
||||
public CalendarSendEventType EventType;
|
||||
public string Description;
|
||||
public string EventName;
|
||||
public List<CalendarEventInviteInfo> Invites = new List<CalendarEventInviteInfo>();
|
||||
public ObjectGuid OwnerGuid { get; set; }
|
||||
public ObjectGuid EventGuildID { get; set; }
|
||||
public ulong EventID { get; set; }
|
||||
public long Date { get; set; }
|
||||
public long LockDate { get; set; }
|
||||
public CalendarFlags Flags { get; set; }
|
||||
public int TextureID { get; set; }
|
||||
public CalendarEventType GetEventType { get; set; }
|
||||
public CalendarSendEventType EventType { get; set; }
|
||||
public string Description { get; set; }
|
||||
public string EventName { get; set; }
|
||||
public List<CalendarEventInviteInfo> Invites { get; set; } = new List<CalendarEventInviteInfo>();
|
||||
}
|
||||
|
||||
class CalendarEventInviteAlert : ServerPacket
|
||||
@@ -249,18 +249,18 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(EventName);
|
||||
}
|
||||
|
||||
public ObjectGuid OwnerGuid;
|
||||
public ObjectGuid EventGuildID;
|
||||
public ObjectGuid InvitedByGuid;
|
||||
public ulong InviteID;
|
||||
public ulong EventID;
|
||||
public CalendarFlags Flags;
|
||||
public long Date;
|
||||
public int TextureID;
|
||||
public CalendarInviteStatus Status;
|
||||
public CalendarEventType EventType;
|
||||
public CalendarModerationRank ModeratorStatus;
|
||||
public string EventName;
|
||||
public ObjectGuid OwnerGuid { get; set; }
|
||||
public ObjectGuid EventGuildID { get; set; }
|
||||
public ObjectGuid InvitedByGuid { get; set; }
|
||||
public ulong InviteID { get; set; }
|
||||
public ulong EventID { get; set; }
|
||||
public CalendarFlags Flags { get; set; }
|
||||
public long Date { get; set; }
|
||||
public int TextureID { get; set; }
|
||||
public CalendarInviteStatus Status { get; set; }
|
||||
public CalendarEventType EventType { get; set; }
|
||||
public CalendarModerationRank ModeratorStatus { get; set; }
|
||||
public string EventName { get; set; }
|
||||
}
|
||||
|
||||
class CalendarEventInvite : ClientPacket
|
||||
@@ -279,11 +279,11 @@ namespace Game.Network.Packets
|
||||
Name = _worldPacket.ReadString(nameLen);
|
||||
}
|
||||
|
||||
public ulong ModeratorID;
|
||||
public bool IsSignUp;
|
||||
public bool Creating = true;
|
||||
public ulong EventID;
|
||||
public string Name;
|
||||
public ulong ModeratorID { get; set; }
|
||||
public bool IsSignUp { get; set; }
|
||||
public bool Creating { get; set; } = true;
|
||||
public ulong EventID { get; set; }
|
||||
public string Name { get; set; }
|
||||
}
|
||||
|
||||
class CalendarEventRSVP : ClientPacket
|
||||
@@ -297,9 +297,9 @@ namespace Game.Network.Packets
|
||||
Status = (CalendarInviteStatus)_worldPacket.ReadUInt8();
|
||||
}
|
||||
|
||||
public ulong InviteID;
|
||||
public ulong EventID;
|
||||
public CalendarInviteStatus Status;
|
||||
public ulong InviteID { get; set; }
|
||||
public ulong EventID { get; set; }
|
||||
public CalendarInviteStatus Status { get; set; }
|
||||
}
|
||||
|
||||
class CalendarEventInviteStatus : ServerPacket
|
||||
@@ -319,13 +319,13 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public CalendarFlags Flags;
|
||||
public ulong EventID;
|
||||
public CalendarInviteStatus Status;
|
||||
public bool ClearPending;
|
||||
public long ResponseTime;
|
||||
public long Date;
|
||||
public ObjectGuid InviteGuid;
|
||||
public CalendarFlags Flags { get; set; }
|
||||
public ulong EventID { get; set; }
|
||||
public CalendarInviteStatus Status { get; set; }
|
||||
public bool ClearPending { get; set; }
|
||||
public long ResponseTime { get; set; }
|
||||
public long Date { get; set; }
|
||||
public ObjectGuid InviteGuid { get; set; }
|
||||
}
|
||||
|
||||
class CalendarEventInviteRemoved : ServerPacket
|
||||
@@ -342,10 +342,10 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public ObjectGuid InviteGuid;
|
||||
public ulong EventID;
|
||||
public uint Flags;
|
||||
public bool ClearPending;
|
||||
public ObjectGuid InviteGuid { get; set; }
|
||||
public ulong EventID { get; set; }
|
||||
public uint Flags { get; set; }
|
||||
public bool ClearPending { get; set; }
|
||||
}
|
||||
|
||||
class CalendarEventInviteModeratorStatus : ServerPacket
|
||||
@@ -362,10 +362,10 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public ObjectGuid InviteGuid;
|
||||
public ulong EventID;
|
||||
public CalendarInviteStatus Status;
|
||||
public bool ClearPending;
|
||||
public ObjectGuid InviteGuid { get; set; }
|
||||
public ulong EventID { get; set; }
|
||||
public CalendarInviteStatus Status { get; set; }
|
||||
public bool ClearPending { get; set; }
|
||||
}
|
||||
|
||||
class CalendarEventInviteRemovedAlert : ServerPacket
|
||||
@@ -380,10 +380,10 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt8(Status);
|
||||
}
|
||||
|
||||
public ulong EventID;
|
||||
public long Date;
|
||||
public CalendarFlags Flags;
|
||||
public CalendarInviteStatus Status;
|
||||
public ulong EventID { get; set; }
|
||||
public long Date { get; set; }
|
||||
public CalendarFlags Flags { get; set; }
|
||||
public CalendarInviteStatus Status { get; set; }
|
||||
}
|
||||
|
||||
class CalendarClearPendingAction : ServerPacket
|
||||
@@ -417,16 +417,16 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(Description);
|
||||
}
|
||||
|
||||
public ulong EventID;
|
||||
public long Date;
|
||||
public CalendarFlags Flags;
|
||||
public long LockDate;
|
||||
public long OriginalDate;
|
||||
public int TextureID;
|
||||
public CalendarEventType EventType;
|
||||
public bool ClearPending;
|
||||
public string Description;
|
||||
public string EventName;
|
||||
public ulong EventID { get; set; }
|
||||
public long Date { get; set; }
|
||||
public CalendarFlags Flags { get; set; }
|
||||
public long LockDate { get; set; }
|
||||
public long OriginalDate { get; set; }
|
||||
public int TextureID { get; set; }
|
||||
public CalendarEventType EventType { get; set; }
|
||||
public bool ClearPending { get; set; }
|
||||
public string Description { get; set; }
|
||||
public string EventName { get; set; }
|
||||
}
|
||||
|
||||
class CalendarEventRemovedAlert : ServerPacket
|
||||
@@ -442,9 +442,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public ulong EventID;
|
||||
public long Date;
|
||||
public bool ClearPending;
|
||||
public ulong EventID { get; set; }
|
||||
public long Date { get; set; }
|
||||
public bool ClearPending { get; set; }
|
||||
}
|
||||
|
||||
class CalendarSendNumPending : ServerPacket
|
||||
@@ -459,7 +459,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(NumPending);
|
||||
}
|
||||
|
||||
public uint NumPending;
|
||||
public uint NumPending { get; set; }
|
||||
}
|
||||
|
||||
class CalendarGetNumPending : ClientPacket
|
||||
@@ -479,8 +479,8 @@ namespace Game.Network.Packets
|
||||
Tentative = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public bool Tentative;
|
||||
public ulong EventID;
|
||||
public bool Tentative { get; set; }
|
||||
public ulong EventID { get; set; }
|
||||
}
|
||||
|
||||
class CalendarRemoveInvite : ClientPacket
|
||||
@@ -495,10 +495,10 @@ namespace Game.Network.Packets
|
||||
EventID = _worldPacket.ReadUInt64();
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public ulong EventID;
|
||||
public ulong ModeratorID;
|
||||
public ulong InviteID;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
public ulong EventID { get; set; }
|
||||
public ulong ModeratorID { get; set; }
|
||||
public ulong InviteID { get; set; }
|
||||
}
|
||||
|
||||
class CalendarEventStatus : ClientPacket
|
||||
@@ -514,11 +514,11 @@ namespace Game.Network.Packets
|
||||
Status = _worldPacket.ReadUInt8();
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public ulong EventID;
|
||||
public ulong ModeratorID;
|
||||
public ulong InviteID;
|
||||
public byte Status;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
public ulong EventID { get; set; }
|
||||
public ulong ModeratorID { get; set; }
|
||||
public ulong InviteID { get; set; }
|
||||
public byte Status { get; set; }
|
||||
}
|
||||
|
||||
class SetSavedInstanceExtend : ClientPacket
|
||||
@@ -532,9 +532,9 @@ namespace Game.Network.Packets
|
||||
Extend = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public int MapID;
|
||||
public bool Extend;
|
||||
public uint DifficultyID;
|
||||
public int MapID { get; set; }
|
||||
public bool Extend { get; set; }
|
||||
public uint DifficultyID { get; set; }
|
||||
}
|
||||
|
||||
class CalendarEventModeratorStatus : ClientPacket
|
||||
@@ -550,11 +550,11 @@ namespace Game.Network.Packets
|
||||
Status = _worldPacket.ReadUInt8();
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public ulong EventID;
|
||||
public ulong InviteID;
|
||||
public ulong ModeratorID;
|
||||
public byte Status;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
public ulong EventID { get; set; }
|
||||
public ulong InviteID { get; set; }
|
||||
public ulong ModeratorID { get; set; }
|
||||
public byte Status { get; set; }
|
||||
}
|
||||
|
||||
class CalendarCommandResult : ServerPacket
|
||||
@@ -577,9 +577,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(Name);
|
||||
}
|
||||
|
||||
public byte Command;
|
||||
public CalendarError Result;
|
||||
public string Name;
|
||||
public byte Command { get; set; }
|
||||
public CalendarError Result { get; set; }
|
||||
public string Name { get; set; }
|
||||
}
|
||||
|
||||
class CalendarRaidLockoutAdded : ServerPacket
|
||||
@@ -595,11 +595,11 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteInt32(TimeRemaining);
|
||||
}
|
||||
|
||||
public ulong InstanceID;
|
||||
public Difficulty DifficultyID;
|
||||
public int TimeRemaining;
|
||||
public uint ServerTime;
|
||||
public int MapID;
|
||||
public ulong InstanceID { get; set; }
|
||||
public Difficulty DifficultyID { get; set; }
|
||||
public int TimeRemaining { get; set; }
|
||||
public uint ServerTime { get; set; }
|
||||
public int MapID { get; set; }
|
||||
}
|
||||
|
||||
class CalendarRaidLockoutRemoved : ServerPacket
|
||||
@@ -613,9 +613,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(DifficultyID);
|
||||
}
|
||||
|
||||
public ulong InstanceID;
|
||||
public int MapID;
|
||||
public Difficulty DifficultyID;
|
||||
public ulong InstanceID { get; set; }
|
||||
public int MapID { get; set; }
|
||||
public Difficulty DifficultyID { get; set; }
|
||||
}
|
||||
|
||||
class CalendarRaidLockoutUpdated : ServerPacket
|
||||
@@ -631,11 +631,11 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteInt32(OldTimeRemaining);
|
||||
}
|
||||
|
||||
public int MapID;
|
||||
public int OldTimeRemaining;
|
||||
public long ServerTime;
|
||||
public uint DifficultyID;
|
||||
public int NewTimeRemaining;
|
||||
public int MapID { get; set; }
|
||||
public int OldTimeRemaining { get; set; }
|
||||
public long ServerTime { get; set; }
|
||||
public uint DifficultyID { get; set; }
|
||||
public int NewTimeRemaining { get; set; }
|
||||
}
|
||||
|
||||
class CalendarEventInitialInvites : ServerPacket
|
||||
@@ -652,7 +652,7 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public List<CalendarEventInitialInviteInfo> Invites = new List<CalendarEventInitialInviteInfo>();
|
||||
public List<CalendarEventInitialInviteInfo> Invites { get; set; } = new List<CalendarEventInitialInviteInfo>();
|
||||
}
|
||||
|
||||
class CalendarEventInviteStatusAlert : ServerPacket
|
||||
@@ -667,10 +667,10 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt8(Status);
|
||||
}
|
||||
|
||||
public ulong EventID;
|
||||
public uint Flags;
|
||||
public long Date;
|
||||
public byte Status;
|
||||
public ulong EventID { get; set; }
|
||||
public uint Flags { get; set; }
|
||||
public long Date { get; set; }
|
||||
public byte Status { get; set; }
|
||||
}
|
||||
|
||||
class CalendarEventInviteNotesAlert : ServerPacket
|
||||
@@ -690,8 +690,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(Notes);
|
||||
}
|
||||
|
||||
public ulong EventID;
|
||||
public string Notes;
|
||||
public ulong EventID { get; set; }
|
||||
public string Notes { get; set; }
|
||||
}
|
||||
|
||||
class CalendarEventInviteNotes : ServerPacket
|
||||
@@ -709,10 +709,10 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(Notes);
|
||||
}
|
||||
|
||||
public ObjectGuid InviteGuid;
|
||||
public ulong EventID;
|
||||
public string Notes = "";
|
||||
public bool ClearPending;
|
||||
public ObjectGuid InviteGuid { get; set; }
|
||||
public ulong EventID { get; set; }
|
||||
public string Notes { get; set; } = "";
|
||||
public bool ClearPending { get; set; }
|
||||
}
|
||||
|
||||
class CalendarComplain : ClientPacket
|
||||
@@ -741,9 +741,9 @@ namespace Game.Network.Packets
|
||||
Moderator = data.ReadUInt8();
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public byte Status;
|
||||
public byte Moderator;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
public byte Status { get; set; }
|
||||
public byte Moderator { get; set; }
|
||||
}
|
||||
|
||||
class CalendarAddEventInfo
|
||||
@@ -770,25 +770,25 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public string Title;
|
||||
public string Description;
|
||||
public byte EventType;
|
||||
public int TextureID;
|
||||
public long Time;
|
||||
public uint Flags;
|
||||
public CalendarAddEventInviteInfo[] Invites = new CalendarAddEventInviteInfo[(int)SharedConst.CalendarMaxInvites];
|
||||
public string Title { get; set; }
|
||||
public string Description { get; set; }
|
||||
public byte EventType { get; set; }
|
||||
public int TextureID { get; set; }
|
||||
public long Time { get; set; }
|
||||
public uint Flags { get; set; }
|
||||
public CalendarAddEventInviteInfo[] Invites { get; set; } = new CalendarAddEventInviteInfo[(int)SharedConst.CalendarMaxInvites];
|
||||
}
|
||||
|
||||
struct CalendarUpdateEventInfo
|
||||
{
|
||||
public ulong EventID;
|
||||
public ulong ModeratorID;
|
||||
public string Title;
|
||||
public string Description;
|
||||
public byte EventType;
|
||||
public uint TextureID;
|
||||
public long Time;
|
||||
public uint Flags;
|
||||
public ulong EventID { get; set; }
|
||||
public ulong ModeratorID { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string Description { get; set; }
|
||||
public byte EventType { get; set; }
|
||||
public uint TextureID { get; set; }
|
||||
public long Time { get; set; }
|
||||
public uint Flags { get; set; }
|
||||
}
|
||||
|
||||
struct CalendarSendCalendarInviteInfo
|
||||
@@ -803,12 +803,12 @@ namespace Game.Network.Packets
|
||||
data.WritePackedGuid(InviterGuid);
|
||||
}
|
||||
|
||||
public ulong EventID;
|
||||
public ulong InviteID;
|
||||
public ObjectGuid InviterGuid;
|
||||
public CalendarInviteStatus Status;
|
||||
public CalendarModerationRank Moderator;
|
||||
public byte InviteType;
|
||||
public ulong EventID { get; set; }
|
||||
public ulong InviteID { get; set; }
|
||||
public ObjectGuid InviterGuid { get; set; }
|
||||
public CalendarInviteStatus Status { get; set; }
|
||||
public CalendarModerationRank Moderator { get; set; }
|
||||
public byte InviteType { get; set; }
|
||||
}
|
||||
struct CalendarSendCalendarRaidLockoutInfo
|
||||
{
|
||||
@@ -820,10 +820,10 @@ namespace Game.Network.Packets
|
||||
data.WriteUInt32(ExpireTime);
|
||||
}
|
||||
|
||||
public ulong InstanceID;
|
||||
public int MapID;
|
||||
public uint DifficultyID;
|
||||
public long ExpireTime;
|
||||
public ulong InstanceID { get; set; }
|
||||
public int MapID { get; set; }
|
||||
public uint DifficultyID { get; set; }
|
||||
public long ExpireTime { get; set; }
|
||||
}
|
||||
|
||||
struct CalendarSendCalendarEventInfo
|
||||
@@ -843,14 +843,14 @@ namespace Game.Network.Packets
|
||||
data.WriteString(EventName);
|
||||
}
|
||||
|
||||
public ulong EventID;
|
||||
public string EventName;
|
||||
public CalendarEventType EventType;
|
||||
public long Date;
|
||||
public CalendarFlags Flags;
|
||||
public int TextureID;
|
||||
public ObjectGuid EventGuildID;
|
||||
public ObjectGuid OwnerGuid;
|
||||
public ulong EventID { get; set; }
|
||||
public string EventName { get; set; }
|
||||
public CalendarEventType EventType { get; set; }
|
||||
public long Date { get; set; }
|
||||
public CalendarFlags Flags { get; set; }
|
||||
public int TextureID { get; set; }
|
||||
public ObjectGuid EventGuildID { get; set; }
|
||||
public ObjectGuid OwnerGuid { get; set; }
|
||||
}
|
||||
|
||||
class CalendarEventInviteInfo
|
||||
@@ -872,14 +872,14 @@ namespace Game.Network.Packets
|
||||
data.WriteString(Notes);
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public ulong InviteID;
|
||||
public long ResponseTime;
|
||||
public byte Level = 1;
|
||||
public CalendarInviteStatus Status;
|
||||
public CalendarModerationRank Moderator;
|
||||
public byte InviteType;
|
||||
public string Notes;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
public ulong InviteID { get; set; }
|
||||
public long ResponseTime { get; set; }
|
||||
public byte Level { get; set; } = 1;
|
||||
public CalendarInviteStatus Status { get; set; }
|
||||
public CalendarModerationRank Moderator { get; set; }
|
||||
public byte InviteType { get; set; }
|
||||
public string Notes { get; set; }
|
||||
}
|
||||
|
||||
class CalendarEventInitialInviteInfo
|
||||
@@ -890,7 +890,7 @@ namespace Game.Network.Packets
|
||||
Level = level;
|
||||
}
|
||||
|
||||
public ObjectGuid InviteGuid;
|
||||
public byte Level = 100;
|
||||
public ObjectGuid InviteGuid { get; set; }
|
||||
public byte Level { get; set; } = 100;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,10 +44,10 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public List<ChannelPlayer> Members;
|
||||
public List<ChannelPlayer> Members { get; set; }
|
||||
public string Channel; // Channel Name
|
||||
public ChannelFlags ChannelFlags;
|
||||
public bool Display;
|
||||
public ChannelFlags ChannelFlags { get; set; }
|
||||
public bool Display { get; set; }
|
||||
|
||||
public struct ChannelPlayer
|
||||
{
|
||||
@@ -59,8 +59,8 @@ namespace Game.Network.Packets
|
||||
}
|
||||
|
||||
public ObjectGuid Guid; // Player Guid
|
||||
public uint VirtualRealmAddress;
|
||||
public ChannelMemberFlags Flags;
|
||||
public uint VirtualRealmAddress { get; set; }
|
||||
public ChannelMemberFlags Flags { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -91,17 +91,17 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(Sender);
|
||||
}
|
||||
|
||||
public string Sender = "";
|
||||
public ObjectGuid SenderGuid;
|
||||
public ObjectGuid SenderAccountID;
|
||||
public ChatNotify Type;
|
||||
public ChannelMemberFlags OldFlags;
|
||||
public ChannelMemberFlags NewFlags;
|
||||
public string Channel;
|
||||
public uint SenderVirtualRealm;
|
||||
public ObjectGuid TargetGuid;
|
||||
public uint TargetVirtualRealm;
|
||||
public int ChatChannelID;
|
||||
public string Sender { get; set; } = "";
|
||||
public ObjectGuid SenderGuid { get; set; }
|
||||
public ObjectGuid SenderAccountID { get; set; }
|
||||
public ChatNotify Type { get; set; }
|
||||
public ChannelMemberFlags OldFlags { get; set; }
|
||||
public ChannelMemberFlags NewFlags { get; set; }
|
||||
public string Channel { get; set; }
|
||||
public uint SenderVirtualRealm { get; set; }
|
||||
public ObjectGuid TargetGuid { get; set; }
|
||||
public uint TargetVirtualRealm { get; set; }
|
||||
public int ChatChannelID { get; set; }
|
||||
}
|
||||
|
||||
public class ChannelNotifyJoined : ServerPacket
|
||||
@@ -119,11 +119,11 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(ChannelWelcomeMsg);
|
||||
}
|
||||
|
||||
public string ChannelWelcomeMsg = "";
|
||||
public int ChatChannelID;
|
||||
public int InstanceID;
|
||||
public ChannelFlags ChannelFlags;
|
||||
public string Channel = "";
|
||||
public string ChannelWelcomeMsg { get; set; } = "";
|
||||
public int ChatChannelID { get; set; }
|
||||
public int InstanceID { get; set; }
|
||||
public ChannelFlags ChannelFlags { get; set; }
|
||||
public string Channel { get; set; } = "";
|
||||
}
|
||||
|
||||
public class ChannelNotifyLeft : ServerPacket
|
||||
@@ -138,9 +138,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(Channel);
|
||||
}
|
||||
|
||||
public string Channel;
|
||||
public uint ChatChannelID;
|
||||
public bool Suspended;
|
||||
public string Channel { get; set; }
|
||||
public uint ChatChannelID { get; set; }
|
||||
public bool Suspended { get; set; }
|
||||
}
|
||||
|
||||
class UserlistAdd : ServerPacket
|
||||
@@ -159,11 +159,11 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(ChannelName);
|
||||
}
|
||||
|
||||
public ObjectGuid AddedUserGUID;
|
||||
public ChannelFlags ChannelFlags;
|
||||
public ChannelMemberFlags UserFlags;
|
||||
public uint ChannelID;
|
||||
public string ChannelName;
|
||||
public ObjectGuid AddedUserGUID { get; set; }
|
||||
public ChannelFlags ChannelFlags { get; set; }
|
||||
public ChannelMemberFlags UserFlags { get; set; }
|
||||
public uint ChannelID { get; set; }
|
||||
public string ChannelName { get; set; }
|
||||
}
|
||||
|
||||
class UserlistRemove : ServerPacket
|
||||
@@ -181,10 +181,10 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(ChannelName);
|
||||
}
|
||||
|
||||
public ObjectGuid RemovedUserGUID;
|
||||
public ChannelFlags ChannelFlags;
|
||||
public uint ChannelID;
|
||||
public string ChannelName;
|
||||
public ObjectGuid RemovedUserGUID { get; set; }
|
||||
public ChannelFlags ChannelFlags { get; set; }
|
||||
public uint ChannelID { get; set; }
|
||||
public string ChannelName { get; set; }
|
||||
}
|
||||
|
||||
class UserlistUpdate : ServerPacket
|
||||
@@ -203,11 +203,11 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(ChannelName);
|
||||
}
|
||||
|
||||
public ObjectGuid UpdatedUserGUID;
|
||||
public ChannelFlags ChannelFlags;
|
||||
public ChannelMemberFlags UserFlags;
|
||||
public uint ChannelID;
|
||||
public string ChannelName;
|
||||
public ObjectGuid UpdatedUserGUID { get; set; }
|
||||
public ChannelFlags ChannelFlags { get; set; }
|
||||
public ChannelMemberFlags UserFlags { get; set; }
|
||||
public uint ChannelID { get; set; }
|
||||
public string ChannelName { get; set; }
|
||||
}
|
||||
|
||||
class ChannelCommand : ClientPacket
|
||||
@@ -234,7 +234,7 @@ namespace Game.Network.Packets
|
||||
ChannelName = _worldPacket.ReadString(_worldPacket.ReadBits<uint>(7));
|
||||
}
|
||||
|
||||
public string ChannelName;
|
||||
public string ChannelName { get; set; }
|
||||
}
|
||||
|
||||
class ChannelPlayerCommand : ClientPacket
|
||||
@@ -269,7 +269,7 @@ namespace Game.Network.Packets
|
||||
Name = _worldPacket.ReadString(nameLength);
|
||||
}
|
||||
|
||||
public string ChannelName;
|
||||
public string ChannelName { get; set; }
|
||||
public string Name;
|
||||
}
|
||||
|
||||
@@ -285,8 +285,8 @@ namespace Game.Network.Packets
|
||||
Password = _worldPacket.ReadString(passwordLength);
|
||||
}
|
||||
|
||||
public string ChannelName;
|
||||
public string Password;
|
||||
public string ChannelName { get; set; }
|
||||
public string Password { get; set; }
|
||||
}
|
||||
|
||||
public class JoinChannel : ClientPacket
|
||||
@@ -304,11 +304,11 @@ namespace Game.Network.Packets
|
||||
Password = _worldPacket.ReadString(passwordLength);
|
||||
}
|
||||
|
||||
public string Password;
|
||||
public string ChannelName;
|
||||
public bool CreateVoiceSession;
|
||||
public int ChatChannelId;
|
||||
public bool Internal;
|
||||
public string Password { get; set; }
|
||||
public string ChannelName { get; set; }
|
||||
public bool CreateVoiceSession { get; set; }
|
||||
public int ChatChannelId { get; set; }
|
||||
public bool Internal { get; set; }
|
||||
}
|
||||
|
||||
public class LeaveChannel : ClientPacket
|
||||
@@ -321,7 +321,7 @@ namespace Game.Network.Packets
|
||||
ChannelName = _worldPacket.ReadString(_worldPacket.ReadBits<uint>(7));
|
||||
}
|
||||
|
||||
public int ZoneChannelID;
|
||||
public string ChannelName;
|
||||
public int ZoneChannelID { get; set; }
|
||||
public string ChannelName { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -106,17 +106,17 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public bool Success;
|
||||
public bool Success { get; set; }
|
||||
public bool IsDeletedCharacters; // used for character undelete list
|
||||
public bool IsDemonHunterCreationAllowed = false; ///< used for demon hunter early access
|
||||
public bool HasDemonHunterOnRealm = false;
|
||||
public bool HasLevel70OnRealm = false;
|
||||
public bool Unknown7x = false;
|
||||
public bool IsDemonHunterCreationAllowed { get; set; } = false; ///< used for demon hunter early access
|
||||
public bool HasDemonHunterOnRealm { get; set; } = false;
|
||||
public bool HasLevel70OnRealm { get; set; } = false;
|
||||
public bool Unknown7x { get; set; } = false;
|
||||
|
||||
public Optional<uint> DisabledClassesMask = new Optional<uint>();
|
||||
public Optional<uint> DisabledClassesMask { get; set; } = new Optional<uint>();
|
||||
|
||||
public List<CharacterInfo> Characters = new List<CharacterInfo>(); // all characters on the list
|
||||
public List<RestrictedFactionChangeRuleInfo> FactionChangeRestrictions = new List<RestrictedFactionChangeRuleInfo>(); // @todo: research
|
||||
public List<CharacterInfo> Characters { get; set; } = new List<CharacterInfo>(); // all characters on the list
|
||||
public List<RestrictedFactionChangeRuleInfo> FactionChangeRestrictions { get; set; } = new List<RestrictedFactionChangeRuleInfo>(); // @todo: research
|
||||
|
||||
public class CharacterInfo
|
||||
{
|
||||
@@ -222,48 +222,48 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public string Name;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
public string Name { get; set; }
|
||||
public byte ListPosition; // Order of the characters in list
|
||||
public byte RaceId;
|
||||
public Class ClassId;
|
||||
public byte Sex;
|
||||
public byte Skin;
|
||||
public byte Face;
|
||||
public byte HairStyle;
|
||||
public byte HairColor;
|
||||
public byte FacialHair;
|
||||
public Array<byte> CustomDisplay = new Array<byte>(PlayerConst.CustomDisplaySize);
|
||||
public byte Level;
|
||||
public uint ZoneId;
|
||||
public uint MapId;
|
||||
public Vector3 PreLoadPosition;
|
||||
public ObjectGuid GuildGuid;
|
||||
public byte RaceId { get; set; }
|
||||
public Class ClassId { get; set; }
|
||||
public byte Sex { get; set; }
|
||||
public byte Skin { get; set; }
|
||||
public byte Face { get; set; }
|
||||
public byte HairStyle { get; set; }
|
||||
public byte HairColor { get; set; }
|
||||
public byte FacialHair { get; set; }
|
||||
public Array<byte> CustomDisplay { get; set; } = new Array<byte>(PlayerConst.CustomDisplaySize);
|
||||
public byte Level { get; set; }
|
||||
public uint ZoneId { get; set; }
|
||||
public uint MapId { get; set; }
|
||||
public Vector3 PreLoadPosition { get; set; }
|
||||
public ObjectGuid GuildGuid { get; set; }
|
||||
public CharacterFlags Flags; // Character flag @see enum CharacterFlags
|
||||
public CharacterCustomizeFlags CustomizationFlag; // Character customization flags @see enum CharacterCustomizeFlags
|
||||
public uint Flags3; // Character flags 3 @todo research
|
||||
public uint Flags4;
|
||||
public bool FirstLogin;
|
||||
public byte unkWod61x;
|
||||
public uint LastPlayedTime;
|
||||
public ushort SpecID;
|
||||
public uint Unknown703;
|
||||
public uint Flags4 { get; set; }
|
||||
public bool FirstLogin { get; set; }
|
||||
public byte unkWod61x { get; set; }
|
||||
public uint LastPlayedTime { get; set; }
|
||||
public ushort SpecID { get; set; }
|
||||
public uint Unknown703 { get; set; }
|
||||
public PetInfo Pet = new PetInfo();
|
||||
public bool BoostInProgress; // @todo
|
||||
public uint[] ProfessionIds = new uint[2]; // @todo
|
||||
public VisualItemInfo[] VisualItems = new VisualItemInfo[InventorySlots.BagEnd];
|
||||
public uint[] ProfessionIds { get; set; } = new uint[2]; // @todo
|
||||
public VisualItemInfo[] VisualItems { get; set; } = new VisualItemInfo[InventorySlots.BagEnd];
|
||||
|
||||
public struct VisualItemInfo
|
||||
{
|
||||
public uint DisplayId;
|
||||
public uint DisplayEnchantId;
|
||||
public byte InventoryType;
|
||||
public uint DisplayId { get; set; }
|
||||
public uint DisplayEnchantId { get; set; }
|
||||
public byte InventoryType { get; set; }
|
||||
}
|
||||
public struct PetInfo
|
||||
{
|
||||
public uint CreatureDisplayId; // PetCreatureDisplayID
|
||||
public uint CreatureDisplayId; // PetCreatureDisplayId
|
||||
public uint Level; // PetExperienceLevel
|
||||
public uint CreatureFamily; // PetCreatureFamilyID
|
||||
public uint CreatureFamily; // PetCreatureFamilyId
|
||||
}
|
||||
}
|
||||
|
||||
@@ -275,8 +275,8 @@ namespace Game.Network.Packets
|
||||
Race = race;
|
||||
}
|
||||
|
||||
public uint Mask;
|
||||
public byte Race;
|
||||
public uint Mask { get; set; }
|
||||
public byte Race { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -319,7 +319,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt8(Code);
|
||||
}
|
||||
|
||||
public ResponseCodes Code;
|
||||
public ResponseCodes Code { get; set; }
|
||||
}
|
||||
|
||||
public class CharDelete : ClientPacket
|
||||
@@ -343,7 +343,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt8(Code);
|
||||
}
|
||||
|
||||
public ResponseCodes Code;
|
||||
public ResponseCodes Code { get; set; }
|
||||
}
|
||||
|
||||
public class CharacterRenameRequest : ClientPacket
|
||||
@@ -357,7 +357,7 @@ namespace Game.Network.Packets
|
||||
RenameInfo.NewName = _worldPacket.ReadString(_worldPacket.ReadBits<uint>(6));
|
||||
}
|
||||
|
||||
public CharacterRenameInfo RenameInfo;
|
||||
public CharacterRenameInfo RenameInfo { get; set; }
|
||||
}
|
||||
|
||||
public class CharacterRenameResult : ServerPacket
|
||||
@@ -380,9 +380,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(Name);
|
||||
}
|
||||
|
||||
public string Name;
|
||||
public ResponseCodes Result = 0;
|
||||
public Optional<ObjectGuid> Guid;
|
||||
public string Name { get; set; }
|
||||
public ResponseCodes Result { get; set; } = 0;
|
||||
public Optional<ObjectGuid> Guid { get; set; }
|
||||
}
|
||||
|
||||
public class CharCustomize : ClientPacket
|
||||
@@ -406,7 +406,7 @@ namespace Game.Network.Packets
|
||||
CustomizeInfo.CharName = _worldPacket.ReadString(_worldPacket.ReadBits<uint>(6));
|
||||
}
|
||||
|
||||
public CharCustomizeInfo CustomizeInfo;
|
||||
public CharCustomizeInfo CustomizeInfo { get; set; }
|
||||
}
|
||||
|
||||
// @todo: CharCustomizeResult
|
||||
@@ -439,7 +439,7 @@ namespace Game.Network.Packets
|
||||
RaceOrFactionChangeInfo.Name = _worldPacket.ReadString(nameLength);
|
||||
}
|
||||
|
||||
public CharRaceOrFactionChangeInfo RaceOrFactionChangeInfo;
|
||||
public CharRaceOrFactionChangeInfo RaceOrFactionChangeInfo { get; set; }
|
||||
}
|
||||
|
||||
public class CharFactionChangeResult : ServerPacket
|
||||
@@ -471,21 +471,21 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public ResponseCodes Result = 0;
|
||||
public ObjectGuid Guid;
|
||||
public ResponseCodes Result { get; set; } = 0;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
public Optional<CharFactionChangeDisplayInfo> Display;
|
||||
|
||||
public class CharFactionChangeDisplayInfo
|
||||
{
|
||||
public string Name;
|
||||
public byte SexID;
|
||||
public byte SkinID;
|
||||
public byte HairColorID;
|
||||
public byte HairStyleID;
|
||||
public byte FacialHairStyleID;
|
||||
public byte FaceID;
|
||||
public byte RaceID;
|
||||
public Array<byte> CustomDisplay = new Array<byte>(PlayerConst.CustomDisplaySize);
|
||||
public string Name { get; set; }
|
||||
public byte SexID { get; set; }
|
||||
public byte SkinID { get; set; }
|
||||
public byte HairColorID { get; set; }
|
||||
public byte HairStyleID { get; set; }
|
||||
public byte FacialHairStyleID { get; set; }
|
||||
public byte FaceID { get; set; }
|
||||
public byte RaceID { get; set; }
|
||||
public Array<byte> CustomDisplay { get; set; } = new Array<byte>(PlayerConst.CustomDisplaySize);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -499,8 +499,8 @@ namespace Game.Network.Packets
|
||||
Sex = _worldPacket.ReadUInt8();
|
||||
}
|
||||
|
||||
public byte Sex;
|
||||
public byte Race;
|
||||
public byte Sex { get; set; }
|
||||
public byte Race { get; set; }
|
||||
}
|
||||
|
||||
public class GenerateRandomCharacterNameResult : ServerPacket
|
||||
@@ -515,8 +515,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(Name);
|
||||
}
|
||||
|
||||
public string Name;
|
||||
public bool Success;
|
||||
public string Name { get; set; }
|
||||
public bool Success { get; set; }
|
||||
}
|
||||
|
||||
public class ReorderCharacters : ClientPacket
|
||||
@@ -528,19 +528,19 @@ namespace Game.Network.Packets
|
||||
uint count = _worldPacket.ReadBits<uint>(9);
|
||||
for (var i = 0; i < count && i < WorldConfig.GetIntValue(WorldCfg.CharactersPerRealm); ++i)
|
||||
{
|
||||
ReorderInfo reorderInfo;
|
||||
ReorderInfo reorderInfo = new ReorderInfo();
|
||||
reorderInfo.PlayerGUID = _worldPacket.ReadPackedGuid();
|
||||
reorderInfo.NewPosition = _worldPacket.ReadUInt8();
|
||||
Entries[i] = reorderInfo;
|
||||
}
|
||||
}
|
||||
|
||||
public ReorderInfo[] Entries = new ReorderInfo[WorldConfig.GetIntValue(WorldCfg.CharactersPerRealm)];
|
||||
public ReorderInfo[] Entries { get; set; } = new ReorderInfo[WorldConfig.GetIntValue(WorldCfg.CharactersPerRealm)];
|
||||
|
||||
public struct ReorderInfo
|
||||
{
|
||||
public ObjectGuid PlayerGUID;
|
||||
public byte NewPosition;
|
||||
public ObjectGuid PlayerGUID { get; set; }
|
||||
public byte NewPosition { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -555,7 +555,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(UndeleteInfo.CharacterGuid);
|
||||
}
|
||||
|
||||
public CharacterUndeleteInfo UndeleteInfo;
|
||||
public CharacterUndeleteInfo UndeleteInfo { get; set; }
|
||||
}
|
||||
|
||||
public class UndeleteCharacterResponse : ServerPacket
|
||||
@@ -570,8 +570,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(UndeleteInfo.CharacterGuid);
|
||||
}
|
||||
|
||||
public CharacterUndeleteInfo UndeleteInfo;
|
||||
public CharacterUndeleteResult Result;
|
||||
public CharacterUndeleteInfo UndeleteInfo { get; set; }
|
||||
public CharacterUndeleteResult Result { get; set; }
|
||||
}
|
||||
|
||||
public class GetUndeleteCharacterCooldownStatus : ClientPacket
|
||||
@@ -592,9 +592,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(CurrentCooldown);
|
||||
}
|
||||
|
||||
public bool OnCooldown; //
|
||||
public uint MaxCooldown; // Max. cooldown until next free character restoration. Displayed in undelete confirm message. (in sec)
|
||||
public uint CurrentCooldown; // Current cooldown until next free character restoration. (in sec)
|
||||
public bool OnCooldown { get; set; }
|
||||
public uint MaxCooldown { get; set; } // 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 class PlayerLogin : ClientPacket
|
||||
@@ -607,8 +607,8 @@ namespace Game.Network.Packets
|
||||
FarClip = _worldPacket.ReadFloat();
|
||||
}
|
||||
|
||||
public ObjectGuid Guid; // Guid of the player that is logging in
|
||||
float FarClip = 0.0f; // Visibility distance (for terrain)
|
||||
public ObjectGuid Guid; // Guid of the player that is logging in
|
||||
float FarClip = 0.0f; // Visibility distance (for terrain)
|
||||
}
|
||||
|
||||
public class LoginVerifyWorld : ServerPacket
|
||||
@@ -625,9 +625,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(Reason);
|
||||
}
|
||||
|
||||
public int MapID = -1;
|
||||
public Position Pos;
|
||||
public uint Reason = 0;
|
||||
public int MapID { get; set; } = -1;
|
||||
public Position Pos { get; set; }
|
||||
public uint Reason { get; set; } = 0;
|
||||
}
|
||||
|
||||
public class CharacterLoginFailed : ServerPacket
|
||||
@@ -668,8 +668,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public int LogoutResult;
|
||||
public bool Instant = false;
|
||||
public int LogoutResult { get; set; }
|
||||
public bool Instant { get; set; } = false;
|
||||
}
|
||||
|
||||
public class LogoutComplete : ServerPacket
|
||||
@@ -717,8 +717,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt8(ServerExpansionTier);
|
||||
}
|
||||
|
||||
public byte ServerExpansionTier;
|
||||
public byte ServerExpansionLevel;
|
||||
public byte ServerExpansionTier { get; set; }
|
||||
public byte ServerExpansionLevel { get; set; }
|
||||
}
|
||||
|
||||
public class SetActionBarToggles : ClientPacket
|
||||
@@ -730,7 +730,7 @@ namespace Game.Network.Packets
|
||||
Mask = _worldPacket.ReadUInt8();
|
||||
}
|
||||
|
||||
public byte Mask;
|
||||
public byte Mask { get; set; }
|
||||
}
|
||||
|
||||
public class RequestPlayedTime : ClientPacket
|
||||
@@ -742,7 +742,7 @@ namespace Game.Network.Packets
|
||||
TriggerScriptEvent = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public bool TriggerScriptEvent;
|
||||
public bool TriggerScriptEvent { get; set; }
|
||||
}
|
||||
|
||||
public class PlayedTime : ServerPacket
|
||||
@@ -757,14 +757,14 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public uint TotalTime;
|
||||
public uint LevelTime;
|
||||
public bool TriggerEvent;
|
||||
public uint TotalTime { get; set; }
|
||||
public uint LevelTime { get; set; }
|
||||
public bool TriggerEvent { get; set; }
|
||||
}
|
||||
|
||||
public class SetTitle : ClientPacket
|
||||
{
|
||||
public int TitleID;
|
||||
public int TitleID { get; set; }
|
||||
|
||||
public SetTitle(WorldPacket packet) : base(packet) { }
|
||||
|
||||
@@ -790,12 +790,12 @@ namespace Game.Network.Packets
|
||||
NewCustomDisplay.Add(_worldPacket.ReadUInt32());
|
||||
}
|
||||
|
||||
public uint NewHairStyle;
|
||||
public uint NewHairColor;
|
||||
public uint NewFacialHair;
|
||||
public uint NewSkinColor;
|
||||
public uint NewFace;
|
||||
public Array<uint> NewCustomDisplay = new Array<uint>(PlayerConst.CustomDisplaySize);
|
||||
public uint NewHairStyle { get; set; }
|
||||
public uint NewHairColor { get; set; }
|
||||
public uint NewFacialHair { get; set; }
|
||||
public uint NewSkinColor { get; set; }
|
||||
public uint NewFace { get; set; }
|
||||
public Array<uint> NewCustomDisplay { get; set; } = new Array<uint>(PlayerConst.CustomDisplaySize);
|
||||
}
|
||||
|
||||
public class BarberShopResult : ServerPacket
|
||||
@@ -810,7 +810,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteInt32(Result);
|
||||
}
|
||||
|
||||
public ResultEnum Result;
|
||||
public ResultEnum Result { get; set; }
|
||||
|
||||
public enum ResultEnum
|
||||
{
|
||||
@@ -836,12 +836,12 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public ObjectGuid Victim;
|
||||
public int Original;
|
||||
public PlayerLogXPReason Reason;
|
||||
public int Amount;
|
||||
public float GroupBonus;
|
||||
public bool ReferAFriend;
|
||||
public ObjectGuid Victim { get; set; }
|
||||
public int Original { get; set; }
|
||||
public PlayerLogXPReason Reason { get; set; }
|
||||
public int Amount { get; set; }
|
||||
public float GroupBonus { get; set; }
|
||||
public bool ReferAFriend { get; set; }
|
||||
}
|
||||
|
||||
class TitleEarned : ServerPacket
|
||||
@@ -853,7 +853,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(Index);
|
||||
}
|
||||
|
||||
public uint Index;
|
||||
public uint Index { get; set; }
|
||||
}
|
||||
|
||||
class SetFactionAtWar : ClientPacket
|
||||
@@ -865,7 +865,7 @@ namespace Game.Network.Packets
|
||||
FactionIndex = _worldPacket.ReadUInt8();
|
||||
}
|
||||
|
||||
public byte FactionIndex;
|
||||
public byte FactionIndex { get; set; }
|
||||
}
|
||||
|
||||
class SetFactionNotAtWar : ClientPacket
|
||||
@@ -877,7 +877,7 @@ namespace Game.Network.Packets
|
||||
FactionIndex = _worldPacket.ReadUInt8();
|
||||
}
|
||||
|
||||
public byte FactionIndex;
|
||||
public byte FactionIndex { get; set; }
|
||||
}
|
||||
|
||||
class SetFactionInactive : ClientPacket
|
||||
@@ -890,8 +890,8 @@ namespace Game.Network.Packets
|
||||
State = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public uint Index;
|
||||
public bool State;
|
||||
public uint Index { get; set; }
|
||||
public bool State { get; set; }
|
||||
}
|
||||
|
||||
class SetWatchedFaction : ClientPacket
|
||||
@@ -903,7 +903,7 @@ namespace Game.Network.Packets
|
||||
FactionIndex = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public uint FactionIndex;
|
||||
public uint FactionIndex { get; set; }
|
||||
}
|
||||
|
||||
class SetFactionVisible : ServerPacket
|
||||
@@ -915,7 +915,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(FactionIndex);
|
||||
}
|
||||
|
||||
public uint FactionIndex;
|
||||
public uint FactionIndex { get; set; }
|
||||
}
|
||||
|
||||
class CharCustomizeResponse : ServerPacket
|
||||
@@ -956,7 +956,7 @@ namespace Game.Network.Packets
|
||||
byte HairStyleID;
|
||||
byte FacialHairStyleID;
|
||||
byte FaceID;
|
||||
public Array<byte> CustomDisplay = new Array<byte>(PlayerConst.CustomDisplaySize);
|
||||
public Array<byte> CustomDisplay { get; set; } = new Array<byte>(PlayerConst.CustomDisplaySize);
|
||||
}
|
||||
|
||||
class CharCustomizeFailed : ServerPacket
|
||||
@@ -969,8 +969,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(CharGUID);
|
||||
}
|
||||
|
||||
public byte Result;
|
||||
public ObjectGuid CharGUID;
|
||||
public byte Result { get; set; }
|
||||
public ObjectGuid CharGUID { get; set; }
|
||||
}
|
||||
|
||||
class SetPlayerDeclinedNames : ClientPacket
|
||||
@@ -993,8 +993,8 @@ namespace Game.Network.Packets
|
||||
DeclinedNames.name[i] = _worldPacket.ReadString(stringLengths[i]);
|
||||
}
|
||||
|
||||
public ObjectGuid Player;
|
||||
public DeclinedName DeclinedNames;
|
||||
public ObjectGuid Player { get; set; }
|
||||
public DeclinedName DeclinedNames { get; set; }
|
||||
}
|
||||
|
||||
class SetPlayerDeclinedNamesResult : ServerPacket
|
||||
@@ -1007,71 +1007,71 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(Player);
|
||||
}
|
||||
|
||||
public ObjectGuid Player;
|
||||
public DeclinedNameResult ResultCode;
|
||||
public ObjectGuid Player { get; set; }
|
||||
public DeclinedNameResult ResultCode { get; set; }
|
||||
}
|
||||
|
||||
//Structs
|
||||
public class CharacterCreateInfo
|
||||
{
|
||||
// User specified variables
|
||||
public Race RaceId = Race.None;
|
||||
public Class ClassId = Class.None;
|
||||
public Gender Sex = Gender.None;
|
||||
public byte Skin = 0;
|
||||
public byte Face = 0;
|
||||
public byte HairStyle = 0;
|
||||
public byte HairColor = 0;
|
||||
public byte FacialHairStyle = 0;
|
||||
public Array<byte> CustomDisplay = new Array<byte>(PlayerConst.CustomDisplaySize);
|
||||
public byte OutfitId = 0;
|
||||
public Race RaceId { get; set; } = Race.None;
|
||||
public Class ClassId { get; set; } = Class.None;
|
||||
public Gender Sex { get; set; } = Gender.None;
|
||||
public byte Skin { get; set; } = 0;
|
||||
public byte Face { get; set; } = 0;
|
||||
public byte HairStyle { get; set; } = 0;
|
||||
public byte HairColor { get; set; } = 0;
|
||||
public byte FacialHairStyle { get; set; } = 0;
|
||||
public Array<byte> CustomDisplay { get; set; } = new Array<byte>(PlayerConst.CustomDisplaySize);
|
||||
public byte OutfitId { get; set; } = 0;
|
||||
public Optional<uint> TemplateSet = new Optional<uint>();
|
||||
public string Name;
|
||||
|
||||
// Server side data
|
||||
public byte CharCount = 0;
|
||||
public byte CharCount { get; set; } = 0;
|
||||
}
|
||||
|
||||
public class CharacterRenameInfo
|
||||
{
|
||||
public string NewName;
|
||||
public ObjectGuid Guid;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
}
|
||||
|
||||
public class CharCustomizeInfo
|
||||
{
|
||||
public byte HairStyleID = 0;
|
||||
public byte FaceID = 0;
|
||||
public ObjectGuid CharGUID;
|
||||
public Gender SexID = Gender.None;
|
||||
public byte HairStyleID { get; set; } = 0;
|
||||
public byte FaceID { get; set; } = 0;
|
||||
public ObjectGuid CharGUID { get; set; }
|
||||
public Gender SexID { get; set; } = Gender.None;
|
||||
public string CharName;
|
||||
public byte HairColorID = 0;
|
||||
public byte FacialHairStyleID = 0;
|
||||
public byte SkinID = 0;
|
||||
public Array<byte> CustomDisplay = new Array<byte>(PlayerConst.CustomDisplaySize);
|
||||
public byte HairColorID { get; set; } = 0;
|
||||
public byte FacialHairStyleID { get; set; } = 0;
|
||||
public byte SkinID { get; set; } = 0;
|
||||
public Array<byte> CustomDisplay { get; set; } = new Array<byte>(PlayerConst.CustomDisplaySize);
|
||||
}
|
||||
|
||||
public class CharRaceOrFactionChangeInfo
|
||||
{
|
||||
public byte HairColorID;
|
||||
public Race RaceID = Race.None;
|
||||
public Gender SexID = Gender.None;
|
||||
public byte SkinID;
|
||||
public byte FacialHairStyleID;
|
||||
public ObjectGuid Guid;
|
||||
public bool FactionChange = false;
|
||||
public byte HairColorID { get; set; }
|
||||
public Race RaceID { get; set; } = Race.None;
|
||||
public Gender SexID { get; set; } = Gender.None;
|
||||
public byte SkinID { get; set; }
|
||||
public byte FacialHairStyleID { get; set; }
|
||||
public ObjectGuid Guid { get; set; }
|
||||
public bool FactionChange { get; set; } = false;
|
||||
public string Name;
|
||||
public byte FaceID;
|
||||
public byte HairStyleID;
|
||||
public Array<byte> CustomDisplay = new Array<byte>(PlayerConst.CustomDisplaySize);
|
||||
public byte FaceID { get; set; }
|
||||
public byte HairStyleID { get; set; }
|
||||
public Array<byte> CustomDisplay { get; set; } = new Array<byte>(PlayerConst.CustomDisplaySize);
|
||||
}
|
||||
|
||||
public class CharacterUndeleteInfo
|
||||
{ // User specified variables
|
||||
public ObjectGuid CharacterGuid; // Guid of the character to restore
|
||||
public int ClientToken = 0; // @todo: research
|
||||
public int ClientToken { get; set; } = 0; // @todo: research
|
||||
|
||||
// Server side data
|
||||
public string Name;
|
||||
public string Name { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,8 +32,8 @@ namespace Game.Network.Packets
|
||||
Text = _worldPacket.ReadString(len);
|
||||
}
|
||||
|
||||
public string Text;
|
||||
public Language Language = Language.Universal;
|
||||
public string Text { get; set; }
|
||||
public Language Language { get; set; } = Language.Universal;
|
||||
}
|
||||
|
||||
public class ChatMessageWhisper : ClientPacket
|
||||
@@ -49,9 +49,9 @@ namespace Game.Network.Packets
|
||||
Text = _worldPacket.ReadString(textLen);
|
||||
}
|
||||
|
||||
public Language Language = Language.Universal;
|
||||
public string Text;
|
||||
public string Target;
|
||||
public Language Language { get; set; } = Language.Universal;
|
||||
public string Text { get; set; }
|
||||
public string Target { get; set; }
|
||||
}
|
||||
|
||||
public class ChatMessageChannel : ClientPacket
|
||||
@@ -67,9 +67,9 @@ namespace Game.Network.Packets
|
||||
Text = _worldPacket.ReadString(textLen);
|
||||
}
|
||||
|
||||
public Language Language = Language.Universal;
|
||||
public string Text;
|
||||
public string Target;
|
||||
public Language Language { get; set; } = Language.Universal;
|
||||
public string Text { get; set; }
|
||||
public string Target { get; set; }
|
||||
}
|
||||
|
||||
public class ChatAddonMessage : ClientPacket
|
||||
@@ -84,8 +84,8 @@ namespace Game.Network.Packets
|
||||
Text = _worldPacket.ReadString(textLen);
|
||||
}
|
||||
|
||||
public string Prefix;
|
||||
public string Text;
|
||||
public string Prefix { get; set; }
|
||||
public string Text { get; set; }
|
||||
}
|
||||
|
||||
public class ChatAddonMessageWhisper : ClientPacket
|
||||
@@ -102,9 +102,9 @@ namespace Game.Network.Packets
|
||||
Text = _worldPacket.ReadString(textLen);
|
||||
}
|
||||
|
||||
public string Prefix;
|
||||
public string Target;
|
||||
public string Text;
|
||||
public string Prefix { get; set; }
|
||||
public string Target { get; set; }
|
||||
public string Text { get; set; }
|
||||
}
|
||||
|
||||
class ChatAddonMessageChannel : ClientPacket
|
||||
@@ -121,9 +121,9 @@ namespace Game.Network.Packets
|
||||
Text = _worldPacket.ReadString(textLen);
|
||||
}
|
||||
|
||||
public string Text;
|
||||
public string Target;
|
||||
public string Prefix;
|
||||
public string Text { get; set; }
|
||||
public string Target { get; set; }
|
||||
public string Prefix { get; set; }
|
||||
}
|
||||
|
||||
public class ChatMessageDND : ClientPacket
|
||||
@@ -136,7 +136,7 @@ namespace Game.Network.Packets
|
||||
Text = _worldPacket.ReadString(len);
|
||||
}
|
||||
|
||||
public string Text;
|
||||
public string Text { get; set; }
|
||||
}
|
||||
|
||||
public class ChatMessageAFK : ClientPacket
|
||||
@@ -149,7 +149,7 @@ namespace Game.Network.Packets
|
||||
Text = _worldPacket.ReadString(len);
|
||||
}
|
||||
|
||||
public string Text;
|
||||
public string Text { get; set; }
|
||||
}
|
||||
|
||||
public class ChatMessageEmote : ClientPacket
|
||||
@@ -162,7 +162,7 @@ namespace Game.Network.Packets
|
||||
Text = _worldPacket.ReadString(len);
|
||||
}
|
||||
|
||||
public string Text;
|
||||
public string Text { get; set; }
|
||||
}
|
||||
|
||||
public class ChatPkt : ServerPacket
|
||||
@@ -260,25 +260,25 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(ChatText);
|
||||
}
|
||||
|
||||
public ChatMsg SlashCmd = 0;
|
||||
public Language _Language = Language.Universal;
|
||||
public ObjectGuid SenderGUID;
|
||||
public ObjectGuid SenderGuildGUID;
|
||||
public ObjectGuid SenderAccountGUID;
|
||||
public ObjectGuid TargetGUID;
|
||||
public ObjectGuid PartyGUID;
|
||||
public uint SenderVirtualAddress;
|
||||
public uint TargetVirtualAddress;
|
||||
public string SenderName = "";
|
||||
public string TargetName = "";
|
||||
public string Prefix = "";
|
||||
public string Channel = "";
|
||||
public string ChatText = "";
|
||||
public uint AchievementID = 0;
|
||||
public ChatFlags _ChatFlags = 0;
|
||||
public float DisplayTime = 0.0f;
|
||||
public bool HideChatLog = false;
|
||||
public bool FakeSenderName = false;
|
||||
public ChatMsg SlashCmd { get; set; } = 0;
|
||||
public Language _Language { get; set; } = Language.Universal;
|
||||
public ObjectGuid SenderGUID { get; set; }
|
||||
public ObjectGuid SenderGuildGUID { get; set; }
|
||||
public ObjectGuid SenderAccountGUID { get; set; }
|
||||
public ObjectGuid TargetGUID { get; set; }
|
||||
public ObjectGuid PartyGUID { get; set; }
|
||||
public uint SenderVirtualAddress { get; set; }
|
||||
public uint TargetVirtualAddress { get; set; }
|
||||
public string SenderName { get; set; } = "";
|
||||
public string TargetName { get; set; } = "";
|
||||
public string Prefix { get; set; } = "";
|
||||
public string Channel { get; set; } = "";
|
||||
public string ChatText { get; set; } = "";
|
||||
public uint AchievementID { get; set; } = 0;
|
||||
public ChatFlags _ChatFlags { get; set; } = 0;
|
||||
public float DisplayTime { get; set; } = 0.0f;
|
||||
public bool HideChatLog { get; set; } = false;
|
||||
public bool FakeSenderName { get; set; } = false;
|
||||
}
|
||||
|
||||
public class EmoteMessage : ServerPacket
|
||||
@@ -291,8 +291,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(EmoteID);
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public int EmoteID;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
public int EmoteID { get; set; }
|
||||
}
|
||||
|
||||
public class CTextEmote : ClientPacket
|
||||
@@ -306,9 +306,9 @@ namespace Game.Network.Packets
|
||||
SoundIndex = _worldPacket.ReadInt32();
|
||||
}
|
||||
|
||||
public ObjectGuid Target;
|
||||
public int EmoteID;
|
||||
public int SoundIndex;
|
||||
public ObjectGuid Target { get; set; }
|
||||
public int EmoteID { get; set; }
|
||||
public int SoundIndex { get; set; }
|
||||
}
|
||||
|
||||
public class STextEmote : ServerPacket
|
||||
@@ -324,11 +324,11 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(TargetGUID);
|
||||
}
|
||||
|
||||
public ObjectGuid SourceGUID;
|
||||
public ObjectGuid SourceAccountGUID;
|
||||
public ObjectGuid TargetGUID;
|
||||
public int SoundIndex = -1;
|
||||
public int EmoteID;
|
||||
public ObjectGuid SourceGUID { get; set; }
|
||||
public ObjectGuid SourceAccountGUID { get; set; }
|
||||
public ObjectGuid TargetGUID { get; set; }
|
||||
public int SoundIndex { get; set; } = -1;
|
||||
public int EmoteID { get; set; }
|
||||
}
|
||||
|
||||
public class PrintNotification : ServerPacket
|
||||
@@ -344,7 +344,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(NotifyText);
|
||||
}
|
||||
|
||||
public string NotifyText;
|
||||
public string NotifyText { get; set; }
|
||||
}
|
||||
|
||||
public class EmoteClient : ClientPacket
|
||||
@@ -413,8 +413,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(StringParam);
|
||||
}
|
||||
|
||||
public int MessageID;
|
||||
public string StringParam = "";
|
||||
public int MessageID { get; set; }
|
||||
public string StringParam { get; set; } = "";
|
||||
}
|
||||
|
||||
class ChatRegisterAddonPrefixes : ClientPacket
|
||||
@@ -429,7 +429,7 @@ namespace Game.Network.Packets
|
||||
Prefixes[i] = _worldPacket.ReadString(_worldPacket.ReadBits<uint>(5));
|
||||
}
|
||||
|
||||
public string[] Prefixes = new string[64];
|
||||
public string[] Prefixes { get; set; } = new string[64];
|
||||
}
|
||||
|
||||
class ChatUnregisterAllAddonPrefixes : ClientPacket
|
||||
@@ -451,8 +451,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(MessageText);
|
||||
}
|
||||
|
||||
public uint ZoneID;
|
||||
public string MessageText = "";
|
||||
public uint ZoneID { get; set; }
|
||||
public string MessageText { get; set; } = "";
|
||||
}
|
||||
|
||||
class ChatReportIgnored : ClientPacket
|
||||
@@ -465,7 +465,7 @@ namespace Game.Network.Packets
|
||||
Reason = _worldPacket.ReadUInt8();
|
||||
}
|
||||
|
||||
public ObjectGuid IgnoredGUID;
|
||||
public byte Reason;
|
||||
public ObjectGuid IgnoredGUID { get; set; }
|
||||
public byte Reason { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,9 +33,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(AccountTimes[i]);
|
||||
}
|
||||
|
||||
public ObjectGuid PlayerGuid;
|
||||
public uint ServerTime = 0;
|
||||
public uint[] AccountTimes = new uint[(int)AccountDataTypes.Max];
|
||||
public ObjectGuid PlayerGuid { get; set; }
|
||||
public uint ServerTime { get; set; } = 0;
|
||||
public uint[] AccountTimes { get; set; } = new uint[(int)AccountDataTypes.Max];
|
||||
}
|
||||
|
||||
public class ClientCacheVersion : ServerPacket
|
||||
@@ -47,7 +47,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(CacheVersion);
|
||||
}
|
||||
|
||||
public uint CacheVersion = 0;
|
||||
public uint CacheVersion { get; set; } = 0;
|
||||
}
|
||||
|
||||
public class RequestAccountData : ClientPacket
|
||||
@@ -60,8 +60,8 @@ namespace Game.Network.Packets
|
||||
DataType = (AccountDataTypes)_worldPacket.ReadBits<uint>(3);
|
||||
}
|
||||
|
||||
public ObjectGuid PlayerGuid;
|
||||
public AccountDataTypes DataType = 0;
|
||||
public ObjectGuid PlayerGuid { get; set; }
|
||||
public AccountDataTypes DataType { get; set; } = 0;
|
||||
}
|
||||
|
||||
public class UpdateAccountData : ServerPacket
|
||||
@@ -80,11 +80,11 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteBytes(bytes);
|
||||
}
|
||||
|
||||
public ObjectGuid Player;
|
||||
public uint Time = 0; // UnixTime
|
||||
public uint Size = 0; // decompressed size
|
||||
public AccountDataTypes DataType = 0;
|
||||
public ByteBuffer CompressedData;
|
||||
public ObjectGuid Player { get; set; }
|
||||
public uint Time { get; set; } = 0; // UnixTime
|
||||
public uint Size { get; set; } = 0; // decompressed size
|
||||
public AccountDataTypes DataType { get; set; } = 0;
|
||||
public ByteBuffer CompressedData { get; set; }
|
||||
}
|
||||
|
||||
public class UserClientUpdateAccountData : ClientPacket
|
||||
@@ -105,11 +105,11 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public ObjectGuid PlayerGuid;
|
||||
public uint Time = 0; // UnixTime
|
||||
public uint Size = 0; // decompressed size
|
||||
public AccountDataTypes DataType = 0;
|
||||
public ByteBuffer CompressedData;
|
||||
public ObjectGuid PlayerGuid { get; set; }
|
||||
public uint Time { get; set; } = 0; // UnixTime
|
||||
public uint Size { get; set; } = 0; // decompressed size
|
||||
public AccountDataTypes DataType { get; set; } = 0;
|
||||
public ByteBuffer CompressedData { get; set; }
|
||||
}
|
||||
|
||||
class SetAdvancedCombatLogging : ClientPacket
|
||||
@@ -121,6 +121,6 @@ namespace Game.Network.Packets
|
||||
Enable = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public bool Enable;
|
||||
public bool Enable { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,8 +36,8 @@ namespace Game.Network.Packets
|
||||
IsFavorite = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public CollectionType Type;
|
||||
public uint ID;
|
||||
public bool IsFavorite;
|
||||
public CollectionType Type { get; set; }
|
||||
public uint ID { get; set; }
|
||||
public bool IsFavorite { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -85,21 +85,21 @@ namespace Game.Network.Packets
|
||||
SandboxScaling.Value.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public ObjectGuid Me;
|
||||
public ObjectGuid CasterGUID;
|
||||
public ObjectGuid CastID;
|
||||
public int SpellID;
|
||||
public int SpellXSpellVisualID;
|
||||
public int Damage;
|
||||
public int Overkill;
|
||||
public byte SchoolMask;
|
||||
public int ShieldBlock;
|
||||
public int Resisted;
|
||||
public bool Periodic;
|
||||
public int Absorbed;
|
||||
public int Flags;
|
||||
public ObjectGuid Me { get; set; }
|
||||
public ObjectGuid CasterGUID { get; set; }
|
||||
public ObjectGuid CastID { get; set; }
|
||||
public int SpellID { get; set; }
|
||||
public int SpellXSpellVisualID { get; set; }
|
||||
public int Damage { get; set; }
|
||||
public int Overkill { get; set; }
|
||||
public byte SchoolMask { get; set; }
|
||||
public int ShieldBlock { get; set; }
|
||||
public int Resisted { get; set; }
|
||||
public bool Periodic { get; set; }
|
||||
public int Absorbed { get; set; }
|
||||
public int Flags { get; set; }
|
||||
// Optional<SpellNonMeleeDamageLogDebugInfo> DebugInfo;
|
||||
public Optional<SandboxScalingData> SandboxScaling = new Optional<SandboxScalingData>();
|
||||
public Optional<SandboxScalingData> SandboxScaling { get; set; } = new Optional<SandboxScalingData>();
|
||||
}
|
||||
|
||||
class EnvironmentalDamageLog : CombatLogServerPacket
|
||||
@@ -119,11 +119,11 @@ namespace Game.Network.Packets
|
||||
WriteLogData();
|
||||
}
|
||||
|
||||
public ObjectGuid Victim;
|
||||
public EnviromentalDamage Type;
|
||||
public int Amount;
|
||||
public int Resisted;
|
||||
public int Absorbed;
|
||||
public ObjectGuid Victim { get; set; }
|
||||
public EnviromentalDamage Type { get; set; }
|
||||
public int Amount { get; set; }
|
||||
public int Resisted { get; set; }
|
||||
public int Absorbed { get; set; }
|
||||
}
|
||||
|
||||
class SpellExecuteLog : CombatLogServerPacket
|
||||
@@ -184,20 +184,20 @@ namespace Game.Network.Packets
|
||||
WriteLogData();
|
||||
}
|
||||
|
||||
public ObjectGuid Caster;
|
||||
public uint SpellID;
|
||||
public List<SpellLogEffect> Effects = new List<SpellLogEffect>();
|
||||
public ObjectGuid Caster { get; set; }
|
||||
public uint SpellID { get; set; }
|
||||
public List<SpellLogEffect> Effects { get; set; } = new List<SpellLogEffect>();
|
||||
|
||||
public class SpellLogEffect
|
||||
{
|
||||
public int Effect;
|
||||
public int Effect { get; set; }
|
||||
|
||||
public List<SpellLogEffectPowerDrainParams> PowerDrainTargets = new List<SpellLogEffectPowerDrainParams>();
|
||||
public List<SpellLogEffectExtraAttacksParams> ExtraAttacksTargets = new List<SpellLogEffectExtraAttacksParams>();
|
||||
public List<SpellLogEffectDurabilityDamageParams> DurabilityDamageTargets = new List<SpellLogEffectDurabilityDamageParams>();
|
||||
public List<SpellLogEffectGenericVictimParams> GenericVictimTargets = new List<SpellLogEffectGenericVictimParams>();
|
||||
public List<SpellLogEffectTradeSkillItemParams> TradeSkillTargets = new List<SpellLogEffectTradeSkillItemParams>();
|
||||
public List<SpellLogEffectFeedPetParams> FeedPetTargets = new List<SpellLogEffectFeedPetParams>();
|
||||
public List<SpellLogEffectPowerDrainParams> PowerDrainTargets { get; set; } = new List<SpellLogEffectPowerDrainParams>();
|
||||
public List<SpellLogEffectExtraAttacksParams> ExtraAttacksTargets { get; set; } = new List<SpellLogEffectExtraAttacksParams>();
|
||||
public List<SpellLogEffectDurabilityDamageParams> DurabilityDamageTargets { get; set; } = new List<SpellLogEffectDurabilityDamageParams>();
|
||||
public List<SpellLogEffectGenericVictimParams> GenericVictimTargets { get; set; } = new List<SpellLogEffectGenericVictimParams>();
|
||||
public List<SpellLogEffectTradeSkillItemParams> TradeSkillTargets { get; set; } = new List<SpellLogEffectTradeSkillItemParams>();
|
||||
public List<SpellLogEffectFeedPetParams> FeedPetTargets { get; set; } = new List<SpellLogEffectFeedPetParams>();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -235,15 +235,15 @@ namespace Game.Network.Packets
|
||||
SandboxScaling.Value.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public ObjectGuid CasterGUID;
|
||||
public ObjectGuid TargetGUID;
|
||||
public uint SpellID;
|
||||
public uint Health;
|
||||
public uint OverHeal;
|
||||
public uint Absorbed;
|
||||
public bool Crit;
|
||||
public Optional<float> CritRollMade;
|
||||
public Optional<float> CritRollNeeded;
|
||||
public ObjectGuid CasterGUID { get; set; }
|
||||
public ObjectGuid TargetGUID { get; set; }
|
||||
public uint SpellID { get; set; }
|
||||
public uint Health { get; set; }
|
||||
public uint OverHeal { get; set; }
|
||||
public uint Absorbed { get; set; }
|
||||
public bool Crit { get; set; }
|
||||
public Optional<float> CritRollMade { get; set; }
|
||||
public Optional<float> CritRollNeeded { get; set; }
|
||||
Optional<SandboxScalingData> SandboxScaling = new Optional<SandboxScalingData>();
|
||||
}
|
||||
|
||||
@@ -265,15 +265,15 @@ namespace Game.Network.Packets
|
||||
WriteLogData();
|
||||
}
|
||||
|
||||
public ObjectGuid TargetGUID;
|
||||
public ObjectGuid CasterGUID;
|
||||
public uint SpellID;
|
||||
public List<SpellLogEffect> Effects = new List<SpellLogEffect>();
|
||||
public ObjectGuid TargetGUID { get; set; }
|
||||
public ObjectGuid CasterGUID { get; set; }
|
||||
public uint SpellID { get; set; }
|
||||
public List<SpellLogEffect> Effects { get; set; } = new List<SpellLogEffect>();
|
||||
|
||||
public struct PeriodicalAuraLogEffectDebugInfo
|
||||
{
|
||||
public float CritRollMade;
|
||||
public float CritRollNeeded;
|
||||
public float CritRollMade { get; set; }
|
||||
public float CritRollNeeded { get; set; }
|
||||
}
|
||||
|
||||
public class SpellLogEffect
|
||||
@@ -302,15 +302,15 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public uint Effect;
|
||||
public uint Amount;
|
||||
public uint OverHealOrKill;
|
||||
public uint SchoolMaskOrPower;
|
||||
public uint AbsorbedOrAmplitude;
|
||||
public uint Resisted;
|
||||
public bool Crit;
|
||||
public Optional<PeriodicalAuraLogEffectDebugInfo> DebugInfo;
|
||||
public Optional<SandboxScalingData> SandboxScaling = new Optional<SandboxScalingData>();
|
||||
public uint Effect { get; set; }
|
||||
public uint Amount { get; set; }
|
||||
public uint OverHealOrKill { get; set; }
|
||||
public uint SchoolMaskOrPower { get; set; }
|
||||
public uint AbsorbedOrAmplitude { get; set; }
|
||||
public uint Resisted { get; set; }
|
||||
public bool Crit { get; set; }
|
||||
public Optional<PeriodicalAuraLogEffectDebugInfo> DebugInfo { get; set; }
|
||||
public Optional<SandboxScalingData> SandboxScaling { get; set; } = new Optional<SandboxScalingData>();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -326,10 +326,10 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(SpellID);
|
||||
}
|
||||
|
||||
public ObjectGuid Caster;
|
||||
public ObjectGuid Victim;
|
||||
public uint InterruptedSpellID;
|
||||
public uint SpellID;
|
||||
public ObjectGuid Caster { get; set; }
|
||||
public ObjectGuid Victim { get; set; }
|
||||
public uint InterruptedSpellID { get; set; }
|
||||
public uint SpellID { get; set; }
|
||||
}
|
||||
|
||||
class SpellDispellLog : ServerPacket
|
||||
@@ -360,12 +360,12 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public List<SpellDispellData> DispellData = new List<SpellDispellData>();
|
||||
public ObjectGuid CasterGUID;
|
||||
public ObjectGuid TargetGUID;
|
||||
public uint DispelledBySpellID;
|
||||
public bool IsBreak;
|
||||
public bool IsSteal;
|
||||
public List<SpellDispellData> DispellData { get; set; } = new List<SpellDispellData>();
|
||||
public ObjectGuid CasterGUID { get; set; }
|
||||
public ObjectGuid TargetGUID { get; set; }
|
||||
public uint DispelledBySpellID { get; set; }
|
||||
public bool IsBreak { get; set; }
|
||||
public bool IsSteal { get; set; }
|
||||
}
|
||||
|
||||
|
||||
@@ -388,12 +388,12 @@ namespace Game.Network.Packets
|
||||
WriteLogData();
|
||||
}
|
||||
|
||||
public ObjectGuid TargetGUID;
|
||||
public ObjectGuid CasterGUID;
|
||||
public uint SpellID;
|
||||
public PowerType Type;
|
||||
public int Amount;
|
||||
public int OverEnergize;
|
||||
public ObjectGuid TargetGUID { get; set; }
|
||||
public ObjectGuid CasterGUID { get; set; }
|
||||
public uint SpellID { get; set; }
|
||||
public PowerType Type { get; set; }
|
||||
public int Amount { get; set; }
|
||||
public int OverEnergize { get; set; }
|
||||
}
|
||||
|
||||
class SpellInstakillLog : ServerPacket
|
||||
@@ -407,9 +407,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(SpellID);
|
||||
}
|
||||
|
||||
public ObjectGuid Target;
|
||||
public ObjectGuid Caster;
|
||||
public uint SpellID;
|
||||
public ObjectGuid Target { get; set; }
|
||||
public ObjectGuid Caster { get; set; }
|
||||
public uint SpellID { get; set; }
|
||||
}
|
||||
|
||||
class SpellMissLog : ServerPacket
|
||||
@@ -426,9 +426,9 @@ namespace Game.Network.Packets
|
||||
missEntry.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public uint SpellID;
|
||||
public ObjectGuid Caster;
|
||||
public List<SpellLogMissEntry> Entries = new List<SpellLogMissEntry>();
|
||||
public uint SpellID { get; set; }
|
||||
public ObjectGuid Caster { get; set; }
|
||||
public List<SpellLogMissEntry> Entries { get; set; } = new List<SpellLogMissEntry>();
|
||||
}
|
||||
|
||||
class ProcResist : ServerPacket
|
||||
@@ -451,11 +451,11 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteFloat(Needed.Value);
|
||||
}
|
||||
|
||||
public ObjectGuid Caster;
|
||||
public ObjectGuid Target;
|
||||
public uint SpellID;
|
||||
public Optional<float> Rolled;
|
||||
public Optional<float> Needed;
|
||||
public ObjectGuid Caster { get; set; }
|
||||
public ObjectGuid Target { get; set; }
|
||||
public uint SpellID { get; set; }
|
||||
public Optional<float> Rolled { get; set; }
|
||||
public Optional<float> Needed { get; set; }
|
||||
}
|
||||
|
||||
class SpellOrDamageImmune : ServerPacket
|
||||
@@ -471,10 +471,10 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public ObjectGuid CasterGUID;
|
||||
public ObjectGuid VictimGUID;
|
||||
public uint SpellID;
|
||||
public bool IsPeriodic;
|
||||
public ObjectGuid CasterGUID { get; set; }
|
||||
public ObjectGuid VictimGUID { get; set; }
|
||||
public uint SpellID { get; set; }
|
||||
public bool IsPeriodic { get; set; }
|
||||
}
|
||||
|
||||
class SpellDamageShield : CombatLogServerPacket
|
||||
@@ -496,13 +496,13 @@ namespace Game.Network.Packets
|
||||
WriteLogData();
|
||||
}
|
||||
|
||||
public ObjectGuid Attacker;
|
||||
public ObjectGuid Defender;
|
||||
public uint SpellID;
|
||||
public uint TotalDamage;
|
||||
public uint OverKill;
|
||||
public uint SchoolMask;
|
||||
public uint LogAbsorbed;
|
||||
public ObjectGuid Attacker { get; set; }
|
||||
public ObjectGuid Defender { get; set; }
|
||||
public uint SpellID { get; set; }
|
||||
public uint TotalDamage { get; set; }
|
||||
public uint OverKill { get; set; }
|
||||
public uint SchoolMask { get; set; }
|
||||
public uint LogAbsorbed { get; set; }
|
||||
}
|
||||
|
||||
class AttackerStateUpdate : CombatLogServerPacket
|
||||
@@ -581,56 +581,56 @@ namespace Game.Network.Packets
|
||||
}
|
||||
|
||||
public HitInfo hitInfo; // Flags
|
||||
public ObjectGuid AttackerGUID;
|
||||
public ObjectGuid VictimGUID;
|
||||
public int Damage;
|
||||
public int OverDamage = -1; // (damage - health) or -1 if unit is still alive
|
||||
public Optional<SubDamage> SubDmg;
|
||||
public byte VictimState;
|
||||
public uint AttackerState;
|
||||
public uint MeleeSpellID;
|
||||
public int BlockAmount;
|
||||
public int RageGained;
|
||||
public UnkAttackerState UnkState;
|
||||
public float Unk;
|
||||
public SandboxScalingData SandboxScaling = new SandboxScalingData();
|
||||
public ObjectGuid AttackerGUID { get; set; }
|
||||
public ObjectGuid VictimGUID { get; set; }
|
||||
public int Damage { get; set; }
|
||||
public int OverDamage { get; set; } = -1; // (damage - health) or -1 if unit is still alive
|
||||
public Optional<SubDamage> SubDmg { get; set; }
|
||||
public byte VictimState { get; set; }
|
||||
public uint AttackerState { get; set; }
|
||||
public uint MeleeSpellID { get; set; }
|
||||
public int BlockAmount { get; set; }
|
||||
public int RageGained { get; set; }
|
||||
public UnkAttackerState UnkState { get; set; }
|
||||
public float Unk { get; set; }
|
||||
public SandboxScalingData SandboxScaling { get; set; } = new SandboxScalingData();
|
||||
}
|
||||
|
||||
//Structs
|
||||
struct SpellLogEffectPowerDrainParams
|
||||
{
|
||||
public ObjectGuid Victim;
|
||||
public uint Points;
|
||||
public uint PowerType;
|
||||
public float Amplitude;
|
||||
public ObjectGuid Victim { get; set; }
|
||||
public uint Points { get; set; }
|
||||
public uint PowerType { get; set; }
|
||||
public float Amplitude { get; set; }
|
||||
}
|
||||
|
||||
struct SpellLogEffectExtraAttacksParams
|
||||
{
|
||||
public ObjectGuid Victim;
|
||||
public uint NumAttacks;
|
||||
public ObjectGuid Victim { get; set; }
|
||||
public uint NumAttacks { get; set; }
|
||||
}
|
||||
|
||||
struct SpellLogEffectDurabilityDamageParams
|
||||
{
|
||||
public ObjectGuid Victim;
|
||||
public int ItemID;
|
||||
public int Amount;
|
||||
public ObjectGuid Victim { get; set; }
|
||||
public int ItemID { get; set; }
|
||||
public int Amount { get; set; }
|
||||
}
|
||||
|
||||
struct SpellLogEffectGenericVictimParams
|
||||
{
|
||||
public ObjectGuid Victim;
|
||||
public ObjectGuid Victim { get; set; }
|
||||
}
|
||||
|
||||
struct SpellLogEffectTradeSkillItemParams
|
||||
{
|
||||
public int ItemID;
|
||||
public int ItemID { get; set; }
|
||||
}
|
||||
|
||||
struct SpellLogEffectFeedPetParams
|
||||
{
|
||||
public int ItemID;
|
||||
public int ItemID { get; set; }
|
||||
}
|
||||
|
||||
struct SpellLogMissDebug
|
||||
@@ -641,8 +641,8 @@ namespace Game.Network.Packets
|
||||
data.WriteFloat(HitRollNeeded);
|
||||
}
|
||||
|
||||
public float HitRoll;
|
||||
public float HitRollNeeded;
|
||||
public float HitRoll { get; set; }
|
||||
public float HitRollNeeded { get; set; }
|
||||
}
|
||||
|
||||
public struct SpellLogMissEntry
|
||||
@@ -664,41 +664,41 @@ namespace Game.Network.Packets
|
||||
data.FlushBits();
|
||||
}
|
||||
|
||||
public ObjectGuid Victim;
|
||||
public byte MissReason;
|
||||
public ObjectGuid Victim { get; set; }
|
||||
public byte MissReason { get; set; }
|
||||
Optional<SpellLogMissDebug> Debug;
|
||||
}
|
||||
|
||||
struct SpellDispellData
|
||||
{
|
||||
public uint SpellID;
|
||||
public bool Harmful;
|
||||
public Optional<int> Rolled;
|
||||
public Optional<int> Needed;
|
||||
public uint SpellID { get; set; }
|
||||
public bool Harmful { get; set; }
|
||||
public Optional<int> Rolled { get; set; }
|
||||
public Optional<int> Needed { get; set; }
|
||||
}
|
||||
|
||||
public struct SubDamage
|
||||
{
|
||||
public int SchoolMask;
|
||||
public int SchoolMask { get; set; }
|
||||
public float FDamage; // Float damage (Most of the time equals to Damage)
|
||||
public int Damage;
|
||||
public int Absorbed;
|
||||
public int Resisted;
|
||||
public int Damage { get; set; }
|
||||
public int Absorbed { get; set; }
|
||||
public int Resisted { get; set; }
|
||||
}
|
||||
|
||||
public struct UnkAttackerState
|
||||
{
|
||||
public uint State1;
|
||||
public float State2;
|
||||
public float State3;
|
||||
public float State4;
|
||||
public float State5;
|
||||
public float State6;
|
||||
public float State7;
|
||||
public float State8;
|
||||
public float State9;
|
||||
public float State10;
|
||||
public float State11;
|
||||
public uint State12;
|
||||
public uint State1 { get; set; }
|
||||
public float State2 { get; set; }
|
||||
public float State3 { get; set; }
|
||||
public float State4 { get; set; }
|
||||
public float State5 { get; set; }
|
||||
public float State6 { get; set; }
|
||||
public float State7 { get; set; }
|
||||
public float State8 { get; set; }
|
||||
public float State9 { get; set; }
|
||||
public float State10 { get; set; }
|
||||
public float State11 { get; set; }
|
||||
public uint State12 { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace Game.Network.Packets
|
||||
Victim = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid Victim;
|
||||
public ObjectGuid Victim { get; set; }
|
||||
}
|
||||
|
||||
public class AttackSwingError : ServerPacket
|
||||
@@ -66,8 +66,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(Victim);
|
||||
}
|
||||
|
||||
public ObjectGuid Attacker;
|
||||
public ObjectGuid Victim;
|
||||
public ObjectGuid Attacker { get; set; }
|
||||
public ObjectGuid Victim { get; set; }
|
||||
}
|
||||
|
||||
public class SAttackStop : ServerPacket
|
||||
@@ -90,9 +90,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public ObjectGuid Attacker;
|
||||
public ObjectGuid Victim;
|
||||
public bool NowDead = false;
|
||||
public ObjectGuid Attacker { get; set; }
|
||||
public ObjectGuid Victim { get; set; }
|
||||
public bool NowDead { get; set; } = false;
|
||||
}
|
||||
|
||||
public class ThreatUpdate : ServerPacket
|
||||
@@ -110,8 +110,8 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public ObjectGuid UnitGUID;
|
||||
public List<ThreatInfo> ThreatList = new List<ThreatInfo>();
|
||||
public ObjectGuid UnitGUID { get; set; }
|
||||
public List<ThreatInfo> ThreatList { get; set; } = new List<ThreatInfo>();
|
||||
}
|
||||
|
||||
public class HighestThreatUpdate : ServerPacket
|
||||
@@ -130,9 +130,9 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public ObjectGuid UnitGUID;
|
||||
public List<ThreatInfo> ThreatList = new List<ThreatInfo>();
|
||||
public ObjectGuid HighestThreatGUID;
|
||||
public ObjectGuid UnitGUID { get; set; }
|
||||
public List<ThreatInfo> ThreatList { get; set; } = new List<ThreatInfo>();
|
||||
public ObjectGuid HighestThreatGUID { get; set; }
|
||||
}
|
||||
|
||||
public class ThreatRemove : ServerPacket
|
||||
@@ -159,8 +159,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(Reaction);
|
||||
}
|
||||
|
||||
public ObjectGuid UnitGUID;
|
||||
public AiReaction Reaction;
|
||||
public ObjectGuid UnitGUID { get; set; }
|
||||
public AiReaction Reaction { get; set; }
|
||||
}
|
||||
|
||||
public class CancelCombat : ServerPacket
|
||||
@@ -188,8 +188,8 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public List<PowerUpdatePower> Powers;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
public List<PowerUpdatePower> Powers { get; set; }
|
||||
}
|
||||
|
||||
public class SetSheathed : ClientPacket
|
||||
@@ -202,8 +202,8 @@ namespace Game.Network.Packets
|
||||
Animate = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public int CurrentSheathState;
|
||||
public bool Animate = true;
|
||||
public int CurrentSheathState { get; set; }
|
||||
public bool Animate { get; set; } = true;
|
||||
}
|
||||
|
||||
public class CancelAutoRepeat : ServerPacket
|
||||
@@ -215,7 +215,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(Guid);
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
}
|
||||
|
||||
public class HealthUpdate : ServerPacket
|
||||
@@ -228,8 +228,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteInt64(Health);
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public long Health;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
public long Health { get; set; }
|
||||
}
|
||||
|
||||
public class ThreatClear : ServerPacket
|
||||
@@ -241,7 +241,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(UnitGUID);
|
||||
}
|
||||
|
||||
public ObjectGuid UnitGUID;
|
||||
public ObjectGuid UnitGUID { get; set; }
|
||||
}
|
||||
|
||||
class PvPCredit : ServerPacket
|
||||
@@ -256,10 +256,10 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(Rank);
|
||||
}
|
||||
|
||||
public int OriginalHonor;
|
||||
public int Honor;
|
||||
public ObjectGuid Target;
|
||||
public uint Rank;
|
||||
public int OriginalHonor { get; set; }
|
||||
public int Honor { get; set; }
|
||||
public ObjectGuid Target { get; set; }
|
||||
public uint Rank { get; set; }
|
||||
}
|
||||
|
||||
class BreakTarget : ServerPacket
|
||||
@@ -271,14 +271,14 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(UnitGUID);
|
||||
}
|
||||
|
||||
public ObjectGuid UnitGUID;
|
||||
public ObjectGuid UnitGUID { get; set; }
|
||||
}
|
||||
|
||||
//Structs
|
||||
public struct ThreatInfo
|
||||
{
|
||||
public ObjectGuid UnitGUID;
|
||||
public long Threat;
|
||||
public ObjectGuid UnitGUID { get; set; }
|
||||
public long Threat { get; set; }
|
||||
}
|
||||
|
||||
public struct PowerUpdatePower
|
||||
@@ -289,7 +289,7 @@ namespace Game.Network.Packets
|
||||
PowerType = powerType;
|
||||
}
|
||||
|
||||
public int Power;
|
||||
public byte PowerType;
|
||||
public int Power { get; set; }
|
||||
public byte PowerType { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace Game.Network.Packets
|
||||
TargetGUID = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid TargetGUID;
|
||||
public ObjectGuid TargetGUID { get; set; }
|
||||
}
|
||||
|
||||
public class CanDuelResult : ServerPacket
|
||||
@@ -43,8 +43,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public ObjectGuid TargetGUID;
|
||||
public bool Result;
|
||||
public ObjectGuid TargetGUID { get; set; }
|
||||
public bool Result { get; set; }
|
||||
}
|
||||
|
||||
public class DuelComplete : ServerPacket
|
||||
@@ -57,7 +57,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public bool Started;
|
||||
public bool Started { get; set; }
|
||||
}
|
||||
|
||||
public class DuelCountdown : ServerPacket
|
||||
@@ -100,9 +100,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(RequestedByWowAccount);
|
||||
}
|
||||
|
||||
public ObjectGuid ArbiterGUID;
|
||||
public ObjectGuid RequestedByGUID;
|
||||
public ObjectGuid RequestedByWowAccount;
|
||||
public ObjectGuid ArbiterGUID { get; set; }
|
||||
public ObjectGuid RequestedByGUID { get; set; }
|
||||
public ObjectGuid RequestedByWowAccount { get; set; }
|
||||
}
|
||||
|
||||
public class DuelResponse : ClientPacket
|
||||
@@ -115,8 +115,8 @@ namespace Game.Network.Packets
|
||||
Accepted = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public ObjectGuid ArbiterGUID;
|
||||
public bool Accepted;
|
||||
public ObjectGuid ArbiterGUID { get; set; }
|
||||
public bool Accepted { get; set; }
|
||||
}
|
||||
|
||||
public class DuelWinner : ServerPacket
|
||||
@@ -134,10 +134,10 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(WinnerName);
|
||||
}
|
||||
|
||||
public string BeatenName;
|
||||
public string WinnerName;
|
||||
public uint BeatenVirtualRealmAddress;
|
||||
public uint WinnerVirtualRealmAddress;
|
||||
public bool Fled;
|
||||
public string BeatenName { get; set; }
|
||||
public string WinnerName { get; set; }
|
||||
public uint BeatenVirtualRealmAddress { get; set; }
|
||||
public uint WinnerVirtualRealmAddress { get; set; }
|
||||
public bool Fled { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace Game.Network.Packets
|
||||
}
|
||||
|
||||
public ulong GUID; // Set Identifier
|
||||
public int Type;
|
||||
public int Type { get; set; }
|
||||
public uint SetID; // Index
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public List<EquipmentSetInfo.EquipmentSetData> SetData = new List<EquipmentSetInfo.EquipmentSetData>();
|
||||
public List<EquipmentSetInfo.EquipmentSetData> SetData { get; set; } = new List<EquipmentSetInfo.EquipmentSetData>();
|
||||
}
|
||||
|
||||
public class SaveEquipmentSet : ClientPacket
|
||||
@@ -111,7 +111,7 @@ namespace Game.Network.Packets
|
||||
Set.SetIcon = _worldPacket.ReadString(setIconLength);
|
||||
}
|
||||
|
||||
public EquipmentSetInfo.EquipmentSetData Set;
|
||||
public EquipmentSetInfo.EquipmentSetData Set { get; set; }
|
||||
}
|
||||
|
||||
class DeleteEquipmentSet : ClientPacket
|
||||
@@ -123,7 +123,7 @@ namespace Game.Network.Packets
|
||||
ID = _worldPacket.ReadUInt64();
|
||||
}
|
||||
|
||||
public ulong ID;
|
||||
public ulong ID { get; set; }
|
||||
}
|
||||
|
||||
class UseEquipmentSet : ClientPacket
|
||||
@@ -144,15 +144,15 @@ namespace Game.Network.Packets
|
||||
GUID = _worldPacket.ReadUInt64();
|
||||
}
|
||||
|
||||
public InvUpdate Inv;
|
||||
public EquipmentSetItem[] Items = new EquipmentSetItem[EquipmentSlot.End];
|
||||
public InvUpdate Inv { get; set; }
|
||||
public EquipmentSetItem[] Items { get; set; } = new EquipmentSetItem[EquipmentSlot.End];
|
||||
public ulong GUID; //Set Identifier
|
||||
|
||||
public struct EquipmentSetItem
|
||||
{
|
||||
public ObjectGuid Item;
|
||||
public byte ContainerSlot;
|
||||
public byte Slot;
|
||||
public ObjectGuid Item { get; set; }
|
||||
public byte ContainerSlot { get; set; }
|
||||
public byte Slot { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -167,6 +167,6 @@ namespace Game.Network.Packets
|
||||
}
|
||||
|
||||
public ulong GUID; //Set Identifier
|
||||
public byte Reason;
|
||||
public byte Reason { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace Game.Network.Packets
|
||||
Guid = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
}
|
||||
|
||||
public class GameObjReportUse : ClientPacket
|
||||
@@ -41,7 +41,7 @@ namespace Game.Network.Packets
|
||||
Guid = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
}
|
||||
|
||||
class GameObjectDespawn : ServerPacket
|
||||
@@ -53,7 +53,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(ObjectGUID);
|
||||
}
|
||||
|
||||
public ObjectGuid ObjectGUID;
|
||||
public ObjectGuid ObjectGUID { get; set; }
|
||||
}
|
||||
|
||||
class PageTextPkt : ServerPacket
|
||||
@@ -65,7 +65,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(GameObjectGUID);
|
||||
}
|
||||
|
||||
public ObjectGuid GameObjectGUID;
|
||||
public ObjectGuid GameObjectGUID { get; set; }
|
||||
}
|
||||
|
||||
class GameObjectActivateAnimKit : ServerPacket
|
||||
@@ -80,9 +80,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public ObjectGuid ObjectGUID;
|
||||
public int AnimKitID;
|
||||
public bool Maintain;
|
||||
public ObjectGuid ObjectGUID { get; set; }
|
||||
public int AnimKitID { get; set; }
|
||||
public bool Maintain { get; set; }
|
||||
}
|
||||
|
||||
class DestructibleBuildingDamage : ServerPacket
|
||||
@@ -98,11 +98,11 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(SpellID);
|
||||
}
|
||||
|
||||
public ObjectGuid Target;
|
||||
public ObjectGuid Caster;
|
||||
public ObjectGuid Owner;
|
||||
public int Damage;
|
||||
public uint SpellID;
|
||||
public ObjectGuid Target { get; set; }
|
||||
public ObjectGuid Caster { get; set; }
|
||||
public ObjectGuid Owner { get; set; }
|
||||
public int Damage { get; set; }
|
||||
public uint SpellID { get; set; }
|
||||
}
|
||||
|
||||
class FishNotHooked : ServerPacket
|
||||
@@ -131,8 +131,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public ObjectGuid ObjectGUID;
|
||||
public uint CustomAnim;
|
||||
public bool PlayAsDespawn;
|
||||
public ObjectGuid ObjectGUID { get; set; }
|
||||
public uint CustomAnim { get; set; }
|
||||
public bool PlayAsDespawn { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,8 +32,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(GarrSiteLevelID);
|
||||
}
|
||||
|
||||
public uint GarrSiteLevelID;
|
||||
public uint Result;
|
||||
public uint GarrSiteLevelID { get; set; }
|
||||
public uint Result { get; set; }
|
||||
}
|
||||
|
||||
class GarrisonDeleteResult : ServerPacket
|
||||
@@ -46,8 +46,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(GarrSiteID);
|
||||
}
|
||||
|
||||
public GarrisonError Result;
|
||||
public uint GarrSiteID;
|
||||
public GarrisonError Result { get; set; }
|
||||
public uint GarrSiteID { get; set; }
|
||||
}
|
||||
|
||||
class GetGarrisonInfo : ClientPacket
|
||||
@@ -74,9 +74,9 @@ namespace Game.Network.Packets
|
||||
garrison.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public uint FactionIndex;
|
||||
public List<GarrisonInfo> Garrisons = new List<GarrisonInfo>();
|
||||
public List<FollowerSoftCapInfo> FollowerSoftCaps = new List<FollowerSoftCapInfo>();
|
||||
public uint FactionIndex { get; set; }
|
||||
public List<GarrisonInfo> Garrisons { get; set; } = new List<GarrisonInfo>();
|
||||
public List<FollowerSoftCapInfo> FollowerSoftCaps { get; set; } = new List<FollowerSoftCapInfo>();
|
||||
}
|
||||
|
||||
class GarrisonRemoteInfo : ServerPacket
|
||||
@@ -90,7 +90,7 @@ namespace Game.Network.Packets
|
||||
site.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public List<GarrisonRemoteSiteInfo> Sites = new List<GarrisonRemoteSiteInfo>();
|
||||
public List<GarrisonRemoteSiteInfo> Sites { get; set; } = new List<GarrisonRemoteSiteInfo>();
|
||||
}
|
||||
|
||||
class GarrisonPurchaseBuilding : ClientPacket
|
||||
@@ -104,9 +104,9 @@ namespace Game.Network.Packets
|
||||
BuildingID = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public ObjectGuid NpcGUID;
|
||||
public uint BuildingID;
|
||||
public uint PlotInstanceID;
|
||||
public ObjectGuid NpcGUID { get; set; }
|
||||
public uint BuildingID { get; set; }
|
||||
public uint PlotInstanceID { get; set; }
|
||||
}
|
||||
|
||||
class GarrisonPlaceBuildingResult : ServerPacket
|
||||
@@ -122,10 +122,10 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public GarrisonType GarrTypeID;
|
||||
public GarrisonError Result;
|
||||
public GarrisonBuildingInfo BuildingInfo = new GarrisonBuildingInfo();
|
||||
public bool PlayActivationCinematic;
|
||||
public GarrisonType GarrTypeID { get; set; }
|
||||
public GarrisonError Result { get; set; }
|
||||
public GarrisonBuildingInfo BuildingInfo { get; set; } = new GarrisonBuildingInfo();
|
||||
public bool PlayActivationCinematic { get; set; }
|
||||
}
|
||||
|
||||
class GarrisonCancelConstruction : ClientPacket
|
||||
@@ -138,8 +138,8 @@ namespace Game.Network.Packets
|
||||
PlotInstanceID = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public ObjectGuid NpcGUID;
|
||||
public uint PlotInstanceID;
|
||||
public ObjectGuid NpcGUID { get; set; }
|
||||
public uint PlotInstanceID { get; set; }
|
||||
}
|
||||
|
||||
class GarrisonBuildingRemoved : ServerPacket
|
||||
@@ -154,10 +154,10 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(GarrBuildingID);
|
||||
}
|
||||
|
||||
public GarrisonType GarrTypeID;
|
||||
public GarrisonError Result;
|
||||
public uint GarrPlotInstanceID;
|
||||
public uint GarrBuildingID;
|
||||
public GarrisonType GarrTypeID { get; set; }
|
||||
public GarrisonError Result { get; set; }
|
||||
public uint GarrPlotInstanceID { get; set; }
|
||||
public uint GarrBuildingID { get; set; }
|
||||
}
|
||||
|
||||
class GarrisonLearnBlueprintResult : ServerPacket
|
||||
@@ -171,9 +171,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(BuildingID);
|
||||
}
|
||||
|
||||
public GarrisonType GarrTypeID;
|
||||
public uint BuildingID;
|
||||
public GarrisonError Result;
|
||||
public GarrisonType GarrTypeID { get; set; }
|
||||
public uint BuildingID { get; set; }
|
||||
public GarrisonError Result { get; set; }
|
||||
}
|
||||
|
||||
class GarrisonUnlearnBlueprintResult : ServerPacket
|
||||
@@ -187,9 +187,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(BuildingID);
|
||||
}
|
||||
|
||||
public GarrisonType GarrTypeID;
|
||||
public uint BuildingID;
|
||||
public GarrisonError Result;
|
||||
public GarrisonType GarrTypeID { get; set; }
|
||||
public uint BuildingID { get; set; }
|
||||
public GarrisonError Result { get; set; }
|
||||
}
|
||||
|
||||
class GarrisonRequestBlueprintAndSpecializationData : ClientPacket
|
||||
@@ -217,9 +217,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(specialization);
|
||||
}
|
||||
|
||||
public GarrisonType GarrTypeID;
|
||||
public List<uint> SpecializationsKnown = null;
|
||||
public List<uint> BlueprintsKnown = null;
|
||||
public GarrisonType GarrTypeID { get; set; }
|
||||
public List<uint> SpecializationsKnown { get; set; } = null;
|
||||
public List<uint> BlueprintsKnown { get; set; } = null;
|
||||
}
|
||||
|
||||
class GarrisonGetBuildingLandmarks : ClientPacket
|
||||
@@ -240,7 +240,7 @@ namespace Game.Network.Packets
|
||||
landmark.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public List<GarrisonBuildingLandmark> Landmarks = new List<GarrisonBuildingLandmark>();
|
||||
public List<GarrisonBuildingLandmark> Landmarks { get; set; } = new List<GarrisonBuildingLandmark>();
|
||||
}
|
||||
|
||||
class GarrisonPlotPlaced : ServerPacket
|
||||
@@ -253,8 +253,8 @@ namespace Game.Network.Packets
|
||||
PlotInfo.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public GarrisonType GarrTypeID;
|
||||
public GarrisonPlotInfo PlotInfo;
|
||||
public GarrisonType GarrTypeID { get; set; }
|
||||
public GarrisonPlotInfo PlotInfo { get; set; }
|
||||
}
|
||||
|
||||
class GarrisonPlotRemoved : ServerPacket
|
||||
@@ -266,7 +266,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(GarrPlotInstanceID);
|
||||
}
|
||||
|
||||
public uint GarrPlotInstanceID;
|
||||
public uint GarrPlotInstanceID { get; set; }
|
||||
}
|
||||
|
||||
class GarrisonAddFollowerResult : ServerPacket
|
||||
@@ -280,9 +280,9 @@ namespace Game.Network.Packets
|
||||
Follower.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public GarrisonType GarrTypeID;
|
||||
public GarrisonFollower Follower;
|
||||
public GarrisonError Result;
|
||||
public GarrisonType GarrTypeID { get; set; }
|
||||
public GarrisonFollower Follower { get; set; }
|
||||
public GarrisonError Result { get; set; }
|
||||
}
|
||||
|
||||
class GarrisonRemoveFollowerResult : ServerPacket
|
||||
@@ -297,10 +297,10 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(Destroyed);
|
||||
}
|
||||
|
||||
public ulong FollowerDBID;
|
||||
public int GarrTypeID;
|
||||
public uint Result;
|
||||
public uint Destroyed;
|
||||
public ulong FollowerDBID { get; set; }
|
||||
public int GarrTypeID { get; set; }
|
||||
public uint Result { get; set; }
|
||||
public uint Destroyed { get; set; }
|
||||
}
|
||||
|
||||
class GarrisonBuildingActivated : ServerPacket
|
||||
@@ -312,7 +312,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(GarrPlotInstanceID);
|
||||
}
|
||||
|
||||
public uint GarrPlotInstanceID;
|
||||
public uint GarrPlotInstanceID { get; set; }
|
||||
}
|
||||
|
||||
//Structs
|
||||
@@ -325,9 +325,9 @@ namespace Game.Network.Packets
|
||||
data.WriteUInt32(PlotType);
|
||||
}
|
||||
|
||||
public uint GarrPlotInstanceID;
|
||||
public Position PlotPos;
|
||||
public uint PlotType;
|
||||
public uint GarrPlotInstanceID { get; set; }
|
||||
public Position PlotPos { get; set; }
|
||||
public uint PlotType { get; set; }
|
||||
}
|
||||
|
||||
public class GarrisonBuildingInfo
|
||||
@@ -343,12 +343,12 @@ namespace Game.Network.Packets
|
||||
data.FlushBits();
|
||||
}
|
||||
|
||||
public uint GarrPlotInstanceID;
|
||||
public uint GarrBuildingID;
|
||||
public long TimeBuilt;
|
||||
public uint CurrentGarSpecID;
|
||||
public long TimeSpecCooldown = 2288912640; // 06/07/1906 18:35:44 - another in the series of magic blizz dates
|
||||
public bool Active;
|
||||
public uint GarrPlotInstanceID { get; set; }
|
||||
public uint GarrBuildingID { get; set; }
|
||||
public long TimeBuilt { get; set; }
|
||||
public uint CurrentGarSpecID { get; set; }
|
||||
public long TimeSpecCooldown { get; set; } = 2288912640; // 06/07/1906 18:35:44 - another in the series of magic blizz dates
|
||||
public bool Active { get; set; }
|
||||
}
|
||||
|
||||
public class GarrisonFollower
|
||||
@@ -376,20 +376,20 @@ namespace Game.Network.Packets
|
||||
data.WriteString(CustomName);
|
||||
}
|
||||
|
||||
public ulong DbID;
|
||||
public uint GarrFollowerID;
|
||||
public uint Quality;
|
||||
public uint FollowerLevel;
|
||||
public uint ItemLevelWeapon;
|
||||
public uint ItemLevelArmor;
|
||||
public uint Xp;
|
||||
public uint Durability;
|
||||
public uint CurrentBuildingID;
|
||||
public uint CurrentMissionID;
|
||||
public List<GarrAbilityRecord> AbilityID = new List<GarrAbilityRecord>();
|
||||
public uint ZoneSupportSpellID;
|
||||
public uint FollowerStatus;
|
||||
public string CustomName = "";
|
||||
public ulong DbID { get; set; }
|
||||
public uint GarrFollowerID { get; set; }
|
||||
public uint Quality { get; set; }
|
||||
public uint FollowerLevel { get; set; }
|
||||
public uint ItemLevelWeapon { get; set; }
|
||||
public uint ItemLevelArmor { get; set; }
|
||||
public uint Xp { get; set; }
|
||||
public uint Durability { get; set; }
|
||||
public uint CurrentBuildingID { get; set; }
|
||||
public uint CurrentMissionID { get; set; }
|
||||
public List<GarrAbilityRecord> AbilityID { get; set; } = new List<GarrAbilityRecord>();
|
||||
public uint ZoneSupportSpellID { get; set; }
|
||||
public uint FollowerStatus { get; set; }
|
||||
public string CustomName { get; set; } = "";
|
||||
}
|
||||
|
||||
class GarrisonMission
|
||||
@@ -408,16 +408,16 @@ namespace Game.Network.Packets
|
||||
data.WriteUInt32(Unknown2);
|
||||
}
|
||||
|
||||
public ulong DbID;
|
||||
public uint MissionRecID;
|
||||
public long OfferTime;
|
||||
public uint OfferDuration;
|
||||
public long StartTime = 2288912640;
|
||||
public uint TravelDuration;
|
||||
public uint MissionDuration;
|
||||
public uint MissionState;
|
||||
public uint Unknown1 = 0;
|
||||
public uint Unknown2 = 0;
|
||||
public ulong DbID { get; set; }
|
||||
public uint MissionRecID { get; set; }
|
||||
public long OfferTime { get; set; }
|
||||
public uint OfferDuration { get; set; }
|
||||
public long StartTime { get; set; } = 2288912640;
|
||||
public uint TravelDuration { get; set; }
|
||||
public uint MissionDuration { get; set; }
|
||||
public uint MissionState { get; set; }
|
||||
public uint Unknown1 { get; set; } = 0;
|
||||
public uint Unknown2 { get; set; } = 0;
|
||||
}
|
||||
|
||||
struct GarrisonMissionReward
|
||||
@@ -433,13 +433,13 @@ namespace Game.Network.Packets
|
||||
data.WriteInt32(Unknown);
|
||||
}
|
||||
|
||||
public int ItemID;
|
||||
public uint Quantity;
|
||||
public int CurrencyID;
|
||||
public uint CurrencyQuantity;
|
||||
public uint FollowerXP;
|
||||
public uint BonusAbilityID;
|
||||
public int Unknown;
|
||||
public int ItemID { get; set; }
|
||||
public uint Quantity { get; set; }
|
||||
public int CurrencyID { get; set; }
|
||||
public uint CurrencyQuantity { get; set; }
|
||||
public uint FollowerXP { get; set; }
|
||||
public uint BonusAbilityID { get; set; }
|
||||
public int Unknown { get; set; }
|
||||
}
|
||||
|
||||
struct GarrisonMissionAreaBonus
|
||||
@@ -450,8 +450,8 @@ namespace Game.Network.Packets
|
||||
data.WriteUInt32(StartTime);
|
||||
}
|
||||
|
||||
public uint GarrMssnBonusAbilityID;
|
||||
public long StartTime;
|
||||
public uint GarrMssnBonusAbilityID { get; set; }
|
||||
public long StartTime { get; set; }
|
||||
}
|
||||
|
||||
struct GarrisonTalent
|
||||
@@ -463,9 +463,9 @@ namespace Game.Network.Packets
|
||||
data.WriteInt32(Flags);
|
||||
}
|
||||
|
||||
public int GarrTalentID;
|
||||
public long ResearchStartTime;
|
||||
public int Flags;
|
||||
public int GarrTalentID { get; set; }
|
||||
public long ResearchStartTime { get; set; }
|
||||
public int Flags { get; set; }
|
||||
}
|
||||
|
||||
class GarrisonInfo
|
||||
@@ -529,21 +529,21 @@ namespace Game.Network.Packets
|
||||
follower.Write(data);
|
||||
}
|
||||
|
||||
public GarrisonType GarrTypeID;
|
||||
public uint GarrSiteID;
|
||||
public uint GarrSiteLevelID;
|
||||
public uint NumFollowerActivationsRemaining;
|
||||
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 = new List<GarrisonPlotInfo>();
|
||||
public List<GarrisonBuildingInfo> Buildings = new List<GarrisonBuildingInfo>();
|
||||
public List<GarrisonFollower> Followers = new List<GarrisonFollower>();
|
||||
public List<GarrisonMission> Missions = new List<GarrisonMission>();
|
||||
public List<List<GarrisonMissionReward>> MissionRewards = new List<List<GarrisonMissionReward>>();
|
||||
public List<List<GarrisonMissionReward>> MissionOvermaxRewards = new List<List<GarrisonMissionReward>>();
|
||||
public List<GarrisonMissionAreaBonus> MissionAreaBonuses = new List<GarrisonMissionAreaBonus>();
|
||||
public List<GarrisonTalent> Talents = new List<GarrisonTalent>();
|
||||
public List<bool> CanStartMission = new List<bool>();
|
||||
public List<int> ArchivedMissions = new List<int>();
|
||||
public GarrisonType GarrTypeID { get; set; }
|
||||
public uint GarrSiteID { get; set; }
|
||||
public uint GarrSiteLevelID { get; set; }
|
||||
public uint NumFollowerActivationsRemaining { get; set; }
|
||||
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 List<GarrisonPlotInfo> Plots { get; set; } = new List<GarrisonPlotInfo>();
|
||||
public List<GarrisonBuildingInfo> Buildings { get; set; } = new List<GarrisonBuildingInfo>();
|
||||
public List<GarrisonFollower> Followers { get; set; } = new List<GarrisonFollower>();
|
||||
public List<GarrisonMission> Missions { get; set; } = new List<GarrisonMission>();
|
||||
public List<List<GarrisonMissionReward>> MissionRewards { get; set; } = new List<List<GarrisonMissionReward>>();
|
||||
public List<List<GarrisonMissionReward>> MissionOvermaxRewards { get; set; } = new List<List<GarrisonMissionReward>>();
|
||||
public List<GarrisonMissionAreaBonus> MissionAreaBonuses { get; set; } = new List<GarrisonMissionAreaBonus>();
|
||||
public List<GarrisonTalent> Talents { get; set; } = new List<GarrisonTalent>();
|
||||
public List<bool> CanStartMission { get; set; } = new List<bool>();
|
||||
public List<int> ArchivedMissions { get; set; } = new List<int>();
|
||||
}
|
||||
|
||||
struct FollowerSoftCapInfo
|
||||
@@ -554,8 +554,8 @@ namespace Game.Network.Packets
|
||||
data.WriteUInt32(Count);
|
||||
}
|
||||
|
||||
public int GarrFollowerTypeID;
|
||||
public uint Count;
|
||||
public int GarrFollowerTypeID { get; set; }
|
||||
public uint Count { get; set; }
|
||||
}
|
||||
|
||||
struct GarrisonRemoteBuildingInfo
|
||||
@@ -572,8 +572,8 @@ namespace Game.Network.Packets
|
||||
data.WriteUInt32(GarrBuildingID);
|
||||
}
|
||||
|
||||
public uint GarrPlotInstanceID;
|
||||
public uint GarrBuildingID;
|
||||
public uint GarrPlotInstanceID { get; set; }
|
||||
public uint GarrBuildingID { get; set; }
|
||||
}
|
||||
|
||||
class GarrisonRemoteSiteInfo
|
||||
@@ -586,8 +586,8 @@ namespace Game.Network.Packets
|
||||
building.Write(data);
|
||||
}
|
||||
|
||||
public uint GarrSiteLevelID;
|
||||
public List<GarrisonRemoteBuildingInfo> Buildings = new List<GarrisonRemoteBuildingInfo>();
|
||||
public uint GarrSiteLevelID { get; set; }
|
||||
public List<GarrisonRemoteBuildingInfo> Buildings { get; set; } = new List<GarrisonRemoteBuildingInfo>();
|
||||
}
|
||||
|
||||
struct GarrisonBuildingLandmark
|
||||
@@ -604,7 +604,7 @@ namespace Game.Network.Packets
|
||||
data.WriteXYZ(Pos);
|
||||
}
|
||||
|
||||
public uint GarrBuildingPlotInstID;
|
||||
public Position Pos;
|
||||
public uint GarrBuildingPlotInstID { get; set; }
|
||||
public Position Pos { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,11 +35,11 @@ namespace Game.Network.Packets
|
||||
Comment = _worldPacket.ReadString(_worldPacket.ReadBits<uint>(10));
|
||||
}
|
||||
|
||||
public ObjectGuid GuildGUID;
|
||||
public uint Availability;
|
||||
public uint ClassRoles;
|
||||
public uint PlayStyle;
|
||||
public string Comment;
|
||||
public ObjectGuid GuildGUID { get; set; }
|
||||
public uint Availability { get; set; }
|
||||
public uint ClassRoles { get; set; }
|
||||
public uint PlayStyle { get; set; }
|
||||
public string Comment { get; set; }
|
||||
}
|
||||
|
||||
class LFGuildApplicationsListChanged : ServerPacket
|
||||
@@ -68,10 +68,10 @@ namespace Game.Network.Packets
|
||||
CharacterLevel = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public uint CharacterLevel;
|
||||
public uint Availability;
|
||||
public uint ClassRoles;
|
||||
public uint PlayStyle;
|
||||
public uint CharacterLevel { get; set; }
|
||||
public uint Availability { get; set; }
|
||||
public uint ClassRoles { get; set; }
|
||||
public uint PlayStyle { get; set; }
|
||||
}
|
||||
|
||||
class LFGuildBrowseResult : ServerPacket
|
||||
@@ -85,7 +85,7 @@ namespace Game.Network.Packets
|
||||
guildData.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public List<LFGuildBrowseData> Post = new List<LFGuildBrowseData>();
|
||||
public List<LFGuildBrowseData> Post { get; set; } = new List<LFGuildBrowseData>();
|
||||
}
|
||||
|
||||
class LFGuildDeclineRecruit : ClientPacket
|
||||
@@ -97,7 +97,7 @@ namespace Game.Network.Packets
|
||||
RecruitGUID = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid RecruitGUID;
|
||||
public ObjectGuid RecruitGUID { get; set; }
|
||||
}
|
||||
|
||||
class LFGuildGetApplications : ClientPacket
|
||||
@@ -119,8 +119,8 @@ namespace Game.Network.Packets
|
||||
application.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public List<LFGuildApplicationData> Application = new List<LFGuildApplicationData>();
|
||||
public int NumRemaining;
|
||||
public List<LFGuildApplicationData> Application { get; set; } = new List<LFGuildApplicationData>();
|
||||
public int NumRemaining { get; set; }
|
||||
}
|
||||
|
||||
class LFGuildGetGuildPost : ClientPacket
|
||||
@@ -154,7 +154,7 @@ namespace Game.Network.Packets
|
||||
LastUpdate = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public uint LastUpdate;
|
||||
public uint LastUpdate { get; set; }
|
||||
}
|
||||
|
||||
class LFGuildRecruits : ServerPacket
|
||||
@@ -169,8 +169,8 @@ namespace Game.Network.Packets
|
||||
recruit.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public List<LFGuildRecruitData> Recruits = new List<LFGuildRecruitData>();
|
||||
public long UpdateTime;
|
||||
public List<LFGuildRecruitData> Recruits { get; set; } = new List<LFGuildRecruitData>();
|
||||
public long UpdateTime { get; set; }
|
||||
}
|
||||
|
||||
class LFGuildRemoveRecruit : ClientPacket
|
||||
@@ -182,7 +182,7 @@ namespace Game.Network.Packets
|
||||
GuildGUID = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid GuildGUID;
|
||||
public ObjectGuid GuildGUID { get; set; }
|
||||
}
|
||||
|
||||
class LFGuildSetGuildPost : ClientPacket
|
||||
@@ -199,12 +199,12 @@ namespace Game.Network.Packets
|
||||
Comment = _worldPacket.ReadString(_worldPacket.ReadBits<uint>(10));
|
||||
}
|
||||
|
||||
public uint Availability;
|
||||
public uint PlayStyle;
|
||||
public uint ClassRoles;
|
||||
public uint LevelRange;
|
||||
public bool Active;
|
||||
public string Comment;
|
||||
public uint Availability { get; set; }
|
||||
public uint PlayStyle { get; set; }
|
||||
public uint ClassRoles { get; set; }
|
||||
public uint LevelRange { get; set; }
|
||||
public bool Active { get; set; }
|
||||
public string Comment { get; set; }
|
||||
}
|
||||
|
||||
//Structs
|
||||
@@ -234,23 +234,23 @@ namespace Game.Network.Packets
|
||||
data.WriteString(Comment);
|
||||
}
|
||||
|
||||
public string GuildName = "";
|
||||
public ObjectGuid GuildGUID;
|
||||
public uint GuildVirtualRealm;
|
||||
public int GuildMembers;
|
||||
public uint GuildAchievementPoints;
|
||||
public int PlayStyle;
|
||||
public int Availability;
|
||||
public int ClassRoles;
|
||||
public int LevelRange;
|
||||
public uint EmblemStyle;
|
||||
public uint EmblemColor;
|
||||
public uint BorderStyle;
|
||||
public uint BorderColor;
|
||||
public uint Background;
|
||||
public string Comment = "";
|
||||
public sbyte Cached;
|
||||
public sbyte MembershipRequested;
|
||||
public string GuildName { get; set; } = "";
|
||||
public ObjectGuid GuildGUID { get; set; }
|
||||
public uint GuildVirtualRealm { get; set; }
|
||||
public int GuildMembers { get; set; }
|
||||
public uint GuildAchievementPoints { get; set; }
|
||||
public int PlayStyle { get; set; }
|
||||
public int Availability { get; set; }
|
||||
public int ClassRoles { get; set; }
|
||||
public int LevelRange { get; set; }
|
||||
public uint EmblemStyle { get; set; }
|
||||
public uint EmblemColor { get; set; }
|
||||
public uint BorderStyle { get; set; }
|
||||
public uint BorderColor { get; set; }
|
||||
public uint Background { get; set; }
|
||||
public string Comment { get; set; } = "";
|
||||
public sbyte Cached { get; set; }
|
||||
public sbyte MembershipRequested { get; set; }
|
||||
}
|
||||
|
||||
class LFGuildApplicationData
|
||||
@@ -271,15 +271,15 @@ namespace Game.Network.Packets
|
||||
data.WriteString(Comment);
|
||||
}
|
||||
|
||||
public ObjectGuid GuildGUID;
|
||||
public uint GuildVirtualRealm;
|
||||
public string GuildName = "";
|
||||
public int ClassRoles;
|
||||
public int PlayStyle;
|
||||
public int Availability;
|
||||
public uint SecondsSinceCreated;
|
||||
public uint SecondsUntilExpiration;
|
||||
public string Comment = "";
|
||||
public ObjectGuid GuildGUID { get; set; }
|
||||
public uint GuildVirtualRealm { get; set; }
|
||||
public string GuildName { get; set; } = "";
|
||||
public int ClassRoles { get; set; }
|
||||
public int PlayStyle { get; set; }
|
||||
public int Availability { get; set; }
|
||||
public uint SecondsSinceCreated { get; set; }
|
||||
public uint SecondsUntilExpiration { get; set; }
|
||||
public string Comment { get; set; } = "";
|
||||
}
|
||||
|
||||
class GuildPostData
|
||||
@@ -296,13 +296,13 @@ namespace Game.Network.Packets
|
||||
data.WriteString(Comment);
|
||||
}
|
||||
|
||||
public bool Active;
|
||||
public int PlayStyle;
|
||||
public int Availability;
|
||||
public int ClassRoles;
|
||||
public int LevelRange;
|
||||
public long SecondsRemaining;
|
||||
public string Comment = "";
|
||||
public bool Active { get; set; }
|
||||
public int PlayStyle { get; set; }
|
||||
public int Availability { get; set; }
|
||||
public int ClassRoles { get; set; }
|
||||
public int LevelRange { get; set; }
|
||||
public long SecondsRemaining { get; set; }
|
||||
public string Comment { get; set; } = "";
|
||||
}
|
||||
|
||||
class LFGuildRecruitData
|
||||
@@ -326,17 +326,17 @@ namespace Game.Network.Packets
|
||||
data.WriteString(Comment);
|
||||
}
|
||||
|
||||
public ObjectGuid RecruitGUID;
|
||||
public string Name = "";
|
||||
public uint RecruitVirtualRealm;
|
||||
public string Comment = "";
|
||||
public int CharacterClass;
|
||||
public int CharacterGender;
|
||||
public int CharacterLevel;
|
||||
public int ClassRoles;
|
||||
public int PlayStyle;
|
||||
public int Availability;
|
||||
public uint SecondsSinceCreated;
|
||||
public uint SecondsUntilExpiration;
|
||||
public ObjectGuid RecruitGUID { get; set; }
|
||||
public string Name { get; set; } = "";
|
||||
public uint RecruitVirtualRealm { get; set; }
|
||||
public string Comment { get; set; } = "";
|
||||
public int CharacterClass { get; set; }
|
||||
public int CharacterGender { get; set; }
|
||||
public int CharacterLevel { get; set; }
|
||||
public int ClassRoles { get; set; }
|
||||
public int PlayStyle { get; set; }
|
||||
public int Availability { get; set; }
|
||||
public uint SecondsSinceCreated { get; set; }
|
||||
public uint SecondsUntilExpiration { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,8 +32,8 @@ namespace Game.Network.Packets
|
||||
PlayerGuid = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid GuildGuid;
|
||||
public ObjectGuid PlayerGuid;
|
||||
public ObjectGuid GuildGuid { get; set; }
|
||||
public ObjectGuid PlayerGuid { get; set; }
|
||||
}
|
||||
|
||||
public class QueryGuildInfoResponse : ServerPacket
|
||||
@@ -73,23 +73,23 @@ namespace Game.Network.Packets
|
||||
|
||||
}
|
||||
|
||||
public ObjectGuid GuildGUID;
|
||||
public GuildInfo Info = new GuildInfo();
|
||||
public bool HasGuildInfo;
|
||||
public ObjectGuid GuildGUID { get; set; }
|
||||
public GuildInfo Info { get; set; } = new GuildInfo();
|
||||
public bool HasGuildInfo { get; set; }
|
||||
|
||||
public class GuildInfo
|
||||
{
|
||||
public ObjectGuid GuildGuid;
|
||||
public ObjectGuid GuildGuid { get; set; }
|
||||
|
||||
public uint VirtualRealmAddress; // a special identifier made from the Index, BattleGroup and Region.
|
||||
|
||||
public uint EmblemStyle;
|
||||
public uint EmblemColor;
|
||||
public uint BorderStyle;
|
||||
public uint BorderColor;
|
||||
public uint BackgroundColor;
|
||||
public List<RankInfo> Ranks = new List<RankInfo>();
|
||||
public string GuildName = "";
|
||||
public uint EmblemStyle { get; set; }
|
||||
public uint EmblemColor { get; set; }
|
||||
public uint BorderStyle { get; set; }
|
||||
public uint BorderColor { get; set; }
|
||||
public uint BackgroundColor { get; set; }
|
||||
public List<RankInfo> Ranks { get; set; } = new List<RankInfo>();
|
||||
public string GuildName { get; set; } = "";
|
||||
|
||||
public struct RankInfo
|
||||
{
|
||||
@@ -100,9 +100,9 @@ namespace Game.Network.Packets
|
||||
RankName = name;
|
||||
}
|
||||
|
||||
public uint RankID;
|
||||
public uint RankOrder;
|
||||
public string RankName;
|
||||
public uint RankID { get; set; }
|
||||
public uint RankOrder { get; set; }
|
||||
public string RankName { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -137,12 +137,12 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(InfoText);
|
||||
}
|
||||
|
||||
public List<GuildRosterMemberData> MemberData;
|
||||
public string WelcomeText;
|
||||
public string InfoText;
|
||||
public uint CreateDate;
|
||||
public int NumAccounts;
|
||||
public int GuildFlags;
|
||||
public List<GuildRosterMemberData> MemberData { get; set; }
|
||||
public string WelcomeText { get; set; }
|
||||
public string InfoText { get; set; }
|
||||
public uint CreateDate { get; set; }
|
||||
public int NumAccounts { get; set; }
|
||||
public int GuildFlags { get; set; }
|
||||
}
|
||||
|
||||
public class GuildRosterUpdate : ServerPacket
|
||||
@@ -159,7 +159,7 @@ namespace Game.Network.Packets
|
||||
MemberData.ForEach(p => p.Write(_worldPacket));
|
||||
}
|
||||
|
||||
public List<GuildRosterMemberData> MemberData;
|
||||
public List<GuildRosterMemberData> MemberData { get; set; }
|
||||
}
|
||||
|
||||
public class GuildUpdateMotdText : ClientPacket
|
||||
@@ -172,7 +172,7 @@ namespace Game.Network.Packets
|
||||
MotdText = _worldPacket.ReadString(textLen);
|
||||
}
|
||||
|
||||
public string MotdText;
|
||||
public string MotdText { get; set; }
|
||||
}
|
||||
|
||||
public class GuildCommandResult : ServerPacket
|
||||
@@ -188,9 +188,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(Name);
|
||||
}
|
||||
|
||||
public string Name;
|
||||
public GuildCommandError Result;
|
||||
public GuildCommandType Command;
|
||||
public string Name { get; set; }
|
||||
public GuildCommandError Result { get; set; }
|
||||
public GuildCommandType Command { get; set; }
|
||||
}
|
||||
|
||||
public class AcceptGuildInvite : ClientPacket
|
||||
@@ -216,7 +216,7 @@ namespace Game.Network.Packets
|
||||
Allow = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public bool Allow;
|
||||
public bool Allow { get; set; }
|
||||
}
|
||||
|
||||
public class GuildInviteByName : ClientPacket
|
||||
@@ -259,20 +259,20 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(OldGuildName);
|
||||
}
|
||||
|
||||
public ObjectGuid GuildGUID;
|
||||
public ObjectGuid OldGuildGUID;
|
||||
public int AchievementPoints;
|
||||
public uint EmblemColor;
|
||||
public uint EmblemStyle;
|
||||
public uint BorderStyle;
|
||||
public uint BorderColor;
|
||||
public uint Background;
|
||||
public uint GuildVirtualRealmAddress;
|
||||
public uint OldGuildVirtualRealmAddress;
|
||||
public uint InviterVirtualRealmAddress;
|
||||
public string InviterName;
|
||||
public string GuildName;
|
||||
public string OldGuildName;
|
||||
public ObjectGuid GuildGUID { get; set; }
|
||||
public ObjectGuid OldGuildGUID { get; set; }
|
||||
public int AchievementPoints { get; set; }
|
||||
public uint EmblemColor { get; set; }
|
||||
public uint EmblemStyle { get; set; }
|
||||
public uint BorderStyle { get; set; }
|
||||
public uint BorderColor { get; set; }
|
||||
public uint Background { get; set; }
|
||||
public uint GuildVirtualRealmAddress { get; set; }
|
||||
public uint OldGuildVirtualRealmAddress { get; set; }
|
||||
public uint InviterVirtualRealmAddress { get; set; }
|
||||
public string InviterName { get; set; }
|
||||
public string GuildName { get; set; }
|
||||
public string OldGuildName { get; set; }
|
||||
}
|
||||
|
||||
public class GuildEventPresenceChange : ServerPacket
|
||||
@@ -291,11 +291,11 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(Name);
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public uint VirtualRealmAddress;
|
||||
public string Name;
|
||||
public bool Mobile;
|
||||
public bool LoggedOn;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
public uint VirtualRealmAddress { get; set; }
|
||||
public string Name { get; set; }
|
||||
public bool Mobile { get; set; }
|
||||
public bool LoggedOn { get; set; }
|
||||
}
|
||||
|
||||
public class GuildEventMotd : ServerPacket
|
||||
@@ -308,7 +308,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(MotdText);
|
||||
}
|
||||
|
||||
public string MotdText;
|
||||
public string MotdText { get; set; }
|
||||
}
|
||||
|
||||
public class GuildEventPlayerJoined : ServerPacket
|
||||
@@ -324,9 +324,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(Name);
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public string Name;
|
||||
public uint VirtualRealmAddress;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
public string Name { get; set; }
|
||||
public uint VirtualRealmAddress { get; set; }
|
||||
}
|
||||
|
||||
public class GuildEventRankChanged : ServerPacket
|
||||
@@ -338,7 +338,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(RankID);
|
||||
}
|
||||
|
||||
public uint RankID;
|
||||
public uint RankID { get; set; }
|
||||
}
|
||||
|
||||
public class GuildEventRanksUpdated : ServerPacket
|
||||
@@ -357,7 +357,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt64(Money);
|
||||
}
|
||||
|
||||
public ulong Money;
|
||||
public ulong Money { get; set; }
|
||||
}
|
||||
|
||||
public class GuildEventDisbanded : ServerPacket
|
||||
@@ -395,7 +395,7 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public List<GuildEventEntry> Entry;
|
||||
public List<GuildEventEntry> Entry { get; set; }
|
||||
}
|
||||
|
||||
public class GuildEventPlayerLeft : ServerPacket
|
||||
@@ -421,13 +421,13 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(LeaverName);
|
||||
}
|
||||
|
||||
public ObjectGuid LeaverGUID;
|
||||
public string LeaverName;
|
||||
public uint LeaverVirtualRealmAddress;
|
||||
public ObjectGuid RemoverGUID;
|
||||
public string RemoverName;
|
||||
public uint RemoverVirtualRealmAddress;
|
||||
public bool Removed;
|
||||
public ObjectGuid LeaverGUID { get; set; }
|
||||
public string LeaverName { get; set; }
|
||||
public uint LeaverVirtualRealmAddress { get; set; }
|
||||
public ObjectGuid RemoverGUID { get; set; }
|
||||
public string RemoverName { get; set; }
|
||||
public uint RemoverVirtualRealmAddress { get; set; }
|
||||
public bool Removed { get; set; }
|
||||
}
|
||||
|
||||
public class GuildEventNewLeader : ServerPacket
|
||||
@@ -449,13 +449,13 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(OldLeaderName);
|
||||
}
|
||||
|
||||
public ObjectGuid NewLeaderGUID;
|
||||
public string NewLeaderName;
|
||||
public uint NewLeaderVirtualRealmAddress;
|
||||
public ObjectGuid OldLeaderGUID;
|
||||
public string OldLeaderName = "";
|
||||
public uint OldLeaderVirtualRealmAddress;
|
||||
public bool SelfPromoted;
|
||||
public ObjectGuid NewLeaderGUID { get; set; }
|
||||
public string NewLeaderName { get; set; }
|
||||
public uint NewLeaderVirtualRealmAddress { get; set; }
|
||||
public ObjectGuid OldLeaderGUID { get; set; }
|
||||
public string OldLeaderName { get; set; } = "";
|
||||
public uint OldLeaderVirtualRealmAddress { get; set; }
|
||||
public bool SelfPromoted { get; set; }
|
||||
}
|
||||
|
||||
public class GuildEventTabAdded : ServerPacket
|
||||
@@ -481,9 +481,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(Icon);
|
||||
}
|
||||
|
||||
public string Icon;
|
||||
public string Name;
|
||||
public int Tab;
|
||||
public string Icon { get; set; }
|
||||
public string Name { get; set; }
|
||||
public int Tab { get; set; }
|
||||
}
|
||||
|
||||
public class GuildEventTabTextChanged : ServerPacket
|
||||
@@ -495,7 +495,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteInt32(Tab);
|
||||
}
|
||||
|
||||
public int Tab;
|
||||
public int Tab { get; set; }
|
||||
}
|
||||
|
||||
public class GuildEventBankContentsChanged : ServerPacket
|
||||
@@ -534,16 +534,16 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public int NumTabs;
|
||||
public int WithdrawGoldLimit;
|
||||
public int Flags;
|
||||
public uint RankID;
|
||||
public List<GuildRankTabPermissions> Tab;
|
||||
public int NumTabs { get; set; }
|
||||
public int WithdrawGoldLimit { get; set; }
|
||||
public int Flags { get; set; }
|
||||
public uint RankID { get; set; }
|
||||
public List<GuildRankTabPermissions> Tab { get; set; }
|
||||
|
||||
public struct GuildRankTabPermissions
|
||||
{
|
||||
public int Flags;
|
||||
public int WithdrawItemLimit;
|
||||
public int Flags { get; set; }
|
||||
public int WithdrawItemLimit { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -571,14 +571,14 @@ namespace Game.Network.Packets
|
||||
RankName = _worldPacket.ReadString(rankNameLen);
|
||||
}
|
||||
|
||||
public int RankID;
|
||||
public int RankOrder;
|
||||
public int WithdrawGoldLimit;
|
||||
public uint Flags;
|
||||
public uint OldFlags;
|
||||
public int[] TabFlags = new int[GuildConst.MaxBankTabs];
|
||||
public int[] TabWithdrawItemLimit = new int[GuildConst.MaxBankTabs];
|
||||
public string RankName;
|
||||
public int RankID { get; set; }
|
||||
public int RankOrder { get; set; }
|
||||
public int WithdrawGoldLimit { get; set; }
|
||||
public uint Flags { get; set; }
|
||||
public uint OldFlags { get; set; }
|
||||
public int[] TabFlags { get; set; } = new int[GuildConst.MaxBankTabs];
|
||||
public int[] TabWithdrawItemLimit { get; set; } = new int[GuildConst.MaxBankTabs];
|
||||
public string RankName { get; set; }
|
||||
}
|
||||
|
||||
public class GuildAddRank : ClientPacket
|
||||
@@ -594,8 +594,8 @@ namespace Game.Network.Packets
|
||||
Name = _worldPacket.ReadString(nameLen);
|
||||
}
|
||||
|
||||
public string Name;
|
||||
public int RankOrder;
|
||||
public string Name { get; set; }
|
||||
public int RankOrder { get; set; }
|
||||
}
|
||||
|
||||
public class GuildAssignMemberRank : ClientPacket
|
||||
@@ -608,8 +608,8 @@ namespace Game.Network.Packets
|
||||
RankOrder = _worldPacket.ReadInt32();
|
||||
}
|
||||
|
||||
public ObjectGuid Member;
|
||||
public int RankOrder;
|
||||
public ObjectGuid Member { get; set; }
|
||||
public int RankOrder { get; set; }
|
||||
}
|
||||
|
||||
public class GuildDeleteRank : ClientPacket
|
||||
@@ -621,7 +621,7 @@ namespace Game.Network.Packets
|
||||
RankOrder = _worldPacket.ReadInt32();
|
||||
}
|
||||
|
||||
public int RankOrder;
|
||||
public int RankOrder { get; set; }
|
||||
}
|
||||
|
||||
public class GuildGetRanks : ClientPacket
|
||||
@@ -633,7 +633,7 @@ namespace Game.Network.Packets
|
||||
GuildGUID = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid GuildGUID;
|
||||
public ObjectGuid GuildGUID { get; set; }
|
||||
}
|
||||
|
||||
public class GuildRanks : ServerPacket
|
||||
@@ -650,7 +650,7 @@ namespace Game.Network.Packets
|
||||
Ranks.ForEach(p => p.Write(_worldPacket));
|
||||
}
|
||||
|
||||
public List<GuildRankData> Ranks;
|
||||
public List<GuildRankData> Ranks { get; set; }
|
||||
}
|
||||
|
||||
public class GuildSendRankChange : ServerPacket
|
||||
@@ -667,10 +667,10 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public ObjectGuid Other;
|
||||
public ObjectGuid Officer;
|
||||
public bool Promote;
|
||||
public uint RankID;
|
||||
public ObjectGuid Other { get; set; }
|
||||
public ObjectGuid Officer { get; set; }
|
||||
public bool Promote { get; set; }
|
||||
public uint RankID { get; set; }
|
||||
}
|
||||
|
||||
public class GuildShiftRank : ClientPacket
|
||||
@@ -683,8 +683,8 @@ namespace Game.Network.Packets
|
||||
ShiftUp = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public bool ShiftUp;
|
||||
public int RankOrder;
|
||||
public bool ShiftUp { get; set; }
|
||||
public int RankOrder { get; set; }
|
||||
}
|
||||
|
||||
public class GuildUpdateInfoText : ClientPacket
|
||||
@@ -697,7 +697,7 @@ namespace Game.Network.Packets
|
||||
InfoText = _worldPacket.ReadString(textLen);
|
||||
}
|
||||
|
||||
public string InfoText;
|
||||
public string InfoText { get; set; }
|
||||
}
|
||||
|
||||
public class GuildSetMemberNote : ClientPacket
|
||||
@@ -714,9 +714,9 @@ namespace Game.Network.Packets
|
||||
Note = _worldPacket.ReadString(noteLen);
|
||||
}
|
||||
|
||||
public ObjectGuid NoteeGUID;
|
||||
public bool IsPublic; ///< 0 == Officer, 1 == Public
|
||||
public string Note;
|
||||
public ObjectGuid NoteeGUID { get; set; }
|
||||
public bool IsPublic { get; set; } ///< 0 == Officer, 1 == Public
|
||||
public string Note { get; set; }
|
||||
}
|
||||
|
||||
public class GuildMemberUpdateNote : ServerPacket
|
||||
@@ -734,9 +734,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(Note);
|
||||
}
|
||||
|
||||
public ObjectGuid Member;
|
||||
public ObjectGuid Member { get; set; }
|
||||
public bool IsPublic; ///< 0 == Officer, 1 == Public
|
||||
public string Note;
|
||||
public string Note { get; set; }
|
||||
}
|
||||
|
||||
public class GuildMemberDailyReset : ServerPacket
|
||||
@@ -762,7 +762,7 @@ namespace Game.Network.Packets
|
||||
Demotee = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid Demotee;
|
||||
public ObjectGuid Demotee { get; set; }
|
||||
}
|
||||
|
||||
public class GuildPromoteMember : ClientPacket
|
||||
@@ -774,7 +774,7 @@ namespace Game.Network.Packets
|
||||
Promotee = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid Promotee;
|
||||
public ObjectGuid Promotee { get; set; }
|
||||
}
|
||||
|
||||
public class GuildOfficerRemoveMember : ClientPacket
|
||||
@@ -786,7 +786,7 @@ namespace Game.Network.Packets
|
||||
Removee = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid Removee;
|
||||
public ObjectGuid Removee { get; set; }
|
||||
}
|
||||
|
||||
public class GuildLeave : ClientPacket
|
||||
@@ -806,7 +806,7 @@ namespace Game.Network.Packets
|
||||
NewName = _worldPacket.ReadString(nameLen);
|
||||
}
|
||||
|
||||
public string NewName;
|
||||
public string NewName { get; set; }
|
||||
}
|
||||
|
||||
public class GuildFlaggedForRename : ServerPacket
|
||||
@@ -818,7 +818,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteBit(FlagSet);
|
||||
}
|
||||
|
||||
public bool FlagSet;
|
||||
public bool FlagSet { get; set; }
|
||||
}
|
||||
|
||||
public class RequestGuildPartyState : ClientPacket
|
||||
@@ -830,7 +830,7 @@ namespace Game.Network.Packets
|
||||
GuildGUID = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid GuildGUID;
|
||||
public ObjectGuid GuildGUID { get; set; }
|
||||
}
|
||||
|
||||
public class GuildPartyState : ServerPacket
|
||||
@@ -847,10 +847,10 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteFloat(GuildXPEarnedMult);
|
||||
}
|
||||
|
||||
public float GuildXPEarnedMult = 0.0f;
|
||||
public int NumMembers;
|
||||
public int NumRequired;
|
||||
public bool InGuildParty;
|
||||
public float GuildXPEarnedMult { get; set; } = 0.0f;
|
||||
public int NumMembers { get; set; }
|
||||
public int NumRequired { get; set; }
|
||||
public bool InGuildParty { get; set; }
|
||||
}
|
||||
|
||||
public class RequestGuildRewardsList : ClientPacket
|
||||
@@ -862,7 +862,7 @@ namespace Game.Network.Packets
|
||||
CurrentVersion = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public uint CurrentVersion;
|
||||
public uint CurrentVersion { get; set; }
|
||||
}
|
||||
|
||||
public class GuildRewardList : ServerPacket
|
||||
@@ -881,8 +881,8 @@ namespace Game.Network.Packets
|
||||
item.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public List<GuildRewardItem> RewardItems;
|
||||
public uint Version;
|
||||
public List<GuildRewardItem> RewardItems { get; set; }
|
||||
public uint Version { get; set; }
|
||||
}
|
||||
|
||||
public class GuildBankActivate : ClientPacket
|
||||
@@ -895,8 +895,8 @@ namespace Game.Network.Packets
|
||||
FullUpdate = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public ObjectGuid Banker;
|
||||
public bool FullUpdate;
|
||||
public ObjectGuid Banker { get; set; }
|
||||
public bool FullUpdate { get; set; }
|
||||
}
|
||||
|
||||
public class GuildBankBuyTab : ClientPacket
|
||||
@@ -909,8 +909,8 @@ namespace Game.Network.Packets
|
||||
BankTab = _worldPacket.ReadUInt8();
|
||||
}
|
||||
|
||||
public ObjectGuid Banker;
|
||||
public byte BankTab;
|
||||
public ObjectGuid Banker { get; set; }
|
||||
public byte BankTab { get; set; }
|
||||
}
|
||||
|
||||
public class GuildBankUpdateTab : ClientPacket
|
||||
@@ -930,10 +930,10 @@ namespace Game.Network.Packets
|
||||
Icon = _worldPacket.ReadString(iconLen);
|
||||
}
|
||||
|
||||
public ObjectGuid Banker;
|
||||
public byte BankTab;
|
||||
public string Name;
|
||||
public string Icon;
|
||||
public ObjectGuid Banker { get; set; }
|
||||
public byte BankTab { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Icon { get; set; }
|
||||
}
|
||||
|
||||
public class GuildBankDepositMoney : ClientPacket
|
||||
@@ -946,8 +946,8 @@ namespace Game.Network.Packets
|
||||
Money = _worldPacket.ReadUInt64();
|
||||
}
|
||||
|
||||
public ObjectGuid Banker;
|
||||
public ulong Money;
|
||||
public ObjectGuid Banker { get; set; }
|
||||
public ulong Money { get; set; }
|
||||
}
|
||||
|
||||
public class GuildBankQueryTab : ClientPacket
|
||||
@@ -962,9 +962,9 @@ namespace Game.Network.Packets
|
||||
FullUpdate = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public ObjectGuid Banker;
|
||||
public byte Tab;
|
||||
public bool FullUpdate;
|
||||
public ObjectGuid Banker { get; set; }
|
||||
public byte Tab { get; set; }
|
||||
public bool FullUpdate { get; set; }
|
||||
}
|
||||
|
||||
public class GuildBankRemainingWithdrawMoneyQuery : ClientPacket
|
||||
@@ -983,7 +983,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket .WriteInt64( RemainingWithdrawMoney);
|
||||
}
|
||||
|
||||
public long RemainingWithdrawMoney;
|
||||
public long RemainingWithdrawMoney { get; set; }
|
||||
}
|
||||
|
||||
public class GuildBankWithdrawMoney : ClientPacket
|
||||
@@ -996,8 +996,8 @@ namespace Game.Network.Packets
|
||||
Money = _worldPacket.ReadUInt64();
|
||||
}
|
||||
|
||||
public ObjectGuid Banker;
|
||||
public ulong Money;
|
||||
public ObjectGuid Banker { get; set; }
|
||||
public ulong Money { get; set; }
|
||||
}
|
||||
|
||||
public class GuildBankQueryResults : ServerPacket
|
||||
@@ -1048,12 +1048,12 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public List<GuildBankItemInfo> ItemInfo;
|
||||
public List<GuildBankTabInfo> TabInfo;
|
||||
public int WithdrawalsRemaining;
|
||||
public int Tab;
|
||||
public ulong Money;
|
||||
public bool FullUpdate;
|
||||
public List<GuildBankItemInfo> ItemInfo { get; set; }
|
||||
public List<GuildBankTabInfo> TabInfo { get; set; }
|
||||
public int WithdrawalsRemaining { get; set; }
|
||||
public int Tab { get; set; }
|
||||
public ulong Money { get; set; }
|
||||
public bool FullUpdate { get; set; }
|
||||
}
|
||||
|
||||
public class GuildBankSwapItems : ClientPacket
|
||||
@@ -1080,20 +1080,20 @@ namespace Game.Network.Packets
|
||||
AutoStore = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public ObjectGuid Banker;
|
||||
public int StackCount;
|
||||
public int BankItemCount;
|
||||
public uint ItemID;
|
||||
public uint ItemID1;
|
||||
public byte ToSlot;
|
||||
public byte BankSlot;
|
||||
public byte BankSlot1;
|
||||
public byte BankTab;
|
||||
public byte BankTab1;
|
||||
public byte ContainerSlot;
|
||||
public byte ContainerItemSlot;
|
||||
public bool AutoStore;
|
||||
public bool BankOnly;
|
||||
public ObjectGuid Banker { get; set; }
|
||||
public int StackCount { get; set; }
|
||||
public int BankItemCount { get; set; }
|
||||
public uint ItemID { get; set; }
|
||||
public uint ItemID1 { get; set; }
|
||||
public byte ToSlot { get; set; }
|
||||
public byte BankSlot { get; set; }
|
||||
public byte BankSlot1 { get; set; }
|
||||
public byte BankTab { get; set; }
|
||||
public byte BankTab1 { get; set; }
|
||||
public byte ContainerSlot { get; set; }
|
||||
public byte ContainerItemSlot { get; set; }
|
||||
public bool AutoStore { get; set; }
|
||||
public bool BankOnly { get; set; }
|
||||
}
|
||||
|
||||
public class GuildBankLogQuery : ClientPacket
|
||||
@@ -1105,7 +1105,7 @@ namespace Game.Network.Packets
|
||||
Tab = _worldPacket.ReadInt32();
|
||||
}
|
||||
|
||||
public int Tab;
|
||||
public int Tab { get; set; }
|
||||
}
|
||||
|
||||
public class GuildBankLogQueryResults : ServerPacket
|
||||
@@ -1151,9 +1151,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt64(WeeklyBonusMoney.Value);
|
||||
}
|
||||
|
||||
public int Tab;
|
||||
public List<GuildBankLogEntry> Entry;
|
||||
public Optional<ulong> WeeklyBonusMoney;
|
||||
public int Tab { get; set; }
|
||||
public List<GuildBankLogEntry> Entry { get; set; }
|
||||
public Optional<ulong> WeeklyBonusMoney { get; set; }
|
||||
}
|
||||
|
||||
public class GuildBankTextQuery : ClientPacket
|
||||
@@ -1165,7 +1165,7 @@ namespace Game.Network.Packets
|
||||
Tab = _worldPacket.ReadInt32();
|
||||
}
|
||||
|
||||
public int Tab;
|
||||
public int Tab { get; set; }
|
||||
}
|
||||
|
||||
public class GuildBankTextQueryResult : ServerPacket
|
||||
@@ -1180,8 +1180,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(Text);
|
||||
}
|
||||
|
||||
public int Tab;
|
||||
public string Text;
|
||||
public int Tab { get; set; }
|
||||
public string Text { get; set; }
|
||||
}
|
||||
|
||||
public class GuildBankSetTabText : ClientPacket
|
||||
@@ -1194,8 +1194,8 @@ namespace Game.Network.Packets
|
||||
TabText = _worldPacket.ReadString(_worldPacket.ReadBits<uint>(14));
|
||||
}
|
||||
|
||||
public int Tab;
|
||||
public string TabText;
|
||||
public int Tab { get; set; }
|
||||
public string TabText { get; set; }
|
||||
}
|
||||
|
||||
public class GuildQueryNews : ClientPacket
|
||||
@@ -1207,7 +1207,7 @@ namespace Game.Network.Packets
|
||||
GuildGUID = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid GuildGUID;
|
||||
public ObjectGuid GuildGUID { get; set; }
|
||||
}
|
||||
|
||||
public class GuildNewsPkt : ServerPacket
|
||||
@@ -1224,7 +1224,7 @@ namespace Game.Network.Packets
|
||||
newsEvent.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public List<GuildNewsEvent> NewsEvents;
|
||||
public List<GuildNewsEvent> NewsEvents { get; set; }
|
||||
}
|
||||
|
||||
public class GuildNewsUpdateSticky : ClientPacket
|
||||
@@ -1239,9 +1239,9 @@ namespace Game.Network.Packets
|
||||
Sticky = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public int NewsID;
|
||||
public ObjectGuid GuildGUID;
|
||||
public bool Sticky;
|
||||
public int NewsID { get; set; }
|
||||
public ObjectGuid GuildGUID { get; set; }
|
||||
public bool Sticky { get; set; }
|
||||
}
|
||||
|
||||
public class GuildSetGuildMaster : ClientPacket
|
||||
@@ -1254,7 +1254,7 @@ namespace Game.Network.Packets
|
||||
NewMasterName = _worldPacket.ReadString(nameLen);
|
||||
}
|
||||
|
||||
public string NewMasterName;
|
||||
public string NewMasterName { get; set; }
|
||||
}
|
||||
|
||||
public class GuildChallengeUpdateRequest : ClientPacket
|
||||
@@ -1283,10 +1283,10 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteInt32(Gold[i]);
|
||||
}
|
||||
|
||||
public int[] CurrentCount = new int[GuildConst.ChallengesTypes];
|
||||
public int[] MaxCount = new int[GuildConst.ChallengesTypes];
|
||||
public int[] Gold = new int[GuildConst.ChallengesTypes];
|
||||
public int[] MaxLevelGold = new int[GuildConst.ChallengesTypes];
|
||||
public int[] CurrentCount { get; set; } = new int[GuildConst.ChallengesTypes];
|
||||
public int[] MaxCount { get; set; } = new int[GuildConst.ChallengesTypes];
|
||||
public int[] Gold { get; set; } = new int[GuildConst.ChallengesTypes];
|
||||
public int[] MaxLevelGold { get; set; } = new int[GuildConst.ChallengesTypes];
|
||||
}
|
||||
|
||||
public class SaveGuildEmblem : ClientPacket
|
||||
@@ -1303,12 +1303,12 @@ namespace Game.Network.Packets
|
||||
Bg = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public ObjectGuid Vendor;
|
||||
public uint BStyle;
|
||||
public uint EStyle;
|
||||
public uint BColor;
|
||||
public uint EColor;
|
||||
public uint Bg;
|
||||
public ObjectGuid Vendor { get; set; }
|
||||
public uint BStyle { get; set; }
|
||||
public uint EStyle { get; set; }
|
||||
public uint BColor { get; set; }
|
||||
public uint EColor { get; set; }
|
||||
public uint Bg { get; set; }
|
||||
}
|
||||
|
||||
public class PlayerSaveGuildEmblem : ServerPacket
|
||||
@@ -1320,7 +1320,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteInt32(Error);
|
||||
}
|
||||
|
||||
public GuildEmblemError Error;
|
||||
public GuildEmblemError Error { get; set; }
|
||||
}
|
||||
|
||||
class GuildSetAchievementTracking : ClientPacket
|
||||
@@ -1335,7 +1335,7 @@ namespace Game.Network.Packets
|
||||
AchievementIDs.Add(_worldPacket.ReadUInt32());
|
||||
}
|
||||
|
||||
public List<uint> AchievementIDs = new List<uint>();
|
||||
public List<uint> AchievementIDs { get; set; } = new List<uint>();
|
||||
}
|
||||
|
||||
class GuildNameChanged : ServerPacket
|
||||
@@ -1350,8 +1350,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(GuildName);
|
||||
}
|
||||
|
||||
public ObjectGuid GuildGUID;
|
||||
public string GuildName;
|
||||
public ObjectGuid GuildGUID { get; set; }
|
||||
public string GuildName { get; set; }
|
||||
}
|
||||
|
||||
//Structs
|
||||
@@ -1364,9 +1364,9 @@ namespace Game.Network.Packets
|
||||
data.WriteInt32(Step);
|
||||
}
|
||||
|
||||
public int DbID;
|
||||
public int Rank;
|
||||
public int Step;
|
||||
public int DbID { get; set; }
|
||||
public int Rank { get; set; }
|
||||
public int Step { get; set; }
|
||||
}
|
||||
|
||||
public class GuildRosterMemberData
|
||||
@@ -1400,35 +1400,35 @@ namespace Game.Network.Packets
|
||||
data.WriteString(OfficerNote);
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public long WeeklyXP;
|
||||
public long TotalXP;
|
||||
public int RankID;
|
||||
public int AreaID;
|
||||
public int PersonalAchievementPoints;
|
||||
public int GuildReputation;
|
||||
public int GuildRepToCap;
|
||||
public float LastSave;
|
||||
public string Name;
|
||||
public uint VirtualRealmAddress;
|
||||
public string Note;
|
||||
public string OfficerNote;
|
||||
public byte Status;
|
||||
public byte Level;
|
||||
public byte ClassID;
|
||||
public byte Gender;
|
||||
public bool Authenticated;
|
||||
public bool SorEligible;
|
||||
public GuildRosterProfessionData[] Profession = new GuildRosterProfessionData[2];
|
||||
public ObjectGuid Guid { get; set; }
|
||||
public long WeeklyXP { get; set; }
|
||||
public long TotalXP { get; set; }
|
||||
public int RankID { get; set; }
|
||||
public int AreaID { get; set; }
|
||||
public int PersonalAchievementPoints { get; set; }
|
||||
public int GuildReputation { get; set; }
|
||||
public int GuildRepToCap { get; set; }
|
||||
public float LastSave { get; set; }
|
||||
public string Name { get; set; }
|
||||
public uint VirtualRealmAddress { get; set; }
|
||||
public string Note { get; set; }
|
||||
public string OfficerNote { get; set; }
|
||||
public byte Status { get; set; }
|
||||
public byte Level { get; set; }
|
||||
public byte ClassID { get; set; }
|
||||
public byte Gender { get; set; }
|
||||
public bool Authenticated { get; set; }
|
||||
public bool SorEligible { get; set; }
|
||||
public GuildRosterProfessionData[] Profession { get; set; } = new GuildRosterProfessionData[2];
|
||||
}
|
||||
|
||||
public struct GuildEventEntry
|
||||
{
|
||||
public ObjectGuid PlayerGUID;
|
||||
public ObjectGuid OtherGUID;
|
||||
public byte TransactionType;
|
||||
public byte RankID;
|
||||
public uint TransactionDate;
|
||||
public ObjectGuid PlayerGUID { get; set; }
|
||||
public ObjectGuid OtherGUID { get; set; }
|
||||
public byte TransactionType { get; set; }
|
||||
public byte RankID { get; set; }
|
||||
public uint TransactionDate { get; set; }
|
||||
}
|
||||
|
||||
public class GuildRankData
|
||||
@@ -1450,13 +1450,13 @@ namespace Game.Network.Packets
|
||||
data.WriteString(RankName);
|
||||
}
|
||||
|
||||
public uint RankID;
|
||||
public uint RankOrder;
|
||||
public uint Flags;
|
||||
public uint WithdrawGoldLimit;
|
||||
public string RankName;
|
||||
public uint[] TabFlags = new uint[GuildConst.MaxBankTabs];
|
||||
public uint[] TabWithdrawItemLimit = new uint[GuildConst.MaxBankTabs];
|
||||
public uint RankID { get; set; }
|
||||
public uint RankOrder { get; set; }
|
||||
public uint Flags { get; set; }
|
||||
public uint WithdrawGoldLimit { get; set; }
|
||||
public string RankName { get; set; }
|
||||
public uint[] TabFlags { get; set; } = new uint[GuildConst.MaxBankTabs];
|
||||
public uint[] TabWithdrawItemLimit { get; set; } = new uint[GuildConst.MaxBankTabs];
|
||||
}
|
||||
|
||||
public class GuildRewardItem
|
||||
@@ -1475,44 +1475,44 @@ namespace Game.Network.Packets
|
||||
data.WriteUInt32(achievementId);
|
||||
}
|
||||
|
||||
public uint ItemID;
|
||||
public uint Unk4;
|
||||
public List<uint> AchievementsRequired = new List<uint>();
|
||||
public uint RaceMask;
|
||||
public int MinGuildLevel;
|
||||
public int MinGuildRep;
|
||||
public ulong Cost;
|
||||
public uint ItemID { get; set; }
|
||||
public uint Unk4 { get; set; }
|
||||
public List<uint> AchievementsRequired { get; set; } = new List<uint>();
|
||||
public uint RaceMask { get; set; }
|
||||
public int MinGuildLevel { get; set; }
|
||||
public int MinGuildRep { get; set; }
|
||||
public ulong Cost { get; set; }
|
||||
}
|
||||
|
||||
public class GuildBankItemInfo
|
||||
{
|
||||
public ItemInstance Item;
|
||||
public int Slot;
|
||||
public int Count;
|
||||
public int EnchantmentID;
|
||||
public int Charges;
|
||||
public int OnUseEnchantmentID;
|
||||
public int Flags;
|
||||
public bool Locked;
|
||||
public List<ItemGemData> SocketEnchant = new List<ItemGemData>();
|
||||
public ItemInstance Item { get; set; }
|
||||
public int Slot { get; set; }
|
||||
public int Count { get; set; }
|
||||
public int EnchantmentID { get; set; }
|
||||
public int Charges { get; set; }
|
||||
public int OnUseEnchantmentID { get; set; }
|
||||
public int Flags { get; set; }
|
||||
public bool Locked { get; set; }
|
||||
public List<ItemGemData> SocketEnchant { get; set; } = new List<ItemGemData>();
|
||||
}
|
||||
|
||||
public struct GuildBankTabInfo
|
||||
{
|
||||
public int TabIndex;
|
||||
public string Name;
|
||||
public string Icon;
|
||||
public int TabIndex { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Icon { get; set; }
|
||||
}
|
||||
|
||||
public struct GuildBankLogEntry
|
||||
{
|
||||
public ObjectGuid PlayerGUID;
|
||||
public uint TimeOffset;
|
||||
public sbyte EntryType;
|
||||
public Optional<ulong> Money;
|
||||
public Optional<int> ItemID;
|
||||
public Optional<int> Count;
|
||||
public Optional<sbyte> OtherTab;
|
||||
public ObjectGuid PlayerGUID { get; set; }
|
||||
public uint TimeOffset { get; set; }
|
||||
public sbyte EntryType { get; set; }
|
||||
public Optional<ulong> Money { get; set; }
|
||||
public Optional<int> ItemID { get; set; }
|
||||
public Optional<int> Count { get; set; }
|
||||
public Optional<sbyte> OtherTab { get; set; }
|
||||
}
|
||||
|
||||
public class GuildNewsEvent
|
||||
@@ -1540,13 +1540,13 @@ namespace Game.Network.Packets
|
||||
Item.Value.Write(data);
|
||||
}
|
||||
|
||||
public int Id;
|
||||
public uint CompletedDate;
|
||||
public int Type;
|
||||
public int Flags;
|
||||
public int[] Data = new int[2];
|
||||
public ObjectGuid MemberGuid;
|
||||
public List<ObjectGuid> MemberList = new List<ObjectGuid>();
|
||||
public Optional<ItemInstance> Item;
|
||||
public int Id { get; set; }
|
||||
public uint CompletedDate { get; set; }
|
||||
public int Type { get; set; }
|
||||
public int Flags { get; set; }
|
||||
public int[] Data { get; set; } = new int[2];
|
||||
public ObjectGuid MemberGuid { get; set; }
|
||||
public List<ObjectGuid> MemberList { get; set; } = new List<ObjectGuid>();
|
||||
public Optional<ItemInstance> Item { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,8 +38,8 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public uint TableHash;
|
||||
public List<DBQueryRecord> Queries = new List<DBQueryRecord>();
|
||||
public uint TableHash { get; set; }
|
||||
public List<DBQueryRecord> Queries { get; set; } = new List<DBQueryRecord>();
|
||||
|
||||
public struct DBQueryRecord
|
||||
{
|
||||
@@ -49,8 +49,8 @@ namespace Game.Network.Packets
|
||||
RecordID = recordId;
|
||||
}
|
||||
|
||||
public ObjectGuid GUID;
|
||||
public uint RecordID;
|
||||
public ObjectGuid GUID { get; set; }
|
||||
public uint RecordID { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -68,12 +68,12 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteBytes(Data.GetData());
|
||||
}
|
||||
|
||||
public uint TableHash;
|
||||
public uint Timestamp;
|
||||
public uint RecordID;
|
||||
public bool Allow;
|
||||
public uint TableHash { get; set; }
|
||||
public uint Timestamp { get; set; }
|
||||
public uint RecordID { get; set; }
|
||||
public bool Allow { get; set; }
|
||||
|
||||
public ByteBuffer Data = new ByteBuffer();
|
||||
public ByteBuffer Data { get; set; } = new ByteBuffer();
|
||||
}
|
||||
|
||||
class HotfixList : ServerPacket
|
||||
@@ -93,8 +93,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteInt64(hotfixEntry.Key);
|
||||
}
|
||||
|
||||
public int HotfixCacheVersion;
|
||||
public Dictionary<ulong, int> Hotfixes = new Dictionary<ulong, int>();
|
||||
public int HotfixCacheVersion { get; set; }
|
||||
public Dictionary<ulong, int> Hotfixes { get; set; } = new Dictionary<ulong, int>();
|
||||
}
|
||||
|
||||
class HotfixQuery : ClientPacket
|
||||
@@ -111,7 +111,7 @@ namespace Game.Network.Packets
|
||||
Hotfixes.Add(_worldPacket.ReadUInt64());
|
||||
}
|
||||
|
||||
public List<ulong> Hotfixes = new List<ulong>();
|
||||
public List<ulong> Hotfixes { get; set; } = new List<ulong>();
|
||||
}
|
||||
|
||||
class HotfixQueryResponse : ServerPacket
|
||||
@@ -125,7 +125,7 @@ namespace Game.Network.Packets
|
||||
hotfix.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public List<HotfixData> Hotfixes = new List<HotfixData>();
|
||||
public List<HotfixData> Hotfixes { get; set; } = new List<HotfixData>();
|
||||
|
||||
public class HotfixData
|
||||
{
|
||||
@@ -141,8 +141,8 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public ulong ID;
|
||||
public int RecordID;
|
||||
public ulong ID { get; set; }
|
||||
public int RecordID { get; set; }
|
||||
public Optional<ByteBuffer> Data;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace Game.Network.Packets
|
||||
Target = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid Target;
|
||||
public ObjectGuid Target { get; set; }
|
||||
}
|
||||
|
||||
public class InspectResult : ServerPacket
|
||||
@@ -67,15 +67,15 @@ namespace Game.Network.Packets
|
||||
GuildData.Value.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public ObjectGuid InspecteeGUID;
|
||||
public List<InspectItemData> Items = new List<InspectItemData>();
|
||||
public List<ushort> Glyphs = new List<ushort>();
|
||||
public List<ushort> Talents = new List<ushort>();
|
||||
public List<ushort> PvpTalents = new List<ushort>();
|
||||
public Class ClassID = Class.None;
|
||||
public Gender GenderID = Gender.None;
|
||||
public ObjectGuid InspecteeGUID { get; set; }
|
||||
public List<InspectItemData> Items { get; set; } = new List<InspectItemData>();
|
||||
public List<ushort> Glyphs { get; set; } = new List<ushort>();
|
||||
public List<ushort> Talents { get; set; } = new List<ushort>();
|
||||
public List<ushort> PvpTalents { get; set; } = new List<ushort>();
|
||||
public Class ClassID { get; set; } = Class.None;
|
||||
public Gender GenderID { get; set; } = Gender.None;
|
||||
public Optional<InspectGuildData> GuildData = new Optional<InspectGuildData>();
|
||||
public int SpecializationID;
|
||||
public int SpecializationID { get; set; }
|
||||
}
|
||||
|
||||
public class RequestHonorStats : ClientPacket
|
||||
@@ -87,7 +87,7 @@ namespace Game.Network.Packets
|
||||
TargetGUID = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid TargetGUID;
|
||||
public ObjectGuid TargetGUID { get; set; }
|
||||
}
|
||||
|
||||
public class InspectHonorStats : ServerPacket
|
||||
@@ -103,11 +103,11 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(LifetimeHK);
|
||||
}
|
||||
|
||||
public ObjectGuid PlayerGUID;
|
||||
public uint LifetimeHK;
|
||||
public ushort YesterdayHK;
|
||||
public ushort TodayHK;
|
||||
public byte LifetimeMaxRank;
|
||||
public ObjectGuid PlayerGUID { get; set; }
|
||||
public uint LifetimeHK { get; set; }
|
||||
public ushort YesterdayHK { get; set; }
|
||||
public ushort TodayHK { get; set; }
|
||||
public byte LifetimeMaxRank { get; set; }
|
||||
}
|
||||
|
||||
public class InspectPVPRequest : ClientPacket
|
||||
@@ -120,8 +120,8 @@ namespace Game.Network.Packets
|
||||
InspectRealmAddress = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public ObjectGuid InspectTarget;
|
||||
public uint InspectRealmAddress;
|
||||
public ObjectGuid InspectTarget { get; set; }
|
||||
public uint InspectRealmAddress { get; set; }
|
||||
}
|
||||
|
||||
public class InspectPVPResponse : ServerPacket
|
||||
@@ -138,8 +138,8 @@ namespace Game.Network.Packets
|
||||
Bracket.ForEach(p => p.Write(_worldPacket));
|
||||
}
|
||||
|
||||
public List<PVPBracketData> Bracket;
|
||||
public ObjectGuid ClientGUID;
|
||||
public List<PVPBracketData> Bracket { get; set; }
|
||||
public ObjectGuid ClientGUID { get; set; }
|
||||
}
|
||||
|
||||
public class QueryInspectAchievements : ClientPacket
|
||||
@@ -151,7 +151,7 @@ namespace Game.Network.Packets
|
||||
Guid = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
}
|
||||
|
||||
/// RespondInspectAchievements in AchievementPackets
|
||||
@@ -172,8 +172,8 @@ namespace Game.Network.Packets
|
||||
data.WriteUInt8(Index);
|
||||
}
|
||||
|
||||
public uint Id;
|
||||
public byte Index;
|
||||
public uint Id { get; set; }
|
||||
public byte Index { get; set; }
|
||||
}
|
||||
|
||||
public class InspectItemData
|
||||
@@ -224,12 +224,12 @@ namespace Game.Network.Packets
|
||||
Enchants[i].Write(data);
|
||||
}
|
||||
|
||||
public ObjectGuid CreatorGUID;
|
||||
public ItemInstance Item;
|
||||
public byte Index;
|
||||
public bool Usable;
|
||||
public List<InspectEnchantData> Enchants = new List<InspectEnchantData>();
|
||||
public List<ItemGemData> Gems = new List<ItemGemData>();
|
||||
public ObjectGuid CreatorGUID { get; set; }
|
||||
public ItemInstance Item { get; set; }
|
||||
public byte Index { get; set; }
|
||||
public bool Usable { get; set; }
|
||||
public List<InspectEnchantData> Enchants { get; set; } = new List<InspectEnchantData>();
|
||||
public List<ItemGemData> Gems { get; set; } = new List<ItemGemData>();
|
||||
}
|
||||
|
||||
public struct InspectGuildData
|
||||
@@ -241,9 +241,9 @@ namespace Game.Network.Packets
|
||||
data.WriteInt32(AchievementPoints);
|
||||
}
|
||||
|
||||
public ObjectGuid GuildGUID;
|
||||
public int NumGuildMembers;
|
||||
public int AchievementPoints;
|
||||
public ObjectGuid GuildGUID { get; set; }
|
||||
public int NumGuildMembers { get; set; }
|
||||
public int AchievementPoints { get; set; }
|
||||
}
|
||||
|
||||
public struct PVPBracketData
|
||||
@@ -261,15 +261,15 @@ namespace Game.Network.Packets
|
||||
data.WriteUInt8(Bracket);
|
||||
}
|
||||
|
||||
public int Rating;
|
||||
public int Rank;
|
||||
public int WeeklyPlayed;
|
||||
public int WeeklyWon;
|
||||
public int SeasonPlayed;
|
||||
public int SeasonWon;
|
||||
public int WeeklyBestRating;
|
||||
public int Unk710;
|
||||
public byte Bracket;
|
||||
public int Rating { get; set; }
|
||||
public int Rank { get; set; }
|
||||
public int WeeklyPlayed { get; set; }
|
||||
public int WeeklyWon { get; set; }
|
||||
public int SeasonPlayed { get; set; }
|
||||
public int SeasonWon { get; set; }
|
||||
public int WeeklyBestRating { get; set; }
|
||||
public int Unk710 { get; set; }
|
||||
public byte Bracket { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(MapID);
|
||||
}
|
||||
|
||||
public uint MapID;
|
||||
public uint MapID { get; set; }
|
||||
}
|
||||
|
||||
class InstanceInfoPkt : ServerPacket
|
||||
@@ -45,7 +45,7 @@ namespace Game.Network.Packets
|
||||
lockInfos.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public List<InstanceLockInfos> LockList = new List<InstanceLockInfos>();
|
||||
public List<InstanceLockInfos> LockList { get; set; } = new List<InstanceLockInfos>();
|
||||
}
|
||||
|
||||
class ResetInstances : ClientPacket
|
||||
@@ -64,7 +64,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(MapID);
|
||||
}
|
||||
|
||||
public uint MapID;
|
||||
public uint MapID { get; set; }
|
||||
}
|
||||
|
||||
class InstanceResetFailed : ServerPacket
|
||||
@@ -78,8 +78,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public uint MapID;
|
||||
public ResetFailedReason ResetFailedReason;
|
||||
public uint MapID { get; set; }
|
||||
public ResetFailedReason ResetFailedReason { get; set; }
|
||||
}
|
||||
|
||||
class ResetFailedNotify : ServerPacket
|
||||
@@ -99,7 +99,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public bool Gm;
|
||||
public bool Gm { get; set; }
|
||||
}
|
||||
|
||||
class InstanceLockResponse : ClientPacket
|
||||
@@ -111,7 +111,7 @@ namespace Game.Network.Packets
|
||||
AcceptLock = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public bool AcceptLock;
|
||||
public bool AcceptLock { get; set; }
|
||||
}
|
||||
|
||||
class RaidGroupOnly : ServerPacket
|
||||
@@ -124,8 +124,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(Reason);
|
||||
}
|
||||
|
||||
public int Delay;
|
||||
public RaidGroupReason Reason;
|
||||
public int Delay { get; set; }
|
||||
public RaidGroupReason Reason { get; set; }
|
||||
}
|
||||
|
||||
class PendingRaidLock : ServerPacket
|
||||
@@ -141,10 +141,10 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public int TimeUntilLock;
|
||||
public uint CompletedMask;
|
||||
public bool Extending;
|
||||
public bool WarningOnly;
|
||||
public int TimeUntilLock { get; set; }
|
||||
public uint CompletedMask { get; set; }
|
||||
public bool Extending { get; set; }
|
||||
public bool WarningOnly { get; set; }
|
||||
}
|
||||
|
||||
class RaidInstanceMessage : ServerPacket
|
||||
@@ -161,11 +161,11 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public InstanceResetWarningType Type;
|
||||
public uint MapID;
|
||||
public Difficulty DifficultyID;
|
||||
public bool Locked;
|
||||
public bool Extended;
|
||||
public InstanceResetWarningType Type { get; set; }
|
||||
public uint MapID { get; set; }
|
||||
public Difficulty DifficultyID { get; set; }
|
||||
public bool Locked { get; set; }
|
||||
public bool Extended { get; set; }
|
||||
}
|
||||
|
||||
class InstanceEncounterEngageUnit : ServerPacket
|
||||
@@ -178,7 +178,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt8(TargetFramePriority);
|
||||
}
|
||||
|
||||
public ObjectGuid Unit;
|
||||
public ObjectGuid Unit { get; set; }
|
||||
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);
|
||||
}
|
||||
|
||||
public ObjectGuid Unit;
|
||||
public ObjectGuid Unit { get; set; }
|
||||
}
|
||||
|
||||
class InstanceEncounterChangePriority : ServerPacket
|
||||
@@ -204,7 +204,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt8(TargetFramePriority);
|
||||
}
|
||||
|
||||
public ObjectGuid Unit;
|
||||
public ObjectGuid Unit { get; set; }
|
||||
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);
|
||||
}
|
||||
|
||||
public uint InCombatResCount; // amount of usable battle ressurections
|
||||
public uint MaxInCombatResCount;
|
||||
public uint CombatResChargeRecovery;
|
||||
public uint NextCombatResChargeTime;
|
||||
public uint InCombatResCount; // amount of usable battle ressurection.
|
||||
public uint MaxInCombatResCount { get; set; }
|
||||
public uint CombatResChargeRecovery { get; set; }
|
||||
public uint NextCombatResChargeTime { get; set; }
|
||||
}
|
||||
|
||||
class InstanceEncounterEnd : ServerPacket
|
||||
@@ -250,8 +250,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(CombatResChargeRecovery);
|
||||
}
|
||||
|
||||
public int InCombatResCount;
|
||||
public uint CombatResChargeRecovery;
|
||||
public int InCombatResCount { get; set; }
|
||||
public uint CombatResChargeRecovery { get; set; }
|
||||
}
|
||||
|
||||
class BossKillCredit : ServerPacket
|
||||
@@ -263,7 +263,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(DungeonEncounterID);
|
||||
}
|
||||
|
||||
public uint DungeonEncounterID;
|
||||
public uint DungeonEncounterID { get; set; }
|
||||
}
|
||||
|
||||
//Structs
|
||||
@@ -282,13 +282,13 @@ namespace Game.Network.Packets
|
||||
data.FlushBits();
|
||||
}
|
||||
|
||||
public ulong InstanceID;
|
||||
public uint MapID;
|
||||
public uint DifficultyID;
|
||||
public int TimeRemaining;
|
||||
public uint CompletedMask;
|
||||
public ulong InstanceID { get; set; }
|
||||
public uint MapID { get; set; }
|
||||
public uint DifficultyID { get; set; }
|
||||
public int TimeRemaining { get; set; }
|
||||
public uint CompletedMask { get; set; }
|
||||
|
||||
public bool Locked;
|
||||
public bool Extended;
|
||||
public bool Locked { get; set; }
|
||||
public bool Extended { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,8 +33,8 @@ namespace Game.Network.Packets
|
||||
Slot = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public ObjectGuid VendorGUID;
|
||||
public uint Slot;
|
||||
public ObjectGuid VendorGUID { get; set; }
|
||||
public uint Slot { get; set; }
|
||||
}
|
||||
|
||||
public class BuyItem : ClientPacket
|
||||
@@ -55,13 +55,13 @@ namespace Game.Network.Packets
|
||||
ItemType = (ItemVendorType)_worldPacket.ReadBits<int>(2);
|
||||
}
|
||||
|
||||
public ObjectGuid VendorGUID;
|
||||
public ItemInstance Item;
|
||||
public uint Muid;
|
||||
public uint Slot;
|
||||
public ItemVendorType ItemType;
|
||||
public int Quantity;
|
||||
public ObjectGuid ContainerGUID;
|
||||
public ObjectGuid VendorGUID { get; set; }
|
||||
public ItemInstance Item { get; set; }
|
||||
public uint Muid { get; set; }
|
||||
public uint Slot { get; set; }
|
||||
public ItemVendorType ItemType { get; set; }
|
||||
public int Quantity { get; set; }
|
||||
public ObjectGuid ContainerGUID { get; set; }
|
||||
}
|
||||
|
||||
public class BuySucceeded : ServerPacket
|
||||
@@ -76,10 +76,10 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(QuantityBought);
|
||||
}
|
||||
|
||||
public ObjectGuid VendorGUID;
|
||||
public uint Muid;
|
||||
public uint QuantityBought;
|
||||
public uint NewQuantity;
|
||||
public ObjectGuid VendorGUID { get; set; }
|
||||
public uint Muid { get; set; }
|
||||
public uint QuantityBought { get; set; }
|
||||
public uint NewQuantity { get; set; }
|
||||
}
|
||||
|
||||
public class BuyFailed : ServerPacket
|
||||
@@ -93,9 +93,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt8(Reason);
|
||||
}
|
||||
|
||||
public ObjectGuid VendorGUID;
|
||||
public uint Muid;
|
||||
public BuyResult Reason = BuyResult.CantFindItem;
|
||||
public ObjectGuid VendorGUID { get; set; }
|
||||
public uint Muid { get; set; }
|
||||
public BuyResult Reason { get; set; } = BuyResult.CantFindItem;
|
||||
}
|
||||
|
||||
public class GetItemPurchaseData : ClientPacket
|
||||
@@ -107,7 +107,7 @@ namespace Game.Network.Packets
|
||||
ItemGUID = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid ItemGUID;
|
||||
public ObjectGuid ItemGUID { get; set; }
|
||||
}
|
||||
|
||||
class SetItemPurchaseData : ServerPacket
|
||||
@@ -122,10 +122,10 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(PurchaseTime);
|
||||
}
|
||||
|
||||
public uint PurchaseTime;
|
||||
public uint Flags;
|
||||
public ItemPurchaseContents Contents = new ItemPurchaseContents();
|
||||
public ObjectGuid ItemGUID;
|
||||
public uint PurchaseTime { get; set; }
|
||||
public uint Flags { get; set; }
|
||||
public ItemPurchaseContents Contents { get; set; } = new ItemPurchaseContents();
|
||||
public ObjectGuid ItemGUID { get; set; }
|
||||
}
|
||||
|
||||
class ItemPurchaseRefund : ClientPacket
|
||||
@@ -137,7 +137,7 @@ namespace Game.Network.Packets
|
||||
ItemGUID = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid ItemGUID;
|
||||
public ObjectGuid ItemGUID { get; set; }
|
||||
}
|
||||
|
||||
class ItemPurchaseRefundResult : ServerPacket
|
||||
@@ -154,8 +154,8 @@ namespace Game.Network.Packets
|
||||
Contents.Value.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public byte Result;
|
||||
public ObjectGuid ItemGUID;
|
||||
public byte Result { get; set; }
|
||||
public ObjectGuid ItemGUID { get; set; }
|
||||
public Optional<ItemPurchaseContents> Contents;
|
||||
}
|
||||
|
||||
@@ -168,7 +168,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(ItemGUID);
|
||||
}
|
||||
|
||||
public ObjectGuid ItemGUID;
|
||||
public ObjectGuid ItemGUID { get; set; }
|
||||
}
|
||||
|
||||
public class RepairItem : ClientPacket
|
||||
@@ -182,9 +182,9 @@ namespace Game.Network.Packets
|
||||
UseGuildBank = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public ObjectGuid NpcGUID;
|
||||
public ObjectGuid ItemGUID;
|
||||
public bool UseGuildBank;
|
||||
public ObjectGuid NpcGUID { get; set; }
|
||||
public ObjectGuid ItemGUID { get; set; }
|
||||
public bool UseGuildBank { get; set; }
|
||||
}
|
||||
|
||||
public class SellItem : ClientPacket
|
||||
@@ -198,9 +198,9 @@ namespace Game.Network.Packets
|
||||
Amount = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public ObjectGuid VendorGUID;
|
||||
public ObjectGuid ItemGUID;
|
||||
public uint Amount;
|
||||
public ObjectGuid VendorGUID { get; set; }
|
||||
public ObjectGuid ItemGUID { get; set; }
|
||||
public uint Amount { get; set; }
|
||||
}
|
||||
|
||||
public class ItemTimeUpdate : ServerPacket
|
||||
@@ -213,8 +213,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(DurationLeft);
|
||||
}
|
||||
|
||||
public ObjectGuid ItemGuid;
|
||||
public uint DurationLeft;
|
||||
public ObjectGuid ItemGuid { get; set; }
|
||||
public uint DurationLeft { get; set; }
|
||||
}
|
||||
|
||||
public class SetProficiency : ServerPacket
|
||||
@@ -227,8 +227,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt8(ProficiencyClass);
|
||||
}
|
||||
|
||||
public uint ProficiencyMask;
|
||||
public byte ProficiencyClass;
|
||||
public uint ProficiencyMask { get; set; }
|
||||
public byte ProficiencyClass { get; set; }
|
||||
}
|
||||
|
||||
public class InventoryChangeFailure : ServerPacket
|
||||
@@ -261,14 +261,14 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public InventoryResult BagResult;
|
||||
public byte ContainerBSlot;
|
||||
public ObjectGuid SrcContainer;
|
||||
public ObjectGuid DstContainer;
|
||||
public int SrcSlot;
|
||||
public int LimitCategory;
|
||||
public int Level;
|
||||
public ObjectGuid[] Item = new ObjectGuid[2];
|
||||
public InventoryResult BagResult { get; set; }
|
||||
public byte ContainerBSlot { get; set; }
|
||||
public ObjectGuid SrcContainer { get; set; }
|
||||
public ObjectGuid DstContainer { get; set; }
|
||||
public int SrcSlot { get; set; }
|
||||
public int LimitCategory { get; set; }
|
||||
public int Level { get; set; }
|
||||
public ObjectGuid[] Item { get; set; } = new ObjectGuid[2];
|
||||
}
|
||||
|
||||
public class SplitItem : ClientPacket
|
||||
@@ -285,12 +285,12 @@ namespace Game.Network.Packets
|
||||
Quantity = _worldPacket.ReadInt32();
|
||||
}
|
||||
|
||||
public byte ToSlot;
|
||||
public byte ToPackSlot;
|
||||
public byte FromPackSlot;
|
||||
public int Quantity;
|
||||
public InvUpdate Inv;
|
||||
public byte FromSlot;
|
||||
public byte ToSlot { get; set; }
|
||||
public byte ToPackSlot { get; set; }
|
||||
public byte FromPackSlot { get; set; }
|
||||
public int Quantity { get; set; }
|
||||
public InvUpdate Inv { get; set; }
|
||||
public byte FromSlot { get; set; }
|
||||
}
|
||||
|
||||
public class SwapInvItem : ClientPacket
|
||||
@@ -304,7 +304,7 @@ namespace Game.Network.Packets
|
||||
Slot1 = _worldPacket.ReadUInt8();
|
||||
}
|
||||
|
||||
public InvUpdate Inv;
|
||||
public InvUpdate Inv { get; set; }
|
||||
public byte Slot1; /// Source Slot
|
||||
public byte Slot2; /// Destination Slot
|
||||
}
|
||||
@@ -322,11 +322,11 @@ namespace Game.Network.Packets
|
||||
SlotA = _worldPacket.ReadUInt8();
|
||||
}
|
||||
|
||||
public InvUpdate Inv;
|
||||
public byte SlotA;
|
||||
public byte ContainerSlotB;
|
||||
public byte SlotB;
|
||||
public byte ContainerSlotA;
|
||||
public InvUpdate Inv { get; set; }
|
||||
public byte SlotA { get; set; }
|
||||
public byte ContainerSlotB { get; set; }
|
||||
public byte SlotB { get; set; }
|
||||
public byte ContainerSlotA { get; set; }
|
||||
}
|
||||
|
||||
public class AutoEquipItem : ClientPacket
|
||||
@@ -340,9 +340,9 @@ namespace Game.Network.Packets
|
||||
Slot = _worldPacket.ReadUInt8();
|
||||
}
|
||||
|
||||
public byte Slot;
|
||||
public InvUpdate Inv;
|
||||
public byte PackSlot;
|
||||
public byte Slot { get; set; }
|
||||
public InvUpdate Inv { get; set; }
|
||||
public byte PackSlot { get; set; }
|
||||
}
|
||||
|
||||
class AutoEquipItemSlot : ClientPacket
|
||||
@@ -356,9 +356,9 @@ namespace Game.Network.Packets
|
||||
ItemDstSlot = _worldPacket.ReadUInt8();
|
||||
}
|
||||
|
||||
public ObjectGuid Item;
|
||||
public byte ItemDstSlot;
|
||||
public InvUpdate Inv;
|
||||
public ObjectGuid Item { get; set; }
|
||||
public byte ItemDstSlot { get; set; }
|
||||
public InvUpdate Inv { get; set; }
|
||||
}
|
||||
|
||||
public class AutoStoreBagItem : ClientPacket
|
||||
@@ -373,10 +373,10 @@ namespace Game.Network.Packets
|
||||
SlotA = _worldPacket.ReadUInt8();
|
||||
}
|
||||
|
||||
public byte ContainerSlotB;
|
||||
public InvUpdate Inv;
|
||||
public byte ContainerSlotA;
|
||||
public byte SlotA;
|
||||
public byte ContainerSlotB { get; set; }
|
||||
public InvUpdate Inv { get; set; }
|
||||
public byte ContainerSlotA { get; set; }
|
||||
public byte SlotA { get; set; }
|
||||
}
|
||||
|
||||
public class DestroyItem : ClientPacket
|
||||
@@ -390,9 +390,9 @@ namespace Game.Network.Packets
|
||||
SlotNum = _worldPacket.ReadUInt8();
|
||||
}
|
||||
|
||||
public uint Count;
|
||||
public byte SlotNum;
|
||||
public byte ContainerId;
|
||||
public uint Count { get; set; }
|
||||
public byte SlotNum { get; set; }
|
||||
public byte ContainerId { get; set; }
|
||||
}
|
||||
|
||||
public class SellResponse : ServerPacket
|
||||
@@ -406,9 +406,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt8(Reason);
|
||||
}
|
||||
|
||||
public ObjectGuid VendorGUID;
|
||||
public ObjectGuid ItemGUID;
|
||||
public SellResult Reason = SellResult.Unk;
|
||||
public ObjectGuid VendorGUID { get; set; }
|
||||
public ObjectGuid ItemGUID { get; set; }
|
||||
public SellResult Reason { get; set; } = SellResult.Unk;
|
||||
}
|
||||
|
||||
class ItemPushResult : ServerPacket
|
||||
@@ -439,25 +439,25 @@ namespace Game.Network.Packets
|
||||
Item.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public ObjectGuid PlayerGUID;
|
||||
public byte Slot;
|
||||
public int SlotInBag;
|
||||
public ItemInstance Item;
|
||||
public int QuestLogItemID;// Item ID used for updating quest progress
|
||||
// only set if different than real ID (similar to CreatureTemplate.KillCredit)
|
||||
public uint Quantity;
|
||||
public uint QuantityInInventory;
|
||||
public int DungeonEncounterID;
|
||||
public int BattlePetBreedID;
|
||||
public uint BattlePetBreedQuality;
|
||||
public int BattlePetSpeciesID;
|
||||
public int BattlePetLevel;
|
||||
public ObjectGuid ItemGUID;
|
||||
public bool Pushed;
|
||||
public DisplayType DisplayText;
|
||||
public bool Created;
|
||||
public bool IsBonusRoll;
|
||||
public bool IsEncounterLoot;
|
||||
public ObjectGuid PlayerGUID { get; set; }
|
||||
public byte Slot { get; set; }
|
||||
public int SlotInBag { get; set; }
|
||||
public ItemInstance Item { get; set; }
|
||||
public int QuestLogItemID { get; set; } // Item ID used for updating quest progress
|
||||
// only set if different than real ID (similar to CreatureTemplate.KillCredit)
|
||||
public uint Quantity { get; set; }
|
||||
public uint QuantityInInventory { get; set; }
|
||||
public int DungeonEncounterID { get; set; }
|
||||
public int BattlePetBreedID { get; set; }
|
||||
public uint BattlePetBreedQuality { get; set; }
|
||||
public int BattlePetSpeciesID { get; set; }
|
||||
public int BattlePetLevel { get; set; }
|
||||
public ObjectGuid ItemGUID { get; set; }
|
||||
public bool Pushed { get; set; }
|
||||
public DisplayType DisplayText { get; set; }
|
||||
public bool Created { get; set; }
|
||||
public bool IsBonusRoll { get; set; }
|
||||
public bool IsEncounterLoot { get; set; }
|
||||
|
||||
|
||||
public enum DisplayType
|
||||
@@ -478,8 +478,8 @@ namespace Game.Network.Packets
|
||||
Slot = _worldPacket.ReadUInt8();
|
||||
}
|
||||
|
||||
public byte PackSlot;
|
||||
public byte Slot;
|
||||
public byte PackSlot { get; set; }
|
||||
public byte Slot { get; set; }
|
||||
}
|
||||
|
||||
class ReadItemResultFailed : ServerPacket
|
||||
@@ -494,9 +494,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public ObjectGuid Item;
|
||||
public byte Subcode;
|
||||
public uint Delay;
|
||||
public ObjectGuid Item { get; set; }
|
||||
public byte Subcode { get; set; }
|
||||
public uint Delay { get; set; }
|
||||
}
|
||||
|
||||
class ReadItemResultOK : ServerPacket
|
||||
@@ -508,7 +508,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(Item);
|
||||
}
|
||||
|
||||
public ObjectGuid Item;
|
||||
public ObjectGuid Item { get; set; }
|
||||
}
|
||||
|
||||
class WrapItem : ClientPacket
|
||||
@@ -520,7 +520,7 @@ namespace Game.Network.Packets
|
||||
Inv = new InvUpdate(_worldPacket);
|
||||
}
|
||||
|
||||
public InvUpdate Inv;
|
||||
public InvUpdate Inv { get; set; }
|
||||
}
|
||||
|
||||
class EnchantmentLog : ServerPacket
|
||||
@@ -537,12 +537,12 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(EnchantSlot);
|
||||
}
|
||||
|
||||
public ObjectGuid Caster;
|
||||
public ObjectGuid Owner;
|
||||
public ObjectGuid ItemGUID;
|
||||
public uint ItemID;
|
||||
public uint EnchantSlot;
|
||||
public uint Enchantment;
|
||||
public ObjectGuid Caster { get; set; }
|
||||
public ObjectGuid Owner { get; set; }
|
||||
public ObjectGuid ItemGUID { get; set; }
|
||||
public uint ItemID { get; set; }
|
||||
public uint EnchantSlot { get; set; }
|
||||
public uint Enchantment { get; set; }
|
||||
}
|
||||
|
||||
class CancelTempEnchantment : ClientPacket
|
||||
@@ -554,7 +554,7 @@ namespace Game.Network.Packets
|
||||
Slot = _worldPacket.ReadInt32();
|
||||
}
|
||||
|
||||
public int Slot;
|
||||
public int Slot { get; set; }
|
||||
}
|
||||
|
||||
class ItemCooldown : ServerPacket
|
||||
@@ -568,9 +568,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(Cooldown);
|
||||
}
|
||||
|
||||
public ObjectGuid ItemGuid;
|
||||
public uint SpellID;
|
||||
public uint Cooldown;
|
||||
public ObjectGuid ItemGuid { get; set; }
|
||||
public uint SpellID { get; set; }
|
||||
public uint Cooldown { get; set; }
|
||||
}
|
||||
|
||||
class ItemEnchantTimeUpdate : ServerPacket
|
||||
@@ -585,10 +585,10 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(OwnerGuid);
|
||||
}
|
||||
|
||||
public ObjectGuid OwnerGuid;
|
||||
public ObjectGuid ItemGuid;
|
||||
public uint DurationLeft;
|
||||
public uint Slot;
|
||||
public ObjectGuid OwnerGuid { get; set; }
|
||||
public ObjectGuid ItemGuid { get; set; }
|
||||
public uint DurationLeft { get; set; }
|
||||
public uint Slot { get; set; }
|
||||
}
|
||||
|
||||
class UseCritterItem : ClientPacket
|
||||
@@ -600,7 +600,7 @@ namespace Game.Network.Packets
|
||||
ItemGuid = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid ItemGuid;
|
||||
public ObjectGuid ItemGuid { get; set; }
|
||||
}
|
||||
|
||||
class UpgradeItem : ClientPacket
|
||||
@@ -616,11 +616,11 @@ namespace Game.Network.Packets
|
||||
Slot = _worldPacket.ReadInt32();
|
||||
}
|
||||
|
||||
public ObjectGuid ItemMaster;
|
||||
public ObjectGuid ItemGUID;
|
||||
public int ContainerSlot;
|
||||
public int UpgradeID;
|
||||
public int Slot;
|
||||
public ObjectGuid ItemMaster { get; set; }
|
||||
public ObjectGuid ItemGUID { get; set; }
|
||||
public int ContainerSlot { get; set; }
|
||||
public int UpgradeID { get; set; }
|
||||
public int Slot { get; set; }
|
||||
}
|
||||
|
||||
class ItemUpgradeResult : ServerPacket
|
||||
@@ -633,7 +633,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public bool Success;
|
||||
public bool Success { get; set; }
|
||||
}
|
||||
|
||||
class SocketGems : ClientPacket
|
||||
@@ -647,8 +647,8 @@ namespace Game.Network.Packets
|
||||
GemItem[i] = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid ItemGuid;
|
||||
public ObjectGuid[] GemItem = new ObjectGuid[ItemConst.MaxGemSockets];
|
||||
public ObjectGuid ItemGuid { get; set; }
|
||||
public ObjectGuid[] GemItem { get; set; } = new ObjectGuid[ItemConst.MaxGemSockets];
|
||||
}
|
||||
|
||||
class SocketGemsResult : ServerPacket
|
||||
@@ -660,7 +660,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(Item);
|
||||
}
|
||||
|
||||
public ObjectGuid Item;
|
||||
public ObjectGuid Item { get; set; }
|
||||
}
|
||||
|
||||
class SortBags : ClientPacket
|
||||
@@ -756,8 +756,8 @@ namespace Game.Network.Packets
|
||||
return !(left == right);
|
||||
}
|
||||
|
||||
public byte Context;
|
||||
public List<uint> BonusListIDs = new List<uint>();
|
||||
public byte Context { get; set; }
|
||||
public List<uint> BonusListIDs { get; set; } = new List<uint>();
|
||||
}
|
||||
|
||||
public class ItemInstance
|
||||
@@ -921,9 +921,9 @@ namespace Game.Network.Packets
|
||||
return !(left == right);
|
||||
}
|
||||
|
||||
public uint ItemID;
|
||||
public uint RandomPropertiesSeed;
|
||||
public uint RandomPropertiesID;
|
||||
public uint ItemID { get; set; }
|
||||
public uint RandomPropertiesSeed { get; set; }
|
||||
public uint RandomPropertiesID { get; set; }
|
||||
public Optional<ItemBonusInstanceData> ItemBonus;
|
||||
public Optional<CompactArray> Modifications;
|
||||
}
|
||||
@@ -946,10 +946,10 @@ namespace Game.Network.Packets
|
||||
data.WriteUInt8(Slot);
|
||||
}
|
||||
|
||||
public int ID;
|
||||
public uint Expiration;
|
||||
public int Charges;
|
||||
public byte Slot;
|
||||
public int ID { get; set; }
|
||||
public uint Expiration { get; set; }
|
||||
public int Charges { get; set; }
|
||||
public byte Slot { get; set; }
|
||||
}
|
||||
|
||||
public class ItemGemData
|
||||
@@ -966,8 +966,8 @@ namespace Game.Network.Packets
|
||||
Item.Read(data);
|
||||
}
|
||||
|
||||
public byte Slot;
|
||||
public ItemInstance Item = new ItemInstance();
|
||||
public byte Slot { get; set; }
|
||||
public ItemInstance Item { get; set; } = new ItemInstance();
|
||||
}
|
||||
|
||||
public struct InvUpdate
|
||||
@@ -987,12 +987,12 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public List<InvItem> Items;
|
||||
public List<InvItem> Items { get; set; }
|
||||
|
||||
public struct InvItem
|
||||
{
|
||||
public byte ContainerSlot;
|
||||
public byte Slot;
|
||||
public byte ContainerSlot { get; set; }
|
||||
public byte Slot { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1004,8 +1004,8 @@ namespace Game.Network.Packets
|
||||
data.WriteUInt32(ItemCount);
|
||||
}
|
||||
|
||||
public uint ItemID;
|
||||
public uint ItemCount;
|
||||
public uint ItemID { get; set; }
|
||||
public uint ItemCount { get; set; }
|
||||
}
|
||||
|
||||
struct ItemPurchaseRefundCurrency
|
||||
@@ -1016,8 +1016,8 @@ namespace Game.Network.Packets
|
||||
data.WriteUInt32(CurrencyCount);
|
||||
}
|
||||
|
||||
public uint CurrencyID;
|
||||
public uint CurrencyCount;
|
||||
public uint CurrencyID { get; set; }
|
||||
public uint CurrencyCount { get; set; }
|
||||
}
|
||||
|
||||
class ItemPurchaseContents
|
||||
@@ -1032,8 +1032,8 @@ namespace Game.Network.Packets
|
||||
Currencies[i].Write(data);
|
||||
}
|
||||
|
||||
public ulong Money;
|
||||
public ItemPurchaseRefundItem[] Items = new ItemPurchaseRefundItem[5];
|
||||
public ItemPurchaseRefundCurrency[] Currencies = new ItemPurchaseRefundCurrency[5];
|
||||
public ulong Money { get; set; }
|
||||
public ItemPurchaseRefundItem[] Items { get; set; } = new ItemPurchaseRefundItem[5];
|
||||
public ItemPurchaseRefundCurrency[] Currencies { get; set; } = new ItemPurchaseRefundCurrency[5];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,11 +38,11 @@ namespace Game.Network.Packets
|
||||
Slots.Add(_worldPacket.ReadUInt32());
|
||||
}
|
||||
|
||||
public bool QueueAsGroup;
|
||||
public bool QueueAsGroup { get; set; }
|
||||
bool Unknown; // Always false in 7.2.5
|
||||
public byte PartyIndex;
|
||||
public LfgRoles Roles;
|
||||
public List<uint> Slots = new List<uint>();
|
||||
public byte PartyIndex { get; set; }
|
||||
public LfgRoles Roles { get; set; }
|
||||
public List<uint> Slots { get; set; } = new List<uint>();
|
||||
}
|
||||
|
||||
class DFLeave : ClientPacket
|
||||
@@ -54,7 +54,7 @@ namespace Game.Network.Packets
|
||||
Ticket.Read(_worldPacket);
|
||||
}
|
||||
|
||||
public RideTicket Ticket = new RideTicket();
|
||||
public RideTicket Ticket { get; set; } = new RideTicket();
|
||||
}
|
||||
|
||||
class DFProposalResponse : ClientPacket
|
||||
@@ -69,10 +69,10 @@ namespace Game.Network.Packets
|
||||
Accepted = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public RideTicket Ticket = new RideTicket();
|
||||
public ulong InstanceID;
|
||||
public uint ProposalID;
|
||||
public bool Accepted;
|
||||
public RideTicket Ticket { get; set; } = new RideTicket();
|
||||
public ulong InstanceID { get; set; }
|
||||
public uint ProposalID { get; set; }
|
||||
public bool Accepted { get; set; }
|
||||
}
|
||||
|
||||
class DFSetRoles : ClientPacket
|
||||
@@ -85,8 +85,8 @@ namespace Game.Network.Packets
|
||||
PartyIndex = _worldPacket.ReadUInt8();
|
||||
}
|
||||
|
||||
public LfgRoles RolesDesired;
|
||||
public byte PartyIndex;
|
||||
public LfgRoles RolesDesired { get; set; }
|
||||
public byte PartyIndex { get; set; }
|
||||
}
|
||||
|
||||
class DFBootPlayerVote : ClientPacket
|
||||
@@ -98,7 +98,7 @@ namespace Game.Network.Packets
|
||||
Vote = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public bool Vote;
|
||||
public bool Vote { get; set; }
|
||||
}
|
||||
|
||||
class DFTeleport : ClientPacket
|
||||
@@ -110,7 +110,7 @@ namespace Game.Network.Packets
|
||||
TeleportOut = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public bool TeleportOut;
|
||||
public bool TeleportOut { get; set; }
|
||||
}
|
||||
|
||||
class DFGetSystemInfo : ClientPacket
|
||||
@@ -123,8 +123,8 @@ namespace Game.Network.Packets
|
||||
PartyIndex = _worldPacket.ReadUInt8();
|
||||
}
|
||||
|
||||
public byte PartyIndex;
|
||||
public bool Player;
|
||||
public byte PartyIndex { get; set; }
|
||||
public bool Player { get; set; }
|
||||
}
|
||||
|
||||
class DFGetJoinStatus : ClientPacket
|
||||
@@ -147,8 +147,8 @@ namespace Game.Network.Packets
|
||||
dungeonInfo.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public LFGBlackList BlackList = new LFGBlackList();
|
||||
public List<LfgPlayerDungeonInfo> Dungeons = new List<LfgPlayerDungeonInfo>();
|
||||
public LFGBlackList BlackList { get; set; } = new LFGBlackList();
|
||||
public List<LfgPlayerDungeonInfo> Dungeons { get; set; } = new List<LfgPlayerDungeonInfo>();
|
||||
}
|
||||
|
||||
class LfgPartyInfo : ServerPacket
|
||||
@@ -162,7 +162,7 @@ namespace Game.Network.Packets
|
||||
blackList.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public List<LFGBlackList> Player = new List<LFGBlackList>();
|
||||
public List<LFGBlackList> Player { get; set; } = new List<LFGBlackList>();
|
||||
}
|
||||
|
||||
class LFGUpdateStatus : ServerPacket
|
||||
@@ -194,18 +194,18 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public RideTicket Ticket = new RideTicket();
|
||||
public byte SubType;
|
||||
public byte Reason;
|
||||
public List<uint> Slots = new List<uint>();
|
||||
public uint RequestedRoles;
|
||||
public List<ObjectGuid> SuspendedPlayers = new List<ObjectGuid>();
|
||||
public bool NotifyUI;
|
||||
public bool IsParty;
|
||||
public bool Joined;
|
||||
public bool LfgJoined;
|
||||
public bool Queued;
|
||||
public bool Unused;
|
||||
public RideTicket Ticket { get; set; } = new RideTicket();
|
||||
public byte SubType { get; set; }
|
||||
public byte Reason { get; set; }
|
||||
public List<uint> Slots { get; set; } = new List<uint>();
|
||||
public uint RequestedRoles { get; set; }
|
||||
public List<ObjectGuid> SuspendedPlayers { get; set; } = new List<ObjectGuid>();
|
||||
public bool NotifyUI { get; set; }
|
||||
public bool IsParty { get; set; }
|
||||
public bool Joined { get; set; }
|
||||
public bool LfgJoined { get; set; }
|
||||
public bool Queued { get; set; }
|
||||
public bool Unused { get; set; }
|
||||
}
|
||||
|
||||
class RoleChosen : ServerPacket
|
||||
@@ -220,9 +220,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public ObjectGuid Player;
|
||||
public LfgRoles RoleMask;
|
||||
public bool Accepted;
|
||||
public ObjectGuid Player { get; set; }
|
||||
public LfgRoles RoleMask { get; set; }
|
||||
public bool Accepted { get; set; }
|
||||
}
|
||||
|
||||
class LFGRoleCheckUpdate : ServerPacket
|
||||
@@ -249,14 +249,14 @@ namespace Game.Network.Packets
|
||||
member.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public byte PartyIndex;
|
||||
public byte RoleCheckStatus;
|
||||
public List<uint> JoinSlots = new List<uint>();
|
||||
public ulong BgQueueID;
|
||||
public int GroupFinderActivityID = 0;
|
||||
public List<LFGRoleCheckUpdateMember> Members = new List<LFGRoleCheckUpdateMember>();
|
||||
public bool IsBeginning;
|
||||
public bool IsRequeue;
|
||||
public byte PartyIndex { get; set; }
|
||||
public byte RoleCheckStatus { get; set; }
|
||||
public List<uint> JoinSlots { get; set; } = new List<uint>();
|
||||
public ulong BgQueueID { get; set; }
|
||||
public int GroupFinderActivityID { get; set; } = 0;
|
||||
public List<LFGRoleCheckUpdateMember> Members { get; set; } = new List<LFGRoleCheckUpdateMember>();
|
||||
public bool IsBeginning { get; set; }
|
||||
public bool IsRequeue { get; set; }
|
||||
}
|
||||
|
||||
class LFGJoinResult : ServerPacket
|
||||
@@ -275,10 +275,10 @@ namespace Game.Network.Packets
|
||||
blackList.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public RideTicket Ticket;
|
||||
public byte Result;
|
||||
public byte ResultDetail;
|
||||
public List<LFGJoinBlackList> BlackList = new List<LFGJoinBlackList>();
|
||||
public RideTicket Ticket { get; set; }
|
||||
public byte Result { get; set; }
|
||||
public byte ResultDetail { get; set; }
|
||||
public List<LFGJoinBlackList> BlackList { get; set; } = new List<LFGJoinBlackList>();
|
||||
}
|
||||
|
||||
class LFGQueueStatus : ServerPacket
|
||||
@@ -302,13 +302,13 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(QueuedTime);
|
||||
}
|
||||
|
||||
public RideTicket Ticket;
|
||||
public uint Slot;
|
||||
public uint AvgWaitTimeMe;
|
||||
public uint AvgWaitTime;
|
||||
public uint[] AvgWaitTimeByRole = new uint[3];
|
||||
public byte[] LastNeeded = new byte[3];
|
||||
public uint QueuedTime;
|
||||
public RideTicket Ticket { get; set; }
|
||||
public uint Slot { get; set; }
|
||||
public uint AvgWaitTimeMe { get; set; }
|
||||
public uint AvgWaitTime { get; set; }
|
||||
public uint[] AvgWaitTimeByRole { get; set; } = new uint[3];
|
||||
public byte[] LastNeeded { get; set; } = new byte[3];
|
||||
public uint QueuedTime { get; set; }
|
||||
}
|
||||
|
||||
class LFGPlayerReward : ServerPacket
|
||||
@@ -327,11 +327,11 @@ namespace Game.Network.Packets
|
||||
reward.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public uint QueuedSlot;
|
||||
public uint ActualSlot;
|
||||
public uint RewardMoney;
|
||||
public uint AddedXP;
|
||||
public List<LFGPlayerRewards> Rewards = new List<LFGPlayerRewards>();
|
||||
public uint QueuedSlot { get; set; }
|
||||
public uint ActualSlot { get; set; }
|
||||
public uint RewardMoney { get; set; }
|
||||
public uint AddedXP { get; set; }
|
||||
public List<LFGPlayerRewards> Rewards { get; set; } = new List<LFGPlayerRewards>();
|
||||
}
|
||||
|
||||
class LfgBootPlayer : ServerPacket
|
||||
@@ -343,7 +343,7 @@ namespace Game.Network.Packets
|
||||
Info.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public LfgBootInfo Info = new LfgBootInfo();
|
||||
public LfgBootInfo Info { get; set; } = new LfgBootInfo();
|
||||
}
|
||||
|
||||
class LFGProposalUpdate : ServerPacket
|
||||
@@ -370,17 +370,17 @@ namespace Game.Network.Packets
|
||||
player.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public RideTicket Ticket;
|
||||
public ulong InstanceID;
|
||||
public uint ProposalID;
|
||||
public uint Slot;
|
||||
public byte State;
|
||||
public uint CompletedMask;
|
||||
public byte Unused;
|
||||
public bool ValidCompletedMask;
|
||||
public bool ProposalSilent;
|
||||
public bool IsRequeue;
|
||||
public List<LFGProposalUpdatePlayer> Players = new List<LFGProposalUpdatePlayer>();
|
||||
public RideTicket Ticket { get; set; }
|
||||
public ulong InstanceID { get; set; }
|
||||
public uint ProposalID { get; set; }
|
||||
public uint Slot { get; set; }
|
||||
public byte State { get; set; }
|
||||
public uint CompletedMask { get; set; }
|
||||
public byte Unused { get; set; }
|
||||
public bool ValidCompletedMask { get; set; }
|
||||
public bool ProposalSilent { get; set; }
|
||||
public bool IsRequeue { get; set; }
|
||||
public List<LFGProposalUpdatePlayer> Players { get; set; } = new List<LFGProposalUpdatePlayer>();
|
||||
}
|
||||
|
||||
class LfgDisabled : ServerPacket
|
||||
@@ -402,7 +402,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(Slot);
|
||||
}
|
||||
|
||||
public uint Slot;
|
||||
public uint Slot { get; set; }
|
||||
}
|
||||
|
||||
class LfgTeleportDenied : ServerPacket
|
||||
@@ -418,7 +418,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public LfgTeleportResult Reason;
|
||||
public LfgTeleportResult Reason { get; set; }
|
||||
}
|
||||
|
||||
//Structs
|
||||
@@ -456,8 +456,8 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public Optional<ObjectGuid> PlayerGuid;
|
||||
public List<LFGBlackListSlot> Slot = new List<LFGBlackListSlot>();
|
||||
public Optional<ObjectGuid> PlayerGuid { get; set; }
|
||||
public List<LFGBlackListSlot> Slot { get; set; } = new List<LFGBlackListSlot>();
|
||||
}
|
||||
|
||||
public struct LfgPlayerQuestRewardItem
|
||||
@@ -468,8 +468,8 @@ namespace Game.Network.Packets
|
||||
Quantity = quantity;
|
||||
}
|
||||
|
||||
public uint ItemID;
|
||||
public uint Quantity;
|
||||
public uint ItemID { get; set; }
|
||||
public uint Quantity { get; set; }
|
||||
}
|
||||
|
||||
public struct LfgPlayerQuestRewardCurrency
|
||||
@@ -480,8 +480,8 @@ namespace Game.Network.Packets
|
||||
Quantity = quantity;
|
||||
}
|
||||
|
||||
public uint CurrencyID;
|
||||
public uint Quantity;
|
||||
public uint CurrencyID { get; set; }
|
||||
public uint Quantity { get; set; }
|
||||
}
|
||||
|
||||
public class LfgPlayerQuestReward
|
||||
@@ -535,15 +535,15 @@ namespace Game.Network.Packets
|
||||
data.WriteInt32(Honor.Value);
|
||||
}
|
||||
|
||||
public uint Mask;
|
||||
public uint RewardMoney;
|
||||
public uint RewardXP;
|
||||
public List<LfgPlayerQuestRewardItem> Item = new List<LfgPlayerQuestRewardItem>();
|
||||
public List<LfgPlayerQuestRewardCurrency> Currency = new List<LfgPlayerQuestRewardCurrency>();
|
||||
public List<LfgPlayerQuestRewardCurrency> BonusCurrency = new List<LfgPlayerQuestRewardCurrency>();
|
||||
public uint Mask { get; set; }
|
||||
public uint RewardMoney { get; set; }
|
||||
public uint RewardXP { get; set; }
|
||||
public List<LfgPlayerQuestRewardItem> Item { get; set; } = new List<LfgPlayerQuestRewardItem>();
|
||||
public List<LfgPlayerQuestRewardCurrency> Currency { get; set; } = new List<LfgPlayerQuestRewardCurrency>();
|
||||
public List<LfgPlayerQuestRewardCurrency> BonusCurrency { get; set; } = new List<LfgPlayerQuestRewardCurrency>();
|
||||
public Optional<int> RewardSpellID; // Only used by SMSG_LFG_PLAYER_INFO
|
||||
public Optional<int> Unused1;
|
||||
public Optional<ulong> Unused2;
|
||||
public Optional<int> Unused1 { get; set; }
|
||||
public Optional<ulong> Unused2 { get; set; }
|
||||
public Optional<int> Honor; // Only used by SMSG_REQUEST_PVP_REWARDS_RESPONSE
|
||||
}
|
||||
|
||||
@@ -576,25 +576,25 @@ namespace Game.Network.Packets
|
||||
shortageReward.Write(data);
|
||||
}
|
||||
|
||||
public uint Slot;
|
||||
public int CompletionQuantity;
|
||||
public int CompletionLimit;
|
||||
public int CompletionCurrencyID;
|
||||
public int SpecificQuantity;
|
||||
public int SpecificLimit;
|
||||
public int OverallQuantity;
|
||||
public int OverallLimit;
|
||||
public int PurseWeeklyQuantity;
|
||||
public int PurseWeeklyLimit;
|
||||
public int PurseQuantity;
|
||||
public int PurseLimit;
|
||||
public int Quantity;
|
||||
public uint CompletedMask;
|
||||
public uint EncounterMask;
|
||||
public bool FirstReward;
|
||||
public bool ShortageEligible;
|
||||
public LfgPlayerQuestReward Rewards = new LfgPlayerQuestReward();
|
||||
public List<LfgPlayerQuestReward> ShortageReward = new List<LfgPlayerQuestReward>();
|
||||
public uint Slot { get; set; }
|
||||
public int CompletionQuantity { get; set; }
|
||||
public int CompletionLimit { get; set; }
|
||||
public int CompletionCurrencyID { get; set; }
|
||||
public int SpecificQuantity { get; set; }
|
||||
public int SpecificLimit { get; set; }
|
||||
public int OverallQuantity { get; set; }
|
||||
public int OverallLimit { get; set; }
|
||||
public int PurseWeeklyQuantity { get; set; }
|
||||
public int PurseWeeklyLimit { get; set; }
|
||||
public int PurseQuantity { get; set; }
|
||||
public int PurseLimit { get; set; }
|
||||
public int Quantity { get; set; }
|
||||
public uint CompletedMask { get; set; }
|
||||
public uint EncounterMask { get; set; }
|
||||
public bool FirstReward { get; set; }
|
||||
public bool ShortageEligible { get; set; }
|
||||
public LfgPlayerQuestReward Rewards { get; set; } = new LfgPlayerQuestReward();
|
||||
public List<LfgPlayerQuestReward> ShortageReward { get; set; } = new List<LfgPlayerQuestReward>();
|
||||
}
|
||||
|
||||
public class LFGRoleCheckUpdateMember
|
||||
@@ -616,10 +616,10 @@ namespace Game.Network.Packets
|
||||
data.FlushBits();
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public uint RolesDesired;
|
||||
public byte Level;
|
||||
public bool RoleCheckComplete;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
public uint RolesDesired { get; set; }
|
||||
public byte Level { get; set; }
|
||||
public bool RoleCheckComplete { get; set; }
|
||||
}
|
||||
|
||||
public struct LFGJoinBlackListSlot
|
||||
@@ -654,8 +654,8 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public ObjectGuid PlayerGuid;
|
||||
public List<LFGJoinBlackListSlot> Slots = new List<LFGJoinBlackListSlot>();
|
||||
public ObjectGuid PlayerGuid { get; set; }
|
||||
public List<LFGJoinBlackListSlot> Slots { get; set; } = new List<LFGJoinBlackListSlot>();
|
||||
}
|
||||
|
||||
public struct LFGPlayerRewards
|
||||
@@ -677,10 +677,10 @@ namespace Game.Network.Packets
|
||||
data.FlushBits();
|
||||
}
|
||||
|
||||
public uint RewardItem;
|
||||
public uint RewardItemQuantity;
|
||||
public int BonusCurrency;
|
||||
public bool IsCurrency;
|
||||
public uint RewardItem { get; set; }
|
||||
public uint RewardItemQuantity { get; set; }
|
||||
public int BonusCurrency { get; set; }
|
||||
public bool IsCurrency { get; set; }
|
||||
}
|
||||
|
||||
public class LfgBootInfo
|
||||
@@ -700,16 +700,16 @@ namespace Game.Network.Packets
|
||||
data.WriteString(Reason);
|
||||
}
|
||||
|
||||
public bool VoteInProgress;
|
||||
public bool VotePassed;
|
||||
public bool MyVoteCompleted;
|
||||
public bool MyVote;
|
||||
public ObjectGuid Target;
|
||||
public uint TotalVotes;
|
||||
public uint BootVotes;
|
||||
public uint TimeLeft;
|
||||
public uint VotesNeeded;
|
||||
public string Reason = "";
|
||||
public bool VoteInProgress { get; set; }
|
||||
public bool VotePassed { get; set; }
|
||||
public bool MyVoteCompleted { get; set; }
|
||||
public bool MyVote { get; set; }
|
||||
public ObjectGuid Target { get; set; }
|
||||
public uint TotalVotes { get; set; }
|
||||
public uint BootVotes { get; set; }
|
||||
public uint TimeLeft { get; set; }
|
||||
public uint VotesNeeded { get; set; }
|
||||
public string Reason { get; set; } = "";
|
||||
}
|
||||
|
||||
public struct LFGProposalUpdatePlayer
|
||||
@@ -725,12 +725,12 @@ namespace Game.Network.Packets
|
||||
data.FlushBits();
|
||||
}
|
||||
|
||||
public uint Roles;
|
||||
public bool Me;
|
||||
public bool SameParty;
|
||||
public bool MyParty;
|
||||
public bool Responded;
|
||||
public bool Accepted;
|
||||
public uint Roles { get; set; }
|
||||
public bool Me { get; set; }
|
||||
public bool SameParty { get; set; }
|
||||
public bool MyParty { get; set; }
|
||||
public bool Responded { get; set; }
|
||||
public bool Accepted { get; set; }
|
||||
}
|
||||
|
||||
public class RideTicket
|
||||
@@ -751,10 +751,10 @@ namespace Game.Network.Packets
|
||||
data.WriteInt32(Time);
|
||||
}
|
||||
|
||||
public ObjectGuid RequesterGuid;
|
||||
public uint Id;
|
||||
public RideType Type;
|
||||
public int Time;
|
||||
public ObjectGuid RequesterGuid { get; set; }
|
||||
public uint Id { get; set; }
|
||||
public RideType Type { get; set; }
|
||||
public int Time { get; set; }
|
||||
}
|
||||
|
||||
public enum RideType
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace Game.Network.Packets
|
||||
Unit = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid Unit;
|
||||
public ObjectGuid Unit { get; set; }
|
||||
}
|
||||
|
||||
public class LootResponse : ServerPacket
|
||||
@@ -66,17 +66,17 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public ObjectGuid LootObj;
|
||||
public ObjectGuid Owner;
|
||||
public byte Threshold = 2; // Most common value, 2 = Uncommon
|
||||
public LootMethod LootMethod;
|
||||
public byte AcquireReason;
|
||||
public LootError FailureReason = LootError.NoLoot; // Most common value
|
||||
public uint Coins;
|
||||
public List<LootItemData> Items = new List<LootItemData>();
|
||||
public List<LootCurrency> Currencies = new List<LootCurrency>();
|
||||
public bool Acquired;
|
||||
public bool AELooting;
|
||||
public ObjectGuid LootObj { get; set; }
|
||||
public ObjectGuid Owner { get; set; }
|
||||
public byte Threshold { get; set; } = 2; // Most common value, 2 = Uncommon
|
||||
public LootMethod LootMethod { get; set; }
|
||||
public byte AcquireReason { get; set; }
|
||||
public LootError FailureReason { get; set; } = LootError.NoLoot; // Most common value
|
||||
public uint Coins { get; set; }
|
||||
public List<LootItemData> Items { get; set; } = new List<LootItemData>();
|
||||
public List<LootCurrency> Currencies { get; set; } = new List<LootCurrency>();
|
||||
public bool Acquired { get; set; }
|
||||
public bool AELooting { get; set; }
|
||||
}
|
||||
|
||||
class LootItemPkt : ClientPacket
|
||||
@@ -99,7 +99,7 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public List<LootRequest> Loot = new List<LootRequest>();
|
||||
public List<LootRequest> Loot { get; set; } = new List<LootRequest>();
|
||||
}
|
||||
|
||||
class LootRemoved : ServerPacket
|
||||
@@ -113,9 +113,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt8(LootListID);
|
||||
}
|
||||
|
||||
public ObjectGuid LootObj;
|
||||
public ObjectGuid Owner;
|
||||
public byte LootListID;
|
||||
public ObjectGuid LootObj { get; set; }
|
||||
public ObjectGuid Owner { get; set; }
|
||||
public byte LootListID { get; set; }
|
||||
}
|
||||
|
||||
class LootRelease : ClientPacket
|
||||
@@ -127,7 +127,7 @@ namespace Game.Network.Packets
|
||||
Unit = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid Unit;
|
||||
public ObjectGuid Unit { get; set; }
|
||||
}
|
||||
|
||||
class LootMoney : ClientPacket
|
||||
@@ -148,8 +148,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public uint Money;
|
||||
public bool SoleLooter;
|
||||
public uint Money { get; set; }
|
||||
public bool SoleLooter { get; set; }
|
||||
}
|
||||
|
||||
class CoinRemoved : ServerPacket
|
||||
@@ -161,7 +161,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(LootObj);
|
||||
}
|
||||
|
||||
public ObjectGuid LootObj;
|
||||
public ObjectGuid LootObj { get; set; }
|
||||
}
|
||||
|
||||
class LootRoll : ClientPacket
|
||||
@@ -175,9 +175,9 @@ namespace Game.Network.Packets
|
||||
RollType = (RollType)_worldPacket.ReadUInt8();
|
||||
}
|
||||
|
||||
public ObjectGuid LootObj;
|
||||
public byte LootListID;
|
||||
public RollType RollType;
|
||||
public ObjectGuid LootObj { get; set; }
|
||||
public byte LootListID { get; set; }
|
||||
public RollType RollType { get; set; }
|
||||
}
|
||||
|
||||
class LootReleaseResponse : ServerPacket
|
||||
@@ -190,8 +190,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(Owner);
|
||||
}
|
||||
|
||||
public ObjectGuid LootObj;
|
||||
public ObjectGuid Owner;
|
||||
public ObjectGuid LootObj { get; set; }
|
||||
public ObjectGuid Owner { get; set; }
|
||||
}
|
||||
|
||||
class LootReleaseAll : ServerPacket
|
||||
@@ -221,10 +221,10 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(RoundRobinWinner.Value);
|
||||
}
|
||||
|
||||
public ObjectGuid Owner;
|
||||
public ObjectGuid LootObj;
|
||||
public Optional<ObjectGuid> Master;
|
||||
public Optional<ObjectGuid> RoundRobinWinner;
|
||||
public ObjectGuid Owner { get; set; }
|
||||
public ObjectGuid LootObj { get; set; }
|
||||
public Optional<ObjectGuid> Master { get; set; }
|
||||
public Optional<ObjectGuid> RoundRobinWinner { get; set; }
|
||||
}
|
||||
|
||||
class SetLootSpecialization : ClientPacket
|
||||
@@ -236,7 +236,7 @@ namespace Game.Network.Packets
|
||||
SpecID = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public uint SpecID;
|
||||
public uint SpecID { get; set; }
|
||||
}
|
||||
|
||||
class StartLootRoll : ServerPacket
|
||||
@@ -253,12 +253,12 @@ namespace Game.Network.Packets
|
||||
Item.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public ObjectGuid LootObj;
|
||||
public int MapID;
|
||||
public uint RollTime;
|
||||
public LootMethod Method;
|
||||
public RollMask ValidRolls;
|
||||
public LootItemData Item = new LootItemData();
|
||||
public ObjectGuid LootObj { get; set; }
|
||||
public int MapID { get; set; }
|
||||
public uint RollTime { get; set; }
|
||||
public LootMethod Method { get; set; }
|
||||
public RollMask ValidRolls { get; set; }
|
||||
public LootItemData Item { get; set; } = new LootItemData();
|
||||
}
|
||||
|
||||
class LootRollBroadcast : ServerPacket
|
||||
@@ -276,12 +276,12 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public ObjectGuid LootObj;
|
||||
public ObjectGuid Player;
|
||||
public ObjectGuid LootObj { get; set; }
|
||||
public ObjectGuid Player { get; set; }
|
||||
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;
|
||||
public LootItemData Item = new LootItemData();
|
||||
public bool Autopassed; // Triggers message |HlootHistory:%d|h[Loot]|h: You automatically passed on: %s because you cannot loot that item.
|
||||
public RollType RollType { get; set; }
|
||||
public LootItemData Item { get; set; } = 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.
|
||||
}
|
||||
|
||||
class LootRollWon : ServerPacket
|
||||
@@ -299,12 +299,12 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public ObjectGuid LootObj;
|
||||
public ObjectGuid Winner;
|
||||
public int Roll;
|
||||
public RollType RollType;
|
||||
public LootItemData Item = new LootItemData();
|
||||
public bool MainSpec;
|
||||
public ObjectGuid LootObj { get; set; }
|
||||
public ObjectGuid Winner { get; set; }
|
||||
public int Roll { get; set; }
|
||||
public RollType RollType { get; set; }
|
||||
public LootItemData Item { get; set; } = new LootItemData();
|
||||
public bool MainSpec { get; set; }
|
||||
}
|
||||
|
||||
class LootAllPassed : ServerPacket
|
||||
@@ -317,8 +317,8 @@ namespace Game.Network.Packets
|
||||
Item.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public ObjectGuid LootObj;
|
||||
public LootItemData Item = new LootItemData();
|
||||
public ObjectGuid LootObj { get; set; }
|
||||
public LootItemData Item { get; set; } = new LootItemData();
|
||||
}
|
||||
|
||||
class LootRollsComplete : ServerPacket
|
||||
@@ -331,8 +331,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt8(LootListID);
|
||||
}
|
||||
|
||||
public ObjectGuid LootObj;
|
||||
public byte LootListID;
|
||||
public ObjectGuid LootObj { get; set; }
|
||||
public byte LootListID { get; set; }
|
||||
}
|
||||
|
||||
class AELootTargets : ServerPacket
|
||||
@@ -368,8 +368,8 @@ namespace Game.Network.Packets
|
||||
Players.ForEach(guid => _worldPacket.WritePackedGuid(guid));
|
||||
}
|
||||
|
||||
public List<ObjectGuid> Players = new List<ObjectGuid>();
|
||||
public ObjectGuid LootObj;
|
||||
public List<ObjectGuid> Players { get; set; } = new List<ObjectGuid>();
|
||||
public ObjectGuid LootObj { get; set; }
|
||||
}
|
||||
|
||||
//Structs
|
||||
@@ -387,26 +387,26 @@ namespace Game.Network.Packets
|
||||
data.WriteUInt8(LootListID);
|
||||
}
|
||||
|
||||
public byte Type;
|
||||
public LootSlotType UIType;
|
||||
public uint Quantity;
|
||||
public byte LootItemType;
|
||||
public byte LootListID;
|
||||
public bool CanTradeToTapList;
|
||||
public ItemInstance Loot;
|
||||
public byte Type { get; set; }
|
||||
public LootSlotType UIType { get; set; }
|
||||
public uint Quantity { get; set; }
|
||||
public byte LootItemType { get; set; }
|
||||
public byte LootListID { get; set; }
|
||||
public bool CanTradeToTapList { get; set; }
|
||||
public ItemInstance Loot { get; set; }
|
||||
}
|
||||
|
||||
public struct LootCurrency
|
||||
{
|
||||
public uint CurrencyID;
|
||||
public uint Quantity;
|
||||
public byte LootListID;
|
||||
public byte UIType;
|
||||
public uint CurrencyID { get; set; }
|
||||
public uint Quantity { get; set; }
|
||||
public byte LootListID { get; set; }
|
||||
public byte UIType { get; set; }
|
||||
}
|
||||
|
||||
public struct LootRequest
|
||||
{
|
||||
public ObjectGuid Object;
|
||||
public byte LootListID;
|
||||
public ObjectGuid Object { get; set; }
|
||||
public byte LootListID { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace Game.Network.Packets
|
||||
Mailbox = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid Mailbox;
|
||||
public ObjectGuid Mailbox { get; set; }
|
||||
}
|
||||
|
||||
public class MailListResult : ServerPacket
|
||||
@@ -47,8 +47,8 @@ namespace Game.Network.Packets
|
||||
Mails.ForEach(p => p.Write(_worldPacket));
|
||||
}
|
||||
|
||||
public int TotalNumRecords;
|
||||
public List<MailListEntry> Mails = new List<MailListEntry>();
|
||||
public int TotalNumRecords { get; set; }
|
||||
public List<MailListEntry> Mails { get; set; } = new List<MailListEntry>();
|
||||
}
|
||||
|
||||
public class MailCreateTextItem : ClientPacket
|
||||
@@ -61,8 +61,8 @@ namespace Game.Network.Packets
|
||||
MailID = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public ObjectGuid Mailbox;
|
||||
public uint MailID;
|
||||
public ObjectGuid Mailbox { get; set; }
|
||||
public uint MailID { get; set; }
|
||||
}
|
||||
|
||||
public class SendMail : ClientPacket
|
||||
@@ -101,23 +101,23 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public StructSendMail Info;
|
||||
public StructSendMail Info { get; set; }
|
||||
|
||||
public class StructSendMail
|
||||
{
|
||||
public ObjectGuid Mailbox;
|
||||
public int StationeryID;
|
||||
public long SendMoney;
|
||||
public long Cod;
|
||||
public ObjectGuid Mailbox { get; set; }
|
||||
public int StationeryID { get; set; }
|
||||
public long SendMoney { get; set; }
|
||||
public long Cod { get; set; }
|
||||
public string Target;
|
||||
public string Subject;
|
||||
public string Body;
|
||||
public List<MailAttachment> Attachments = new List<MailAttachment>();
|
||||
public string Subject { get; set; }
|
||||
public string Body { get; set; }
|
||||
public List<MailAttachment> Attachments { get; set; } = new List<MailAttachment>();
|
||||
|
||||
public struct MailAttachment
|
||||
{
|
||||
public byte AttachPosition;
|
||||
public ObjectGuid ItemGUID;
|
||||
public byte AttachPosition { get; set; }
|
||||
public ObjectGuid ItemGUID { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -136,12 +136,12 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(QtyInInventory);
|
||||
}
|
||||
|
||||
public uint MailID;
|
||||
public uint Command;
|
||||
public uint ErrorCode;
|
||||
public uint BagResult;
|
||||
public uint AttachID;
|
||||
public uint QtyInInventory;
|
||||
public uint MailID { get; set; }
|
||||
public uint Command { get; set; }
|
||||
public uint ErrorCode { get; set; }
|
||||
public uint BagResult { get; set; }
|
||||
public uint AttachID { get; set; }
|
||||
public uint QtyInInventory { get; set; }
|
||||
}
|
||||
|
||||
public class MailReturnToSender : ClientPacket
|
||||
@@ -154,8 +154,8 @@ namespace Game.Network.Packets
|
||||
SenderGUID = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public uint MailID;
|
||||
public ObjectGuid SenderGUID;
|
||||
public uint MailID { get; set; }
|
||||
public ObjectGuid SenderGUID { get; set; }
|
||||
}
|
||||
|
||||
public class MailMarkAsRead : ClientPacket
|
||||
@@ -169,9 +169,9 @@ namespace Game.Network.Packets
|
||||
BiReceipt = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public ObjectGuid Mailbox;
|
||||
public uint MailID;
|
||||
public bool BiReceipt;
|
||||
public ObjectGuid Mailbox { get; set; }
|
||||
public uint MailID { get; set; }
|
||||
public bool BiReceipt { get; set; }
|
||||
}
|
||||
|
||||
public class MailDelete : ClientPacket
|
||||
@@ -184,8 +184,8 @@ namespace Game.Network.Packets
|
||||
DeleteReason = _worldPacket.ReadInt32();
|
||||
}
|
||||
|
||||
public uint MailID;
|
||||
public int DeleteReason;
|
||||
public uint MailID { get; set; }
|
||||
public int DeleteReason { get; set; }
|
||||
}
|
||||
|
||||
public class MailTakeItem : ClientPacket
|
||||
@@ -199,9 +199,9 @@ namespace Game.Network.Packets
|
||||
AttachID = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public ObjectGuid Mailbox;
|
||||
public uint MailID;
|
||||
public uint AttachID;
|
||||
public ObjectGuid Mailbox { get; set; }
|
||||
public uint MailID { get; set; }
|
||||
public uint AttachID { get; set; }
|
||||
}
|
||||
|
||||
public class MailTakeMoney : ClientPacket
|
||||
@@ -215,9 +215,9 @@ namespace Game.Network.Packets
|
||||
Money = _worldPacket.ReadInt64();
|
||||
}
|
||||
|
||||
public ObjectGuid Mailbox;
|
||||
public uint MailID;
|
||||
public long Money;
|
||||
public ObjectGuid Mailbox { get; set; }
|
||||
public uint MailID { get; set; }
|
||||
public long Money { get; set; }
|
||||
}
|
||||
|
||||
public class MailQueryNextMailTime : ClientPacket
|
||||
@@ -249,8 +249,8 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public float NextMailTime;
|
||||
public List<MailNextTimeEntry> Next;
|
||||
public float NextMailTime { get; set; }
|
||||
public List<MailNextTimeEntry> Next { get; set; }
|
||||
|
||||
public class MailNextTimeEntry
|
||||
{
|
||||
@@ -274,11 +274,11 @@ namespace Game.Network.Packets
|
||||
StationeryID = (int)mail.stationery;
|
||||
}
|
||||
|
||||
public ObjectGuid SenderGuid;
|
||||
public float TimeLeft;
|
||||
public int AltSenderID;
|
||||
public sbyte AltSenderType;
|
||||
public int StationeryID;
|
||||
public ObjectGuid SenderGuid { get; set; }
|
||||
public float TimeLeft { get; set; }
|
||||
public int AltSenderID { get; set; }
|
||||
public sbyte AltSenderType { get; set; }
|
||||
public int StationeryID { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -291,7 +291,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteFloat(Delay);
|
||||
}
|
||||
|
||||
public float Delay = 0.0f;
|
||||
public float Delay { get; set; } = 0.0f;
|
||||
}
|
||||
|
||||
class ShowMailbox : ServerPacket
|
||||
@@ -303,7 +303,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(PostmasterGUID);
|
||||
}
|
||||
|
||||
public ObjectGuid PostmasterGUID;
|
||||
public ObjectGuid PostmasterGUID { get; set; }
|
||||
}
|
||||
|
||||
//Structs
|
||||
@@ -363,14 +363,14 @@ namespace Game.Network.Packets
|
||||
en.Write(data);
|
||||
}
|
||||
|
||||
public byte Position;
|
||||
public int AttachID;
|
||||
public ItemInstance Item;
|
||||
public uint Count;
|
||||
public int Charges;
|
||||
public uint MaxDurability;
|
||||
public uint Durability;
|
||||
public bool Unlocked;
|
||||
public byte Position { get; set; }
|
||||
public int AttachID { get; set; }
|
||||
public ItemInstance Item { get; set; }
|
||||
public uint Count { get; set; }
|
||||
public int Charges { get; set; }
|
||||
public uint MaxDurability { get; set; }
|
||||
public uint Durability { get; set; }
|
||||
public bool Unlocked { get; set; }
|
||||
List<ItemEnchantData> Enchants = new List<ItemEnchantData>();
|
||||
List<ItemGemData> Gems= new List<ItemGemData>();
|
||||
}
|
||||
@@ -442,18 +442,18 @@ namespace Game.Network.Packets
|
||||
data.WriteString(Body);
|
||||
}
|
||||
|
||||
public int MailID;
|
||||
public byte SenderType;
|
||||
public Optional<ObjectGuid> SenderCharacter;
|
||||
public Optional<uint> AltSenderID;
|
||||
public ulong Cod;
|
||||
public int StationeryID;
|
||||
public ulong SentMoney;
|
||||
public int Flags;
|
||||
public float DaysLeft;
|
||||
public int MailTemplateID;
|
||||
public string Subject;
|
||||
public string Body;
|
||||
public List<MailAttachedItem> Attachments = new List<MailAttachedItem>();
|
||||
public int MailID { get; set; }
|
||||
public byte SenderType { get; set; }
|
||||
public Optional<ObjectGuid> SenderCharacter { get; set; }
|
||||
public Optional<uint> AltSenderID { get; set; }
|
||||
public ulong Cod { get; set; }
|
||||
public int StationeryID { get; set; }
|
||||
public ulong SentMoney { get; set; }
|
||||
public int Flags { get; set; }
|
||||
public float DaysLeft { get; set; }
|
||||
public int MailTemplateID { get; set; }
|
||||
public string Subject { get; set; }
|
||||
public string Body { get; set; }
|
||||
public List<MailAttachedItem> Attachments { get; set; } = new List<MailAttachedItem>();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,9 +34,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(BindAreaID);
|
||||
}
|
||||
|
||||
public uint BindMapID = 0xFFFFFFFF;
|
||||
public uint BindMapID { get; set; } = 0xFFFFFFFF;
|
||||
public Vector3 BindPosition;
|
||||
public uint BindAreaID;
|
||||
public uint BindAreaID { get; set; }
|
||||
}
|
||||
|
||||
public class PlayerBound : ServerPacket
|
||||
@@ -81,7 +81,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(Guid);
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
}
|
||||
|
||||
public class LoginSetTimeSpeed : ServerPacket
|
||||
@@ -97,11 +97,11 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(GameTimeHolidayOffset);
|
||||
}
|
||||
|
||||
public float NewSpeed;
|
||||
public int ServerTimeHolidayOffset;
|
||||
public uint GameTime;
|
||||
public uint ServerTime;
|
||||
public int GameTimeHolidayOffset;
|
||||
public float NewSpeed { get; set; }
|
||||
public int ServerTimeHolidayOffset { get; set; }
|
||||
public uint GameTime { get; set; }
|
||||
public uint ServerTime { get; set; }
|
||||
public int GameTimeHolidayOffset { get; set; }
|
||||
}
|
||||
|
||||
public class SetCurrency : ServerPacket
|
||||
@@ -129,13 +129,13 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteInt32(MaxQuantity.Value);
|
||||
}
|
||||
|
||||
public uint Type;
|
||||
public int Quantity;
|
||||
public uint Flags;
|
||||
public Optional<int> WeeklyQuantity;
|
||||
public Optional<int> TrackedQuantity;
|
||||
public Optional<int> MaxQuantity;
|
||||
public bool SuppressChatLog;
|
||||
public uint Type { get; set; }
|
||||
public int Quantity { get; set; }
|
||||
public uint Flags { get; set; }
|
||||
public Optional<int> WeeklyQuantity { get; set; }
|
||||
public Optional<int> TrackedQuantity { get; set; }
|
||||
public Optional<int> MaxQuantity { get; set; }
|
||||
public bool SuppressChatLog { get; set; }
|
||||
}
|
||||
|
||||
public class SetMaxWeeklyQuantity : ServerPacket
|
||||
@@ -148,8 +148,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32("MaxWeeklyQuantity");
|
||||
}
|
||||
|
||||
public uint MaxWeeklyQuantity;
|
||||
public uint Type;
|
||||
public uint MaxWeeklyQuantity { get; set; }
|
||||
public uint Type { get; set; }
|
||||
}
|
||||
|
||||
public class ResetWeeklyCurrency : ServerPacket
|
||||
@@ -202,17 +202,17 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public List<Record> Data = new List<Record>();
|
||||
public List<Record> Data { get; set; } = new List<Record>();
|
||||
|
||||
public struct Record
|
||||
{
|
||||
public uint Type;
|
||||
public uint Quantity;
|
||||
public Optional<uint> WeeklyQuantity; // Currency count obtained this Week.
|
||||
public uint Type { get; set; }
|
||||
public uint Quantity { get; set; }
|
||||
public Optional<uint> WeeklyQuantity; // Currency count obtained this Week.
|
||||
public Optional<uint> MaxWeeklyQuantity; // Weekly Currency cap.
|
||||
public Optional<uint> TrackedQuantity;
|
||||
public Optional<int> MaxQuantity;
|
||||
public byte Flags; // 0 = none,
|
||||
public Optional<uint> TrackedQuantity { get; set; }
|
||||
public Optional<int> MaxQuantity { get; set; }
|
||||
public byte Flags; // 0 = none
|
||||
}
|
||||
}
|
||||
|
||||
@@ -237,7 +237,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(SequenceIndex);
|
||||
}
|
||||
|
||||
public uint SequenceIndex;
|
||||
public uint SequenceIndex { get; set; }
|
||||
}
|
||||
|
||||
public class TimeSyncResponse : ClientPacket
|
||||
@@ -263,7 +263,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(CinematicID);
|
||||
}
|
||||
|
||||
public uint CinematicID;
|
||||
public uint CinematicID { get; set; }
|
||||
}
|
||||
|
||||
public class TriggerMovie : ServerPacket
|
||||
@@ -275,7 +275,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(MovieID);
|
||||
}
|
||||
|
||||
public uint MovieID;
|
||||
public uint MovieID { get; set; }
|
||||
}
|
||||
|
||||
public class UITimeRequest : ClientPacket
|
||||
@@ -294,7 +294,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(Time);
|
||||
}
|
||||
|
||||
public uint Time;
|
||||
public uint Time { get; set; }
|
||||
}
|
||||
|
||||
public class TutorialFlags : ServerPacket
|
||||
@@ -307,7 +307,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(TutorialData[i]);
|
||||
}
|
||||
|
||||
public uint[] TutorialData = new uint[(int)Tutorials.Max];
|
||||
public uint[] TutorialData { get; set; } = new uint[(int)Tutorials.Max];
|
||||
}
|
||||
|
||||
public class TutorialSetFlag : ClientPacket
|
||||
@@ -321,8 +321,8 @@ namespace Game.Network.Packets
|
||||
TutorialBit = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public TutorialAction Action;
|
||||
public uint TutorialBit;
|
||||
public TutorialAction Action { get; set; }
|
||||
public uint TutorialBit { get; set; }
|
||||
}
|
||||
|
||||
public class WorldServerInfo : ServerPacket
|
||||
@@ -355,12 +355,12 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(InstanceGroupSize.Value);
|
||||
}
|
||||
|
||||
public uint DifficultyID;
|
||||
public byte IsTournamentRealm;
|
||||
public bool XRealmPvpAlert;
|
||||
public Optional<uint> RestrictedAccountMaxLevel;
|
||||
public Optional<uint> RestrictedAccountMaxMoney;
|
||||
public Optional<uint> InstanceGroupSize;
|
||||
public uint DifficultyID { get; set; }
|
||||
public byte IsTournamentRealm { get; set; }
|
||||
public bool XRealmPvpAlert { get; set; }
|
||||
public Optional<uint> RestrictedAccountMaxLevel { get; set; }
|
||||
public Optional<uint> RestrictedAccountMaxMoney { get; set; }
|
||||
public Optional<uint> InstanceGroupSize { get; set; }
|
||||
}
|
||||
|
||||
public class SetDungeonDifficulty : ClientPacket
|
||||
@@ -372,7 +372,7 @@ namespace Game.Network.Packets
|
||||
DifficultyID = _worldPacket.ReadInt32();
|
||||
}
|
||||
|
||||
public int DifficultyID;
|
||||
public int DifficultyID { get; set; }
|
||||
}
|
||||
|
||||
public class SetRaidDifficulty : ClientPacket
|
||||
@@ -385,8 +385,8 @@ namespace Game.Network.Packets
|
||||
Legacy = _worldPacket.ReadUInt8();
|
||||
}
|
||||
|
||||
public int DifficultyID;
|
||||
public byte Legacy;
|
||||
public int DifficultyID { get; set; }
|
||||
public byte Legacy { get; set; }
|
||||
}
|
||||
|
||||
public class DungeonDifficultySet : ServerPacket
|
||||
@@ -398,7 +398,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteInt32(DifficultyID);
|
||||
}
|
||||
|
||||
public int DifficultyID;
|
||||
public int DifficultyID { get; set; }
|
||||
}
|
||||
|
||||
public class RaidDifficultySet : ServerPacket
|
||||
@@ -411,8 +411,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt8(Legacy);
|
||||
}
|
||||
|
||||
public int DifficultyID;
|
||||
public bool Legacy;
|
||||
public int DifficultyID { get; set; }
|
||||
public bool Legacy { get; set; }
|
||||
}
|
||||
|
||||
public class CorpseReclaimDelay : ServerPacket
|
||||
@@ -424,7 +424,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(Remaining);
|
||||
}
|
||||
|
||||
public uint Remaining;
|
||||
public uint Remaining { get; set; }
|
||||
}
|
||||
|
||||
public class DeathReleaseLoc : ServerPacket
|
||||
@@ -437,8 +437,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteVector3(Loc);
|
||||
}
|
||||
|
||||
public int MapID;
|
||||
public Vector3 Loc;
|
||||
public int MapID { get; set; }
|
||||
public Vector3 Loc { get; set; }
|
||||
}
|
||||
|
||||
public class PortGraveyard : ClientPacket
|
||||
@@ -457,7 +457,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(PlayerGUID);
|
||||
}
|
||||
|
||||
public ObjectGuid PlayerGUID;
|
||||
public ObjectGuid PlayerGUID { get; set; }
|
||||
}
|
||||
|
||||
public class ReclaimCorpse : ClientPacket
|
||||
@@ -469,7 +469,7 @@ namespace Game.Network.Packets
|
||||
CorpseGUID = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid CorpseGUID;
|
||||
public ObjectGuid CorpseGUID { get; set; }
|
||||
}
|
||||
|
||||
public class RepopRequest : ClientPacket
|
||||
@@ -481,7 +481,7 @@ namespace Game.Network.Packets
|
||||
CheckInstance = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public bool CheckInstance;
|
||||
public bool CheckInstance { get; set; }
|
||||
}
|
||||
|
||||
public class RequestCemeteryList : ClientPacket
|
||||
@@ -505,8 +505,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(cemetery);
|
||||
}
|
||||
|
||||
public bool IsGossipTriggered;
|
||||
public List<uint> CemeteryID = new List<uint>();
|
||||
public bool IsGossipTriggered { get; set; }
|
||||
public List<uint> CemeteryID { get; set; } = new List<uint>();
|
||||
}
|
||||
|
||||
public class ResurrectResponse : ClientPacket
|
||||
@@ -519,8 +519,8 @@ namespace Game.Network.Packets
|
||||
Response = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public ObjectGuid Resurrecter;
|
||||
public uint Response;
|
||||
public ObjectGuid Resurrecter { get; set; }
|
||||
public uint Response { get; set; }
|
||||
}
|
||||
|
||||
public class WeatherPkt : ServerPacket
|
||||
@@ -555,7 +555,7 @@ namespace Game.Network.Packets
|
||||
StandState = (UnitStandStateType)_worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public UnitStandStateType StandState;
|
||||
public UnitStandStateType StandState { get; set; }
|
||||
}
|
||||
|
||||
public class StandStateUpdate : ServerPacket
|
||||
@@ -599,12 +599,12 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public int Scale;
|
||||
public int MaxValue;
|
||||
public MirrorTimerType Timer;
|
||||
public int SpellID;
|
||||
public int Value;
|
||||
public bool Paused;
|
||||
public int Scale { get; set; }
|
||||
public int MaxValue { get; set; }
|
||||
public MirrorTimerType Timer { get; set; }
|
||||
public int SpellID { get; set; }
|
||||
public int Value { get; set; }
|
||||
public bool Paused { get; set; }
|
||||
}
|
||||
|
||||
public class PauseMirrorTimer : ServerPacket
|
||||
@@ -622,8 +622,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public bool Paused = true;
|
||||
public MirrorTimerType Timer;
|
||||
public bool Paused { get; set; } = true;
|
||||
public MirrorTimerType Timer { get; set; }
|
||||
}
|
||||
|
||||
public class StopMirrorTimer : ServerPacket
|
||||
@@ -638,7 +638,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteInt32(Timer);
|
||||
}
|
||||
|
||||
public MirrorTimerType Timer;
|
||||
public MirrorTimerType Timer { get; set; }
|
||||
}
|
||||
|
||||
public class ExplorationExperience : ServerPacket
|
||||
@@ -655,8 +655,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(Experience);
|
||||
}
|
||||
|
||||
public uint Experience;
|
||||
public uint AreaID;
|
||||
public uint Experience { get; set; }
|
||||
public uint AreaID { get; set; }
|
||||
}
|
||||
|
||||
public class LevelUpInfo : ServerPacket
|
||||
@@ -677,11 +677,11 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteInt32(Cp);
|
||||
}
|
||||
|
||||
public uint Level = 0;
|
||||
public uint HealthDelta = 0;
|
||||
public uint[] PowerDelta = new uint[6];
|
||||
public uint[] StatDelta = new uint[(int)Stats.Max];
|
||||
public int Cp = 0;
|
||||
public uint Level { get; set; } = 0;
|
||||
public uint HealthDelta { get; set; } = 0;
|
||||
public uint[] PowerDelta { get; set; } = new uint[6];
|
||||
public uint[] StatDelta { get; set; } = new uint[(int)Stats.Max];
|
||||
public int Cp { get; set; } = 0;
|
||||
}
|
||||
|
||||
public class PlayMusic : ServerPacket
|
||||
@@ -710,18 +710,18 @@ namespace Game.Network.Packets
|
||||
PartyIndex = _worldPacket.ReadUInt8();
|
||||
}
|
||||
|
||||
public uint Min;
|
||||
public uint Max;
|
||||
public byte PartyIndex;
|
||||
public uint Min { get; set; }
|
||||
public uint Max { get; set; }
|
||||
public byte PartyIndex { get; set; }
|
||||
}
|
||||
|
||||
public class RandomRoll : ServerPacket
|
||||
{
|
||||
public ObjectGuid Roller;
|
||||
public ObjectGuid RollerWowAccount;
|
||||
public int Min;
|
||||
public int Max;
|
||||
public int Result;
|
||||
public ObjectGuid Roller { get; set; }
|
||||
public ObjectGuid RollerWowAccount { get; set; }
|
||||
public int Min { get; set; }
|
||||
public int Max { get; set; }
|
||||
public int Result { get; set; }
|
||||
|
||||
public RandomRoll() : base(ServerOpcodes.RandomRoll) { }
|
||||
|
||||
@@ -771,12 +771,12 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt16(map); // UI map id, WorldMapArea.dbc, controls map display
|
||||
}
|
||||
|
||||
public ObjectGuid ClientGUID;
|
||||
public ObjectGuid PersonalGUID;
|
||||
public List<uint> PhaseShifts = new List<uint>();
|
||||
public List<uint> PreloadMapIDs = new List<uint>();
|
||||
public List<uint> UiWorldMapAreaIDSwaps = new List<uint>();
|
||||
public List<uint> VisibleMapIDs = new List<uint>();
|
||||
public ObjectGuid ClientGUID { get; set; }
|
||||
public ObjectGuid PersonalGUID { get; set; }
|
||||
public List<uint> PhaseShifts { get; set; } = new List<uint>();
|
||||
public List<uint> PreloadMapIDs { get; set; } = new List<uint>();
|
||||
public List<uint> UiWorldMapAreaIDSwaps { get; set; } = new List<uint>();
|
||||
public List<uint> VisibleMapIDs { get; set; } = new List<uint>();
|
||||
}
|
||||
|
||||
public class ZoneUnderAttack : ServerPacket
|
||||
@@ -788,7 +788,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteInt32(AreaID);
|
||||
}
|
||||
|
||||
public int AreaID;
|
||||
public int AreaID { get; set; }
|
||||
}
|
||||
|
||||
class DurabilityDamageDeath : ServerPacket
|
||||
@@ -800,7 +800,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(Percent);
|
||||
}
|
||||
|
||||
public uint Percent;
|
||||
public uint Percent { get; set; }
|
||||
}
|
||||
|
||||
class ObjectUpdateFailed : ClientPacket
|
||||
@@ -812,7 +812,7 @@ namespace Game.Network.Packets
|
||||
ObjectGUID = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid ObjectGUID;
|
||||
public ObjectGuid ObjectGUID { get; set; }
|
||||
}
|
||||
|
||||
class ObjectUpdateRescued : ClientPacket
|
||||
@@ -824,7 +824,7 @@ namespace Game.Network.Packets
|
||||
ObjectGUID = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid ObjectGUID;
|
||||
public ObjectGuid ObjectGUID { get; set; }
|
||||
}
|
||||
|
||||
class PlayObjectSound : ServerPacket
|
||||
@@ -839,10 +839,10 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteVector3(Position);
|
||||
}
|
||||
|
||||
ObjectGuid TargetObjectGUID;
|
||||
ObjectGuid SourceObjectGUID;
|
||||
uint SoundKitID;
|
||||
Vector3 Position;
|
||||
public ObjectGuid TargetObjectGUID { get; set; }
|
||||
public ObjectGuid SourceObjectGUID { get; set; }
|
||||
public uint SoundKitID { get; set; }
|
||||
public Vector3 Position { get; set; }
|
||||
}
|
||||
|
||||
class PlaySound : ServerPacket
|
||||
@@ -877,8 +877,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(SoundKitID);
|
||||
}
|
||||
|
||||
public ObjectGuid SourceObjectGUID;
|
||||
public uint SoundKitID;
|
||||
public ObjectGuid SourceObjectGUID { get; set; }
|
||||
public uint SoundKitID { get; set; }
|
||||
}
|
||||
|
||||
class OpeningCinematic : ClientPacket
|
||||
@@ -918,7 +918,7 @@ namespace Game.Network.Packets
|
||||
Enable = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public bool Enable;
|
||||
public bool Enable { get; set; }
|
||||
}
|
||||
|
||||
class Dismount : ServerPacket
|
||||
@@ -930,7 +930,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(Guid);
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
}
|
||||
|
||||
class SaveCUFProfiles : ClientPacket
|
||||
@@ -971,7 +971,7 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public List<CUFProfile> CUFProfiles = new List<CUFProfile>();
|
||||
public List<CUFProfile> CUFProfiles { get; set; } = new List<CUFProfile>();
|
||||
}
|
||||
|
||||
class LoadCUFProfiles : ServerPacket
|
||||
@@ -1009,7 +1009,7 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public List<CUFProfile> CUFProfiles = new List<CUFProfile>();
|
||||
public List<CUFProfile> CUFProfiles { get; set; } = new List<CUFProfile>();
|
||||
}
|
||||
|
||||
class PlayOneShotAnimKit : ServerPacket
|
||||
@@ -1022,8 +1022,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt16(AnimKitID);
|
||||
}
|
||||
|
||||
public ObjectGuid Unit;
|
||||
public ushort AnimKitID;
|
||||
public ObjectGuid Unit { get; set; }
|
||||
public ushort AnimKitID { get; set; }
|
||||
}
|
||||
|
||||
class SetAIAnimKit : ServerPacket
|
||||
@@ -1036,8 +1036,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt16(AnimKitID);
|
||||
}
|
||||
|
||||
public ObjectGuid Unit;
|
||||
public ushort AnimKitID;
|
||||
public ObjectGuid Unit { get; set; }
|
||||
public ushort AnimKitID { get; set; }
|
||||
}
|
||||
|
||||
class SetMeleeAnimKit : ServerPacket
|
||||
@@ -1050,8 +1050,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt16(AnimKitID);
|
||||
}
|
||||
|
||||
public ObjectGuid Unit;
|
||||
public ushort AnimKitID;
|
||||
public ObjectGuid Unit { get; set; }
|
||||
public ushort AnimKitID { get; set; }
|
||||
}
|
||||
|
||||
class SetMovementAnimKit : ServerPacket
|
||||
@@ -1064,8 +1064,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt16(AnimKitID);
|
||||
}
|
||||
|
||||
public ObjectGuid Unit;
|
||||
public ushort AnimKitID;
|
||||
public ObjectGuid Unit { get; set; }
|
||||
public ushort AnimKitID { get; set; }
|
||||
}
|
||||
|
||||
class SetPlayHoverAnim : ServerPacket
|
||||
@@ -1079,8 +1079,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public ObjectGuid UnitGUID;
|
||||
public bool PlayHoverAnim;
|
||||
public ObjectGuid UnitGUID { get; set; }
|
||||
public bool PlayHoverAnim { get; set; }
|
||||
}
|
||||
|
||||
class TogglePvP : ClientPacket
|
||||
@@ -1099,7 +1099,7 @@ namespace Game.Network.Packets
|
||||
EnablePVP = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public bool EnablePVP;
|
||||
public bool EnablePVP { get; set; }
|
||||
}
|
||||
|
||||
class AccountHeirloomUpdate : ServerPacket
|
||||
@@ -1124,9 +1124,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(flags.Value.flags);
|
||||
}
|
||||
|
||||
public bool IsFullUpdate;
|
||||
public Dictionary<uint, HeirloomData> Heirlooms = new Dictionary<uint, HeirloomData>();
|
||||
int Unk;
|
||||
public bool IsFullUpdate { get; set; }
|
||||
public Dictionary<uint, HeirloomData> Heirlooms { get; set; } = new Dictionary<uint, HeirloomData>();
|
||||
public int Unk { get; set; }
|
||||
}
|
||||
|
||||
class MountSpecial : ClientPacket
|
||||
@@ -1145,7 +1145,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(UnitGUID);
|
||||
}
|
||||
|
||||
public ObjectGuid UnitGUID;
|
||||
public ObjectGuid UnitGUID { get; set; }
|
||||
}
|
||||
|
||||
class CrossedInebriationThreshold : ServerPacket
|
||||
@@ -1159,9 +1159,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(ItemID);
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public uint ItemID;
|
||||
public uint Threshold;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
public uint ItemID { get; set; }
|
||||
public uint Threshold { get; set; }
|
||||
}
|
||||
|
||||
class SetTaxiBenchmarkMode : ClientPacket
|
||||
@@ -1173,7 +1173,7 @@ namespace Game.Network.Packets
|
||||
Enable = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public bool Enable;
|
||||
public bool Enable { get; set; }
|
||||
}
|
||||
|
||||
class OverrideLight : ServerPacket
|
||||
@@ -1187,9 +1187,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(TransitionMilliseconds);
|
||||
}
|
||||
|
||||
public uint AreaLightID;
|
||||
public uint TransitionMilliseconds;
|
||||
public uint OverrideLightID;
|
||||
public uint AreaLightID { get; set; }
|
||||
public uint TransitionMilliseconds { get; set; }
|
||||
public uint OverrideLightID { get; set; }
|
||||
}
|
||||
|
||||
public class StartTimer : ServerPacket
|
||||
@@ -1203,9 +1203,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(TotalTime);
|
||||
}
|
||||
|
||||
public uint TimeRemaining;
|
||||
public uint TotalTime;
|
||||
public TimerType Type;
|
||||
public uint TimeRemaining { get; set; }
|
||||
public uint TotalTime { get; set; }
|
||||
public TimerType Type { get; set; }
|
||||
}
|
||||
|
||||
class DisplayGameError : ServerPacket
|
||||
@@ -1262,8 +1262,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public bool IsFullUpdate = false;
|
||||
public Dictionary<uint, MountStatusFlags> Mounts = new Dictionary<uint, MountStatusFlags>();
|
||||
public bool IsFullUpdate { get; set; } = false;
|
||||
public Dictionary<uint, MountStatusFlags> Mounts { get; set; } = new Dictionary<uint, MountStatusFlags>();
|
||||
}
|
||||
|
||||
class MountSetFavorite : ClientPacket
|
||||
@@ -1276,8 +1276,8 @@ namespace Game.Network.Packets
|
||||
IsFavorite = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public uint MountSpellID;
|
||||
public bool IsFavorite;
|
||||
public uint MountSpellID { get; set; }
|
||||
public bool IsFavorite { get; set; }
|
||||
}
|
||||
|
||||
class PvpPrestigeRankUp : ClientPacket
|
||||
@@ -1296,6 +1296,6 @@ namespace Game.Network.Packets
|
||||
SourceGuid = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid SourceGuid;
|
||||
public ObjectGuid SourceGuid { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -148,7 +148,7 @@ namespace Game.Network.Packets
|
||||
uint int168 = 0;
|
||||
data.WriteUInt32(int168);
|
||||
|
||||
/*for (public uint i = 0; i < removeMovementForcesCount; ++i)
|
||||
/*for (public uint i { get; set; } = 0; i < removeMovementForcesCount; ++i)
|
||||
{
|
||||
_worldPacket << ObjectGuid;
|
||||
}*/
|
||||
@@ -271,7 +271,7 @@ namespace Game.Network.Packets
|
||||
Status = MovementExtensions.ReadMovementInfo(_worldPacket);
|
||||
}
|
||||
|
||||
public MovementInfo Status;
|
||||
public MovementInfo Status { get; set; }
|
||||
}
|
||||
|
||||
public class MoveUpdate : ServerPacket
|
||||
@@ -283,7 +283,7 @@ namespace Game.Network.Packets
|
||||
MovementExtensions.WriteMovementInfo(_worldPacket, Status);
|
||||
}
|
||||
|
||||
public MovementInfo Status;
|
||||
public MovementInfo Status { get; set; }
|
||||
}
|
||||
|
||||
public class MonsterMove : ServerPacket
|
||||
@@ -376,9 +376,9 @@ namespace Game.Network.Packets
|
||||
SplineData.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public MovementMonsterSpline SplineData;
|
||||
public ObjectGuid MoverGUID;
|
||||
public Vector3 Pos;
|
||||
public MovementMonsterSpline SplineData { get; set; }
|
||||
public ObjectGuid MoverGUID { get; set; }
|
||||
public Vector3 Pos { get; set; }
|
||||
}
|
||||
|
||||
public class MoveSplineSetSpeed : ServerPacket
|
||||
@@ -391,8 +391,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteFloat(Speed);
|
||||
}
|
||||
|
||||
public ObjectGuid MoverGUID;
|
||||
public float Speed = 1.0f;
|
||||
public ObjectGuid MoverGUID { get; set; }
|
||||
public float Speed { get; set; } = 1.0f;
|
||||
}
|
||||
|
||||
public class MoveSetSpeed : ServerPacket
|
||||
@@ -406,9 +406,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteFloat(Speed);
|
||||
}
|
||||
|
||||
public ObjectGuid MoverGUID;
|
||||
public uint SequenceIndex = 0; // Unit movement packet index, incremented each time
|
||||
public float Speed = 1.0f;
|
||||
public ObjectGuid MoverGUID { get; set; }
|
||||
public uint SequenceIndex { get; set; } = 0; // Unit movement packet index, incremented each time
|
||||
public float Speed { get; set; } = 1.0f;
|
||||
}
|
||||
|
||||
public class MoveUpdateSpeed : ServerPacket
|
||||
@@ -421,8 +421,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteFloat(Speed);
|
||||
}
|
||||
|
||||
public MovementInfo Status;
|
||||
public float Speed = 1.0f;
|
||||
public MovementInfo Status { get; set; }
|
||||
public float Speed { get; set; } = 1.0f;
|
||||
}
|
||||
|
||||
public class MoveSplineSetFlag : ServerPacket
|
||||
@@ -434,7 +434,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(MoverGUID);
|
||||
}
|
||||
|
||||
public ObjectGuid MoverGUID;
|
||||
public ObjectGuid MoverGUID { get; set; }
|
||||
}
|
||||
|
||||
public class MoveSetFlag : ServerPacket
|
||||
@@ -447,8 +447,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(SequenceIndex);
|
||||
}
|
||||
|
||||
public ObjectGuid MoverGUID;
|
||||
public uint SequenceIndex = 0; // Unit movement packet index, incremented each time
|
||||
public ObjectGuid MoverGUID { get; set; }
|
||||
public uint SequenceIndex { get; set; } = 0; // Unit movement packet index, incremented each time
|
||||
}
|
||||
|
||||
public class TransferPending : ServerPacket
|
||||
@@ -476,9 +476,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public int MapID = -1;
|
||||
public int MapID { get; set; } = -1;
|
||||
public Optional<ShipTransferPending> Ship;
|
||||
public Optional<int> TransferSpellID;
|
||||
public Optional<int> TransferSpellID { get; set; }
|
||||
|
||||
public struct ShipTransferPending
|
||||
{
|
||||
@@ -500,10 +500,10 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public uint MapID;
|
||||
public byte Arg;
|
||||
public int MapDifficultyXConditionID;
|
||||
public TransferAbortReason TransfertAbort;
|
||||
public uint MapID { get; set; }
|
||||
public byte Arg { get; set; }
|
||||
public int MapDifficultyXConditionID { get; set; }
|
||||
public TransferAbortReason TransfertAbort { get; set; }
|
||||
}
|
||||
|
||||
public class NewWorld : ServerPacket
|
||||
@@ -518,9 +518,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteXYZ(MovementOffset);
|
||||
}
|
||||
|
||||
public uint MapID;
|
||||
public uint Reason;
|
||||
public Position Pos;
|
||||
public uint MapID { get; set; }
|
||||
public uint Reason { get; set; }
|
||||
public Position Pos { get; set; }
|
||||
public Position MovementOffset; // Adjusts all pending movement events by this offset
|
||||
}
|
||||
|
||||
@@ -559,13 +559,13 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(TransportGUID.Value);
|
||||
}
|
||||
|
||||
public Position Pos;
|
||||
public Optional<VehicleTeleport> Vehicle;
|
||||
public uint SequenceIndex;
|
||||
public ObjectGuid MoverGUID;
|
||||
public Optional<ObjectGuid> TransportGUID;
|
||||
public float Facing;
|
||||
public byte PreloadWorld;
|
||||
public Position Pos { get; set; }
|
||||
public Optional<VehicleTeleport> Vehicle { get; set; }
|
||||
public uint SequenceIndex { get; set; }
|
||||
public ObjectGuid MoverGUID { get; set; }
|
||||
public Optional<ObjectGuid> TransportGUID { get; set; }
|
||||
public float Facing { get; set; }
|
||||
public byte PreloadWorld { get; set; }
|
||||
}
|
||||
|
||||
public class MoveUpdateTeleport : ServerPacket
|
||||
@@ -619,17 +619,17 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteFloat(PitchRate.Value);
|
||||
}
|
||||
|
||||
public MovementInfo Status;
|
||||
public List<MovementForce> MovementForces = new List<MovementForce>();
|
||||
public Optional<float> SwimBackSpeed;
|
||||
public Optional<float> FlightSpeed;
|
||||
public Optional<float> SwimSpeed;
|
||||
public Optional<float> WalkSpeed;
|
||||
public Optional<float> TurnRate;
|
||||
public Optional<float> RunSpeed;
|
||||
public Optional<float> FlightBackSpeed;
|
||||
public Optional<float> RunBackSpeed;
|
||||
public Optional<float> PitchRate;
|
||||
public MovementInfo Status { get; set; }
|
||||
public List<MovementForce> MovementForces { get; set; } = new List<MovementForce>();
|
||||
public Optional<float> SwimBackSpeed { get; set; }
|
||||
public Optional<float> FlightSpeed { get; set; }
|
||||
public Optional<float> SwimSpeed { get; set; }
|
||||
public Optional<float> WalkSpeed { get; set; }
|
||||
public Optional<float> TurnRate { get; set; }
|
||||
public Optional<float> RunSpeed { get; set; }
|
||||
public Optional<float> FlightBackSpeed { get; set; }
|
||||
public Optional<float> RunBackSpeed { get; set; }
|
||||
public Optional<float> PitchRate { get; set; }
|
||||
}
|
||||
|
||||
class MoveUpdateApplyMovementForce : ServerPacket
|
||||
@@ -656,8 +656,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(TriggerGUID);
|
||||
}
|
||||
|
||||
MovementInfo movementInfo = new MovementInfo();
|
||||
ObjectGuid TriggerGUID;
|
||||
public MovementInfo movementInfo { get; set; } = new MovementInfo();
|
||||
public ObjectGuid TriggerGUID { get; set; }
|
||||
}
|
||||
|
||||
class MoveTeleportAck : ClientPacket
|
||||
@@ -671,7 +671,7 @@ namespace Game.Network.Packets
|
||||
MoveTime = _worldPacket.ReadInt32();
|
||||
}
|
||||
|
||||
public ObjectGuid MoverGUID;
|
||||
public ObjectGuid MoverGUID { get; set; }
|
||||
int AckIndex = 0;
|
||||
int MoveTime = 0;
|
||||
}
|
||||
@@ -685,7 +685,7 @@ namespace Game.Network.Packets
|
||||
Ack.Read(_worldPacket);
|
||||
}
|
||||
|
||||
public MovementAck Ack;
|
||||
public MovementAck Ack { get; set; }
|
||||
}
|
||||
|
||||
public class MovementSpeedAck : ClientPacket
|
||||
@@ -698,13 +698,13 @@ namespace Game.Network.Packets
|
||||
Speed = _worldPacket.ReadFloat();
|
||||
}
|
||||
|
||||
public MovementAck Ack;
|
||||
public float Speed;
|
||||
public MovementAck Ack { get; set; }
|
||||
public float Speed { get; set; }
|
||||
}
|
||||
|
||||
public class SetActiveMover : ClientPacket
|
||||
{
|
||||
public ObjectGuid ActiveMover;
|
||||
public ObjectGuid ActiveMover { get; set; }
|
||||
|
||||
public SetActiveMover(WorldPacket packet) : base(packet) { }
|
||||
|
||||
@@ -716,7 +716,7 @@ namespace Game.Network.Packets
|
||||
|
||||
public class MoveSetActiveMover : ServerPacket
|
||||
{
|
||||
public ObjectGuid MoverGUID;
|
||||
public ObjectGuid MoverGUID { get; set; }
|
||||
|
||||
public MoveSetActiveMover() : base(ServerOpcodes.MoveSetActiveMover) { }
|
||||
|
||||
@@ -738,10 +738,10 @@ namespace Game.Network.Packets
|
||||
Speeds.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public ObjectGuid MoverGUID;
|
||||
public Vector2 Direction;
|
||||
public ObjectGuid MoverGUID { get; set; }
|
||||
public Vector2 Direction { get; set; }
|
||||
public MoveKnockBackSpeeds Speeds;
|
||||
public uint SequenceIndex;
|
||||
public uint SequenceIndex { get; set; }
|
||||
}
|
||||
|
||||
public class MoveUpdateKnockBack : ServerPacket
|
||||
@@ -753,7 +753,7 @@ namespace Game.Network.Packets
|
||||
MovementExtensions.WriteMovementInfo(_worldPacket, Status);
|
||||
}
|
||||
|
||||
public MovementInfo Status;
|
||||
public MovementInfo Status { get; set; }
|
||||
}
|
||||
|
||||
class MoveKnockBackAck : ClientPacket
|
||||
@@ -770,7 +770,7 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public MovementAck Ack;
|
||||
public MovementAck Ack { get; set; }
|
||||
public Optional<MoveKnockBackSpeeds> Speeds;
|
||||
}
|
||||
|
||||
@@ -790,13 +790,13 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public float Scale = 1.0f;
|
||||
public ObjectGuid MoverGUID;
|
||||
public uint MountDisplayID;
|
||||
public UpdateCollisionHeightReason Reason = UpdateCollisionHeightReason.Mount;
|
||||
public uint SequenceIndex;
|
||||
public int ScaleDuration;
|
||||
public float Height = 1.0f;
|
||||
public float Scale { get; set; } = 1.0f;
|
||||
public ObjectGuid MoverGUID { get; set; }
|
||||
public uint MountDisplayID { get; set; }
|
||||
public UpdateCollisionHeightReason Reason { get; set; } = UpdateCollisionHeightReason.Mount;
|
||||
public uint SequenceIndex { get; set; }
|
||||
public int ScaleDuration { get; set; }
|
||||
public float Height { get; set; } = 1.0f;
|
||||
}
|
||||
|
||||
public class MoveUpdateCollisionHeight : ServerPacket
|
||||
@@ -810,9 +810,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteFloat(Scale);
|
||||
}
|
||||
|
||||
public MovementInfo Status;
|
||||
public float Scale = 1.0f;
|
||||
public float Height = 1.0f;
|
||||
public MovementInfo Status { get; set; }
|
||||
public float Scale { get; set; } = 1.0f;
|
||||
public float Height { get; set; } = 1.0f;
|
||||
}
|
||||
|
||||
public class MoveSetCollisionHeightAck : ClientPacket
|
||||
@@ -827,10 +827,10 @@ namespace Game.Network.Packets
|
||||
Reason = (UpdateCollisionHeightReason)_worldPacket.ReadBits<uint>(2);
|
||||
}
|
||||
|
||||
public MovementAck Data;
|
||||
public UpdateCollisionHeightReason Reason = UpdateCollisionHeightReason.Mount;
|
||||
public uint MountDisplayID;
|
||||
public float Height = 1.0f;
|
||||
public MovementAck Data { get; set; }
|
||||
public UpdateCollisionHeightReason Reason { get; set; } = UpdateCollisionHeightReason.Mount;
|
||||
public uint MountDisplayID { get; set; }
|
||||
public float Height { get; set; } = 1.0f;
|
||||
}
|
||||
|
||||
class MoveTimeSkipped : ClientPacket
|
||||
@@ -843,8 +843,8 @@ namespace Game.Network.Packets
|
||||
TimeSkipped = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public ObjectGuid MoverGUID;
|
||||
public uint TimeSkipped;
|
||||
public ObjectGuid MoverGUID { get; set; }
|
||||
public uint TimeSkipped { get; set; }
|
||||
}
|
||||
|
||||
class SummonResponse : ClientPacket
|
||||
@@ -857,8 +857,8 @@ namespace Game.Network.Packets
|
||||
Accept = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public bool Accept;
|
||||
public ObjectGuid SummonerGUID;
|
||||
public bool Accept { get; set; }
|
||||
public ObjectGuid SummonerGUID { get; set; }
|
||||
}
|
||||
|
||||
public class ControlUpdate : ServerPacket
|
||||
@@ -872,8 +872,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public bool On;
|
||||
public ObjectGuid Guid;
|
||||
public bool On { get; set; }
|
||||
public ObjectGuid Guid { get; set; }
|
||||
}
|
||||
|
||||
class MoveSplineDone : ClientPacket
|
||||
@@ -886,8 +886,8 @@ namespace Game.Network.Packets
|
||||
SplineID = _worldPacket.ReadInt32();
|
||||
}
|
||||
|
||||
public MovementInfo Status;
|
||||
public int SplineID;
|
||||
public MovementInfo Status { get; set; }
|
||||
public int SplineID { get; set; }
|
||||
}
|
||||
|
||||
class SummonRequest : ServerPacket
|
||||
@@ -904,11 +904,11 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public ObjectGuid SummonerGUID;
|
||||
public uint SummonerVirtualRealmAddress;
|
||||
public int AreaID;
|
||||
public SummonReason Reason;
|
||||
public bool SkipStartingArea;
|
||||
public ObjectGuid SummonerGUID { get; set; }
|
||||
public uint SummonerVirtualRealmAddress { get; set; }
|
||||
public int AreaID { get; set; }
|
||||
public SummonReason Reason { get; set; }
|
||||
public bool SkipStartingArea { get; set; }
|
||||
|
||||
public enum SummonReason
|
||||
{
|
||||
@@ -928,8 +928,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public uint SequenceIndex = 1;
|
||||
public uint Reason = 1;
|
||||
public uint SequenceIndex { get; set; } = 1;
|
||||
public uint Reason { get; set; } = 1;
|
||||
}
|
||||
|
||||
class SuspendTokenResponse : ClientPacket
|
||||
@@ -941,7 +941,7 @@ namespace Game.Network.Packets
|
||||
SequenceIndex = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public uint SequenceIndex;
|
||||
public uint SequenceIndex { get; set; }
|
||||
}
|
||||
|
||||
class ResumeToken : ServerPacket
|
||||
@@ -955,8 +955,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public uint SequenceIndex = 1;
|
||||
public uint Reason = 1;
|
||||
public uint SequenceIndex { get; set; } = 1;
|
||||
public uint Reason { get; set; } = 1;
|
||||
}
|
||||
|
||||
class MoveSetCompoundState : ServerPacket
|
||||
@@ -971,21 +971,21 @@ namespace Game.Network.Packets
|
||||
stateChange.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public ObjectGuid MoverGUID;
|
||||
public List<MoveStateChange> StateChanges = new List<MoveStateChange>();
|
||||
public ObjectGuid MoverGUID { get; set; }
|
||||
public List<MoveStateChange> StateChanges { get; set; } = new List<MoveStateChange>();
|
||||
|
||||
public struct CollisionHeightInfo
|
||||
{
|
||||
public float Height;
|
||||
public float Scale;
|
||||
public UpdateCollisionHeightReason Reason;
|
||||
public float Height { get; set; }
|
||||
public float Scale { get; set; }
|
||||
public UpdateCollisionHeightReason Reason { get; set; }
|
||||
}
|
||||
|
||||
public struct KnockBackInfo
|
||||
{
|
||||
public float HorzSpeed;
|
||||
public Vector2 Direction;
|
||||
public float InitVertSpeed;
|
||||
public float HorzSpeed { get; set; }
|
||||
public Vector2 Direction { get; set; }
|
||||
public float InitVertSpeed { get; set; }
|
||||
}
|
||||
|
||||
public class MoveStateChange
|
||||
@@ -1036,14 +1036,14 @@ namespace Game.Network.Packets
|
||||
MovementForce_.Value.Write(data);
|
||||
}
|
||||
|
||||
public ServerOpcodes MessageID;
|
||||
public uint SequenceIndex;
|
||||
public Optional<float> Speed;
|
||||
public Optional<KnockBackInfo> KnockBack;
|
||||
public Optional<int> VehicleRecID;
|
||||
public Optional<CollisionHeightInfo> CollisionHeight;
|
||||
public Optional<MovementForce> MovementForce_;
|
||||
public Optional<ObjectGuid> Unknown;
|
||||
public ServerOpcodes MessageID { get; set; }
|
||||
public uint SequenceIndex { get; set; }
|
||||
public Optional<float> Speed { get; set; }
|
||||
public Optional<KnockBackInfo> KnockBack { get; set; }
|
||||
public Optional<int> VehicleRecID { get; set; }
|
||||
public Optional<CollisionHeightInfo> CollisionHeight { get; set; }
|
||||
public Optional<MovementForce> MovementForce_ { get; set; }
|
||||
public Optional<ObjectGuid> Unknown { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1056,8 +1056,8 @@ namespace Game.Network.Packets
|
||||
data.WriteUInt16(Speed);
|
||||
}
|
||||
|
||||
public short Idx;
|
||||
public ushort Speed;
|
||||
public short Idx { get; set; }
|
||||
public ushort Speed { get; set; }
|
||||
}
|
||||
|
||||
public class MonsterSplineFilter
|
||||
@@ -1076,12 +1076,12 @@ namespace Game.Network.Packets
|
||||
data.FlushBits();
|
||||
}
|
||||
|
||||
public List<MonsterSplineFilterKey> FilterKeys = new List<MonsterSplineFilterKey>();
|
||||
public byte FilterFlags;
|
||||
public float BaseSpeed;
|
||||
public short StartOffset;
|
||||
public float DistToPrevFilterKey;
|
||||
public short AddedToStart;
|
||||
public List<MonsterSplineFilterKey> FilterKeys { get; set; } = new List<MonsterSplineFilterKey>();
|
||||
public byte FilterFlags { get; set; }
|
||||
public float BaseSpeed { get; set; }
|
||||
public short StartOffset { get; set; }
|
||||
public float DistToPrevFilterKey { get; set; }
|
||||
public short AddedToStart { get; set; }
|
||||
}
|
||||
|
||||
public struct MonsterSplineSpellEffectExtraData
|
||||
@@ -1094,10 +1094,10 @@ namespace Game.Network.Packets
|
||||
data.WriteUInt32(ParabolicCurveID);
|
||||
}
|
||||
|
||||
public ObjectGuid TargetGuid;
|
||||
public uint SpellVisualID;
|
||||
public uint ProgressCurveID;
|
||||
public uint ParabolicCurveID;
|
||||
public ObjectGuid TargetGuid { get; set; }
|
||||
public uint SpellVisualID { get; set; }
|
||||
public uint ProgressCurveID { get; set; }
|
||||
public uint ParabolicCurveID { get; set; }
|
||||
}
|
||||
|
||||
public class MovementSpline
|
||||
@@ -1151,23 +1151,23 @@ namespace Game.Network.Packets
|
||||
|
||||
public uint Flags; // Spline flags
|
||||
public MonsterMoveType Face; // Movement direction (see MonsterMoveType enum)
|
||||
public byte AnimTier;
|
||||
public uint TierTransStartTime;
|
||||
public int Elapsed;
|
||||
public uint MoveTime;
|
||||
public float JumpGravity;
|
||||
public uint SpecialTime;
|
||||
public List<Vector3> Points = new List<Vector3>(); // Spline path
|
||||
public byte AnimTier { get; set; }
|
||||
public uint TierTransStartTime { get; set; }
|
||||
public int Elapsed { get; set; }
|
||||
public uint MoveTime { get; set; }
|
||||
public float JumpGravity { get; set; }
|
||||
public uint SpecialTime { get; set; }
|
||||
public List<Vector3> Points { get; set; } = 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 VehicleExitVoluntary;
|
||||
public ObjectGuid TransportGUID;
|
||||
public sbyte VehicleSeat = -1;
|
||||
public List<Vector3> PackedDeltas = new List<Vector3>();
|
||||
public Optional<MonsterSplineFilter> SplineFilter;
|
||||
public byte VehicleExitVoluntary { get; set; }
|
||||
public ObjectGuid TransportGUID { get; set; }
|
||||
public sbyte VehicleSeat { get; set; } = -1;
|
||||
public List<Vector3> PackedDeltas { get; set; } = new List<Vector3>();
|
||||
public Optional<MonsterSplineFilter> SplineFilter { get; set; }
|
||||
public Optional<MonsterSplineSpellEffectExtraData> SpellEffectExtraData;
|
||||
public float FaceDirection;
|
||||
public ObjectGuid FaceGUID;
|
||||
public Vector3 FaceSpot;
|
||||
public float FaceDirection { get; set; }
|
||||
public ObjectGuid FaceGUID { get; set; }
|
||||
public Vector3 FaceSpot { get; set; }
|
||||
}
|
||||
|
||||
public class MovementMonsterSpline
|
||||
@@ -1187,18 +1187,18 @@ namespace Game.Network.Packets
|
||||
Move.Write(data);
|
||||
}
|
||||
|
||||
public uint ID;
|
||||
public Vector3 Destination;
|
||||
public bool CrzTeleport;
|
||||
public uint ID { get; set; }
|
||||
public Vector3 Destination { get; set; }
|
||||
public bool CrzTeleport { get; set; }
|
||||
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;
|
||||
public MovementSpline Move { get; set; }
|
||||
}
|
||||
|
||||
public struct VehicleTeleport
|
||||
{
|
||||
public byte VehicleSeatIndex;
|
||||
public bool VehicleExitVoluntary;
|
||||
public bool VehicleExitTeleport;
|
||||
public byte VehicleSeatIndex { get; set; }
|
||||
public bool VehicleExitVoluntary { get; set; }
|
||||
public bool VehicleExitTeleport { get; set; }
|
||||
}
|
||||
|
||||
public struct MovementForce
|
||||
@@ -1214,12 +1214,12 @@ namespace Game.Network.Packets
|
||||
data.FlushBits();
|
||||
}
|
||||
|
||||
public ObjectGuid ID;
|
||||
public Vector3 Origin;
|
||||
public Vector3 Direction;
|
||||
public uint TransportID;
|
||||
public float Magnitude;
|
||||
public byte Type;
|
||||
public ObjectGuid ID { get; set; }
|
||||
public Vector3 Origin { get; set; }
|
||||
public Vector3 Direction { get; set; }
|
||||
public uint TransportID { get; set; }
|
||||
public float Magnitude { get; set; }
|
||||
public byte Type { get; set; }
|
||||
}
|
||||
|
||||
public struct MovementAck
|
||||
@@ -1230,8 +1230,8 @@ namespace Game.Network.Packets
|
||||
AckIndex = data.ReadInt32();
|
||||
}
|
||||
|
||||
public MovementInfo Status;
|
||||
public int AckIndex;
|
||||
public MovementInfo Status { get; set; }
|
||||
public int AckIndex { get; set; }
|
||||
}
|
||||
|
||||
public struct MoveKnockBackSpeeds
|
||||
@@ -1248,7 +1248,7 @@ namespace Game.Network.Packets
|
||||
VertSpeed = data.ReadFloat();
|
||||
}
|
||||
|
||||
public float HorzSpeed;
|
||||
public float VertSpeed;
|
||||
public float HorzSpeed { get; set; }
|
||||
public float VertSpeed { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace Game.Network.Packets
|
||||
Unit = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid Unit;
|
||||
public ObjectGuid Unit { get; set; }
|
||||
}
|
||||
|
||||
public class GossipMessagePkt : ServerPacket
|
||||
@@ -86,12 +86,12 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public List<ClientGossipOptions> GossipOptions = new List<ClientGossipOptions>();
|
||||
public int FriendshipFactionID = 0;
|
||||
public ObjectGuid GossipGUID;
|
||||
public List<ClientGossipText> GossipText = new List<ClientGossipText>();
|
||||
public int TextID = 0;
|
||||
public int GossipID = 0;
|
||||
public List<ClientGossipOptions> GossipOptions { get; set; } = new List<ClientGossipOptions>();
|
||||
public int FriendshipFactionID { get; set; } = 0;
|
||||
public ObjectGuid GossipGUID { get; set; }
|
||||
public List<ClientGossipText> GossipText { get; set; } = new List<ClientGossipText>();
|
||||
public int TextID { get; set; } = 0;
|
||||
public int GossipID { get; set; } = 0;
|
||||
}
|
||||
|
||||
public class GossipSelectOption : ClientPacket
|
||||
@@ -108,10 +108,10 @@ namespace Game.Network.Packets
|
||||
PromotionCode = _worldPacket.ReadString(length);
|
||||
}
|
||||
|
||||
public ObjectGuid GossipUnit;
|
||||
public uint GossipIndex;
|
||||
public uint GossipID;
|
||||
public string PromotionCode;
|
||||
public ObjectGuid GossipUnit { get; set; }
|
||||
public uint GossipIndex { get; set; }
|
||||
public uint GossipID { get; set; }
|
||||
public string PromotionCode { get; set; }
|
||||
}
|
||||
|
||||
public class GossipComplete : ServerPacket
|
||||
@@ -135,9 +135,9 @@ namespace Game.Network.Packets
|
||||
item.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public byte Reason = 0;
|
||||
public List<VendorItemPkt> Items = new List<VendorItemPkt>();
|
||||
public ObjectGuid Vendor;
|
||||
public byte Reason { get; set; } = 0;
|
||||
public List<VendorItemPkt> Items { get; set; } = new List<VendorItemPkt>();
|
||||
public ObjectGuid Vendor { get; set; }
|
||||
}
|
||||
|
||||
public class TrainerList : ServerPacket
|
||||
@@ -170,11 +170,11 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(Greeting);
|
||||
}
|
||||
|
||||
public ObjectGuid TrainerGUID;
|
||||
public int TrainerType;
|
||||
public int TrainerID = 1;
|
||||
public List<TrainerListSpell> Spells = new List<TrainerListSpell>();
|
||||
public string Greeting;
|
||||
public ObjectGuid TrainerGUID { get; set; }
|
||||
public int TrainerType { get; set; }
|
||||
public int TrainerID { get; set; } = 1;
|
||||
public List<TrainerListSpell> Spells { get; set; } = new List<TrainerListSpell>();
|
||||
public string Greeting { get; set; }
|
||||
}
|
||||
|
||||
public class ShowBank : ServerPacket
|
||||
@@ -186,7 +186,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(Guid);
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
}
|
||||
|
||||
public class PlayerTabardVendorActivate : ServerPacket
|
||||
@@ -198,7 +198,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(Vendor);
|
||||
}
|
||||
|
||||
public ObjectGuid Vendor;
|
||||
public ObjectGuid Vendor { get; set; }
|
||||
}
|
||||
|
||||
class GossipPOI : ServerPacket
|
||||
@@ -216,10 +216,10 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(Name);
|
||||
}
|
||||
|
||||
public uint Flags;
|
||||
public Vector2 Pos;
|
||||
public uint Icon;
|
||||
public uint Importance;
|
||||
public uint Flags { get; set; }
|
||||
public Vector2 Pos { get; set; }
|
||||
public uint Icon { get; set; }
|
||||
public uint Importance { get; set; }
|
||||
public string Name;
|
||||
}
|
||||
|
||||
@@ -232,7 +232,7 @@ namespace Game.Network.Packets
|
||||
Healer = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid Healer;
|
||||
public ObjectGuid Healer { get; set; }
|
||||
}
|
||||
|
||||
public class SpiritHealerConfirm : ServerPacket
|
||||
@@ -244,7 +244,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(Unit);
|
||||
}
|
||||
|
||||
public ObjectGuid Unit;
|
||||
public ObjectGuid Unit { get; set; }
|
||||
}
|
||||
|
||||
class TrainerBuySpell : ClientPacket
|
||||
@@ -258,9 +258,9 @@ namespace Game.Network.Packets
|
||||
SpellID= _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public ObjectGuid TrainerGUID;
|
||||
public uint TrainerID;
|
||||
public uint SpellID;
|
||||
public ObjectGuid TrainerGUID { get; set; }
|
||||
public uint TrainerID { get; set; }
|
||||
public uint SpellID { get; set; }
|
||||
}
|
||||
|
||||
class TrainerBuyFailed : ServerPacket
|
||||
@@ -274,9 +274,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(TrainerFailedReason);
|
||||
}
|
||||
|
||||
public ObjectGuid TrainerGUID;
|
||||
public uint SpellID;
|
||||
public TrainerFailReason TrainerFailedReason;
|
||||
public ObjectGuid TrainerGUID { get; set; }
|
||||
public uint SpellID { get; set; }
|
||||
public TrainerFailReason TrainerFailedReason { get; set; }
|
||||
}
|
||||
|
||||
class RequestStabledPets : ClientPacket
|
||||
@@ -288,29 +288,29 @@ namespace Game.Network.Packets
|
||||
StableMaster = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid StableMaster;
|
||||
public ObjectGuid StableMaster { get; set; }
|
||||
}
|
||||
|
||||
//Structs
|
||||
public struct ClientGossipOptions
|
||||
{
|
||||
public int ClientOption;
|
||||
public byte OptionNPC;
|
||||
public byte OptionFlags;
|
||||
public int OptionCost;
|
||||
public string Text;
|
||||
public string Confirm;
|
||||
public int ClientOption { get; set; }
|
||||
public byte OptionNPC { get; set; }
|
||||
public byte OptionFlags { get; set; }
|
||||
public int OptionCost { get; set; }
|
||||
public string Text { get; set; }
|
||||
public string Confirm { get; set; }
|
||||
}
|
||||
|
||||
public class ClientGossipText
|
||||
{
|
||||
public int QuestID;
|
||||
public int QuestType;
|
||||
public int QuestLevel;
|
||||
public bool Repeatable;
|
||||
public int QuestID { get; set; }
|
||||
public int QuestType { get; set; }
|
||||
public int QuestLevel { get; set; }
|
||||
public bool Repeatable { get; set; }
|
||||
public string QuestTitle;
|
||||
public int QuestFlags;
|
||||
public int QuestFlagsEx;
|
||||
public int QuestFlags { get; set; }
|
||||
public int QuestFlagsEx { get; set; }
|
||||
}
|
||||
|
||||
public class VendorItemPkt
|
||||
@@ -330,26 +330,26 @@ namespace Game.Network.Packets
|
||||
data.FlushBits();
|
||||
}
|
||||
|
||||
public int MuID;
|
||||
public int Type;
|
||||
public ItemInstance Item = new ItemInstance();
|
||||
public int Quantity = -1;
|
||||
public ulong Price;
|
||||
public int Durability;
|
||||
public int StackCount;
|
||||
public int ExtendedCostID;
|
||||
public int PlayerConditionFailed;
|
||||
public bool DoNotFilterOnVendor;
|
||||
public int MuID { get; set; }
|
||||
public int Type { get; set; }
|
||||
public ItemInstance Item { get; set; } = new ItemInstance();
|
||||
public int Quantity { get; set; } = -1;
|
||||
public ulong Price { get; set; }
|
||||
public int Durability { get; set; }
|
||||
public int StackCount { get; set; }
|
||||
public int ExtendedCostID { get; set; }
|
||||
public int PlayerConditionFailed { get; set; }
|
||||
public bool DoNotFilterOnVendor { get; set; }
|
||||
}
|
||||
|
||||
public class TrainerListSpell
|
||||
{
|
||||
public uint SpellID;
|
||||
public uint MoneyCost;
|
||||
public uint ReqSkillLine;
|
||||
public uint ReqSkillRank;
|
||||
public uint[] ReqAbility = new uint[SharedConst.MaxTrainerspellAbilityReqs];
|
||||
public TrainerSpellState Usable;
|
||||
public byte ReqLevel;
|
||||
public uint SpellID { get; set; }
|
||||
public uint MoneyCost { get; set; }
|
||||
public uint ReqSkillLine { get; set; }
|
||||
public uint ReqSkillRank { get; set; }
|
||||
public uint[] ReqAbility { get; set; } = new uint[SharedConst.MaxTrainerspellAbilityReqs];
|
||||
public TrainerSpellState Usable { get; set; }
|
||||
public byte ReqLevel { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,11 +40,11 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(Name);
|
||||
}
|
||||
|
||||
public string Name;
|
||||
public byte Command;
|
||||
public byte Result;
|
||||
public uint ResultData;
|
||||
public ObjectGuid ResultGUID;
|
||||
public string Name { get; set; }
|
||||
public byte Command { get; set; }
|
||||
public byte Result { get; set; }
|
||||
public uint ResultData { get; set; }
|
||||
public ObjectGuid ResultGUID { get; set; }
|
||||
}
|
||||
|
||||
class PartyInviteClient : ClientPacket
|
||||
@@ -64,11 +64,11 @@ namespace Game.Network.Packets
|
||||
TargetRealm = _worldPacket.ReadString(targetRealmLen);
|
||||
}
|
||||
|
||||
public sbyte PartyIndex;
|
||||
public int ProposedRoles;
|
||||
public string TargetName;
|
||||
public string TargetRealm;
|
||||
public ObjectGuid TargetGUID;
|
||||
public sbyte PartyIndex { get; set; }
|
||||
public int ProposedRoles { get; set; }
|
||||
public string TargetName { get; set; }
|
||||
public string TargetRealm { get; set; }
|
||||
public ObjectGuid TargetGUID { get; set; }
|
||||
}
|
||||
|
||||
class PartyInvite : ServerPacket
|
||||
@@ -120,30 +120,30 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteInt32(LfgSlot);
|
||||
}
|
||||
|
||||
public bool MightCRZYou;
|
||||
public bool MustBeBNetFriend;
|
||||
public bool AllowMultipleRoles;
|
||||
public bool Unk2;
|
||||
public ushort Unk1;
|
||||
public bool MightCRZYou { get; set; }
|
||||
public bool MustBeBNetFriend { get; set; }
|
||||
public bool AllowMultipleRoles { get; set; }
|
||||
public bool Unk2 { get; set; }
|
||||
public ushort Unk1 { get; set; }
|
||||
|
||||
public bool CanAccept;
|
||||
public bool CanAccept { get; set; }
|
||||
|
||||
// Inviter
|
||||
public ObjectGuid InviterGUID;
|
||||
public ObjectGuid InviterBNetAccountId;
|
||||
public string InviterName;
|
||||
public ObjectGuid InviterGUID { get; set; }
|
||||
public ObjectGuid InviterBNetAccountId { get; set; }
|
||||
public string InviterName { get; set; }
|
||||
|
||||
// Realm
|
||||
public bool IsXRealm;
|
||||
public bool IsLocal = true;
|
||||
public uint InviterVirtualRealmAddress;
|
||||
public string InviterRealmNameActual;
|
||||
public string InviterRealmNameNormalized;
|
||||
public bool IsXRealm { get; set; }
|
||||
public bool IsLocal { get; set; } = true;
|
||||
public uint InviterVirtualRealmAddress { get; set; }
|
||||
public string InviterRealmNameActual { get; set; }
|
||||
public string InviterRealmNameNormalized { get; set; }
|
||||
|
||||
// Lfg
|
||||
public int ProposedRoles;
|
||||
public int LfgCompletedMask;
|
||||
public List<int> LfgSlots = new List<int>();
|
||||
public int ProposedRoles { get; set; }
|
||||
public int LfgCompletedMask { get; set; }
|
||||
public List<int> LfgSlots { get; set; } = new List<int>();
|
||||
}
|
||||
|
||||
class PartyInviteResponse : ClientPacket
|
||||
@@ -161,9 +161,9 @@ namespace Game.Network.Packets
|
||||
RolesDesired.Set(_worldPacket.ReadInt32());
|
||||
}
|
||||
|
||||
public sbyte PartyIndex;
|
||||
public bool Accept;
|
||||
public Optional<int> RolesDesired;
|
||||
public sbyte PartyIndex { get; set; }
|
||||
public bool Accept { get; set; }
|
||||
public Optional<int> RolesDesired { get; set; }
|
||||
}
|
||||
|
||||
class PartyUninvite : ClientPacket
|
||||
@@ -179,9 +179,9 @@ namespace Game.Network.Packets
|
||||
Reason = _worldPacket.ReadString(reasonLen);
|
||||
}
|
||||
|
||||
public sbyte PartyIndex;
|
||||
public ObjectGuid TargetGUID;
|
||||
public string Reason;
|
||||
public sbyte PartyIndex { get; set; }
|
||||
public ObjectGuid TargetGUID { get; set; }
|
||||
public string Reason { get; set; }
|
||||
}
|
||||
|
||||
class GroupDecline : ServerPacket
|
||||
@@ -198,7 +198,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(Name);
|
||||
}
|
||||
|
||||
public string Name;
|
||||
public string Name { get; set; }
|
||||
}
|
||||
|
||||
class RequestPartyMemberStats : ClientPacket
|
||||
@@ -211,8 +211,8 @@ namespace Game.Network.Packets
|
||||
TargetGUID = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public sbyte PartyIndex;
|
||||
public ObjectGuid TargetGUID;
|
||||
public sbyte PartyIndex { get; set; }
|
||||
public ObjectGuid TargetGUID { get; set; }
|
||||
}
|
||||
|
||||
class PartyMemberState : ServerPacket
|
||||
@@ -318,7 +318,7 @@ namespace Game.Network.Packets
|
||||
MemberStats.Phases.PersonalGUID = ObjectGuid.Empty;
|
||||
foreach (uint phaseId in phases)
|
||||
{
|
||||
PartyMemberPhase phase;
|
||||
PartyMemberPhase phase = new PartyMemberPhase();
|
||||
phase.Id = (ushort)phaseId;
|
||||
phase.Flags = 1;
|
||||
MemberStats.Phases.List.Add(phase);
|
||||
@@ -364,9 +364,9 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public bool ForEnemy;
|
||||
public ObjectGuid MemberGuid;
|
||||
public PartyMemberStats MemberStats = new PartyMemberStats();
|
||||
public bool ForEnemy { get; set; }
|
||||
public ObjectGuid MemberGuid { get; set; }
|
||||
public PartyMemberStats MemberStats { get; set; } = new PartyMemberStats();
|
||||
}
|
||||
|
||||
class SetPartyLeader : ClientPacket
|
||||
@@ -379,8 +379,8 @@ namespace Game.Network.Packets
|
||||
TargetGUID = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public sbyte PartyIndex;
|
||||
public ObjectGuid TargetGUID;
|
||||
public sbyte PartyIndex { get; set; }
|
||||
public ObjectGuid TargetGUID { get; set; }
|
||||
}
|
||||
|
||||
class SetRole : ClientPacket
|
||||
@@ -394,9 +394,9 @@ namespace Game.Network.Packets
|
||||
Role = _worldPacket.ReadInt32();
|
||||
}
|
||||
|
||||
public sbyte PartyIndex;
|
||||
public ObjectGuid TargetGUID;
|
||||
public int Role;
|
||||
public sbyte PartyIndex { get; set; }
|
||||
public ObjectGuid TargetGUID { get; set; }
|
||||
public int Role { get; set; }
|
||||
}
|
||||
|
||||
class RoleChangedInform : ServerPacket
|
||||
@@ -412,11 +412,11 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteInt32(NewRole);
|
||||
}
|
||||
|
||||
public sbyte PartyIndex;
|
||||
public ObjectGuid From;
|
||||
public ObjectGuid ChangedUnit;
|
||||
public int OldRole;
|
||||
public int NewRole;
|
||||
public sbyte PartyIndex { get; set; }
|
||||
public ObjectGuid From { get; set; }
|
||||
public ObjectGuid ChangedUnit { get; set; }
|
||||
public int OldRole { get; set; }
|
||||
public int NewRole { get; set; }
|
||||
}
|
||||
|
||||
class LeaveGroup : ClientPacket
|
||||
@@ -428,7 +428,7 @@ namespace Game.Network.Packets
|
||||
PartyIndex = _worldPacket.ReadInt8();
|
||||
}
|
||||
|
||||
public sbyte PartyIndex;
|
||||
public sbyte PartyIndex { get; set; }
|
||||
}
|
||||
|
||||
class GroupUninvite : ServerPacket
|
||||
@@ -457,10 +457,10 @@ namespace Game.Network.Packets
|
||||
LootThreshold = (ItemQuality)_worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public sbyte PartyIndex;
|
||||
public ObjectGuid LootMasterGUID;
|
||||
public LootMethod LootMethod;
|
||||
public ItemQuality LootThreshold;
|
||||
public sbyte PartyIndex { get; set; }
|
||||
public ObjectGuid LootMasterGUID { get; set; }
|
||||
public LootMethod LootMethod { get; set; }
|
||||
public ItemQuality LootThreshold { get; set; }
|
||||
}
|
||||
|
||||
class MinimapPingClient : ClientPacket
|
||||
@@ -474,9 +474,9 @@ namespace Game.Network.Packets
|
||||
PartyIndex = _worldPacket.ReadInt8();
|
||||
}
|
||||
|
||||
public sbyte PartyIndex;
|
||||
public float PositionX;
|
||||
public float PositionY;
|
||||
public sbyte PartyIndex { get; set; }
|
||||
public float PositionX { get; set; }
|
||||
public float PositionY { get; set; }
|
||||
}
|
||||
|
||||
class MinimapPing : ServerPacket
|
||||
@@ -490,9 +490,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteFloat(PositionY);
|
||||
}
|
||||
|
||||
public ObjectGuid Sender;
|
||||
public float PositionX;
|
||||
public float PositionY;
|
||||
public ObjectGuid Sender { get; set; }
|
||||
public float PositionX { get; set; }
|
||||
public float PositionY { get; set; }
|
||||
}
|
||||
|
||||
class UpdateRaidTarget : ClientPacket
|
||||
@@ -506,9 +506,9 @@ namespace Game.Network.Packets
|
||||
Symbol = _worldPacket.ReadInt8();
|
||||
}
|
||||
|
||||
public sbyte PartyIndex;
|
||||
public ObjectGuid Target;
|
||||
public sbyte Symbol;
|
||||
public sbyte PartyIndex { get; set; }
|
||||
public ObjectGuid Target { get; set; }
|
||||
public sbyte Symbol { get; set; }
|
||||
}
|
||||
|
||||
class SendRaidTargetUpdateSingle : ServerPacket
|
||||
@@ -523,10 +523,10 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(ChangedBy);
|
||||
}
|
||||
|
||||
public sbyte PartyIndex;
|
||||
public ObjectGuid Target;
|
||||
public ObjectGuid ChangedBy;
|
||||
public sbyte Symbol;
|
||||
public sbyte PartyIndex { get; set; }
|
||||
public ObjectGuid Target { get; set; }
|
||||
public ObjectGuid ChangedBy { get; set; }
|
||||
public sbyte Symbol { get; set; }
|
||||
}
|
||||
|
||||
class SendRaidTargetUpdateAll : ServerPacket
|
||||
@@ -546,8 +546,8 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public sbyte PartyIndex;
|
||||
public Dictionary<byte, ObjectGuid> TargetIcons = new Dictionary<byte, ObjectGuid>();
|
||||
public sbyte PartyIndex { get; set; }
|
||||
public Dictionary<byte, ObjectGuid> TargetIcons { get; set; } = new Dictionary<byte, ObjectGuid>();
|
||||
}
|
||||
|
||||
class ConvertRaid : ClientPacket
|
||||
@@ -559,7 +559,7 @@ namespace Game.Network.Packets
|
||||
Raid = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public bool Raid;
|
||||
public bool Raid { get; set; }
|
||||
}
|
||||
|
||||
class RequestPartyJoinUpdates : ClientPacket
|
||||
@@ -571,7 +571,7 @@ namespace Game.Network.Packets
|
||||
PartyIndex = _worldPacket.ReadInt8();
|
||||
}
|
||||
|
||||
public sbyte PartyIndex;
|
||||
public sbyte PartyIndex { get; set; }
|
||||
}
|
||||
|
||||
class SetAssistantLeader : ClientPacket
|
||||
@@ -585,9 +585,9 @@ namespace Game.Network.Packets
|
||||
Apply = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public ObjectGuid Target;
|
||||
public sbyte PartyIndex;
|
||||
public bool Apply;
|
||||
public ObjectGuid Target { get; set; }
|
||||
public sbyte PartyIndex { get; set; }
|
||||
public bool Apply { get; set; }
|
||||
}
|
||||
|
||||
class SetPartyAssignment : ClientPacket
|
||||
@@ -602,10 +602,10 @@ namespace Game.Network.Packets
|
||||
Set = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public byte Assignment;
|
||||
public byte PartyIndex;
|
||||
public ObjectGuid Target;
|
||||
public bool Set;
|
||||
public byte Assignment { get; set; }
|
||||
public byte PartyIndex { get; set; }
|
||||
public ObjectGuid Target { get; set; }
|
||||
public bool Set { get; set; }
|
||||
}
|
||||
|
||||
class DoReadyCheck : ClientPacket
|
||||
@@ -617,7 +617,7 @@ namespace Game.Network.Packets
|
||||
PartyIndex = _worldPacket.ReadInt8();
|
||||
}
|
||||
|
||||
public sbyte PartyIndex;
|
||||
public sbyte PartyIndex { get; set; }
|
||||
}
|
||||
|
||||
class ReadyCheckStarted : ServerPacket
|
||||
@@ -632,10 +632,10 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(Duration);
|
||||
}
|
||||
|
||||
public sbyte PartyIndex;
|
||||
public ObjectGuid PartyGUID;
|
||||
public ObjectGuid InitiatorGUID;
|
||||
public uint Duration;
|
||||
public sbyte PartyIndex { get; set; }
|
||||
public ObjectGuid PartyGUID { get; set; }
|
||||
public ObjectGuid InitiatorGUID { get; set; }
|
||||
public uint Duration { get; set; }
|
||||
}
|
||||
|
||||
class ReadyCheckResponseClient : ClientPacket
|
||||
@@ -648,8 +648,8 @@ namespace Game.Network.Packets
|
||||
IsReady = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public sbyte PartyIndex;
|
||||
public bool IsReady;
|
||||
public sbyte PartyIndex { get; set; }
|
||||
public bool IsReady { get; set; }
|
||||
}
|
||||
|
||||
class ReadyCheckResponse : ServerPacket
|
||||
@@ -665,9 +665,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public ObjectGuid PartyGUID;
|
||||
public ObjectGuid Player;
|
||||
public bool IsReady;
|
||||
public ObjectGuid PartyGUID { get; set; }
|
||||
public ObjectGuid Player { get; set; }
|
||||
public bool IsReady { get; set; }
|
||||
}
|
||||
|
||||
class ReadyCheckCompleted : ServerPacket
|
||||
@@ -680,8 +680,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(PartyGUID);
|
||||
}
|
||||
|
||||
public sbyte PartyIndex;
|
||||
public ObjectGuid PartyGUID;
|
||||
public sbyte PartyIndex { get; set; }
|
||||
public ObjectGuid PartyGUID { get; set; }
|
||||
}
|
||||
|
||||
class RequestRaidInfo : ClientPacket
|
||||
@@ -700,7 +700,7 @@ namespace Game.Network.Packets
|
||||
PassOnLoot = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public bool PassOnLoot;
|
||||
public bool PassOnLoot { get; set; }
|
||||
}
|
||||
|
||||
class InitiateRolePoll : ClientPacket
|
||||
@@ -712,7 +712,7 @@ namespace Game.Network.Packets
|
||||
PartyIndex = _worldPacket.ReadInt8();
|
||||
}
|
||||
|
||||
public sbyte PartyIndex;
|
||||
public sbyte PartyIndex { get; set; }
|
||||
}
|
||||
|
||||
class RolePollInform : ServerPacket
|
||||
@@ -725,8 +725,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(From);
|
||||
}
|
||||
|
||||
public sbyte PartyIndex;
|
||||
public ObjectGuid From;
|
||||
public sbyte PartyIndex { get; set; }
|
||||
public ObjectGuid From { get; set; }
|
||||
}
|
||||
|
||||
class GroupNewLeader : ServerPacket
|
||||
@@ -740,8 +740,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(Name);
|
||||
}
|
||||
|
||||
public sbyte PartyIndex;
|
||||
public string Name;
|
||||
public sbyte PartyIndex { get; set; }
|
||||
public string Name { get; set; }
|
||||
}
|
||||
|
||||
class PartyUpdate : ServerPacket
|
||||
@@ -776,17 +776,17 @@ namespace Game.Network.Packets
|
||||
LfgInfos.Value.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public GroupFlags PartyFlags;
|
||||
public byte PartyIndex;
|
||||
public GroupType PartyType;
|
||||
public GroupFlags PartyFlags { get; set; }
|
||||
public byte PartyIndex { get; set; }
|
||||
public GroupType PartyType { get; set; }
|
||||
|
||||
public ObjectGuid PartyGUID;
|
||||
public ObjectGuid LeaderGUID;
|
||||
public ObjectGuid PartyGUID { get; set; }
|
||||
public ObjectGuid LeaderGUID { get; set; }
|
||||
|
||||
public int MyIndex;
|
||||
public int SequenceNum;
|
||||
public int MyIndex { get; set; }
|
||||
public int SequenceNum { get; set; }
|
||||
|
||||
public List<PartyPlayerInfo> PlayerList = new List<PartyPlayerInfo>();
|
||||
public List<PartyPlayerInfo> PlayerList { get; set; } = new List<PartyPlayerInfo>();
|
||||
|
||||
public Optional<PartyLFGInfo> LfgInfos;
|
||||
public Optional<PartyLootSettings> LootSettings;
|
||||
@@ -803,8 +803,8 @@ namespace Game.Network.Packets
|
||||
EveryoneIsAssistant = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public sbyte PartyIndex;
|
||||
public bool EveryoneIsAssistant;
|
||||
public sbyte PartyIndex { get; set; }
|
||||
public bool EveryoneIsAssistant { get; set; }
|
||||
}
|
||||
|
||||
class ChangeSubGroup : ClientPacket
|
||||
@@ -818,9 +818,9 @@ namespace Game.Network.Packets
|
||||
NewSubGroup = _worldPacket.ReadUInt8();
|
||||
}
|
||||
|
||||
public ObjectGuid TargetGUID;
|
||||
public sbyte PartyIndex;
|
||||
public byte NewSubGroup;
|
||||
public ObjectGuid TargetGUID { get; set; }
|
||||
public sbyte PartyIndex { get; set; }
|
||||
public byte NewSubGroup { get; set; }
|
||||
}
|
||||
|
||||
class SwapSubGroups : ClientPacket
|
||||
@@ -834,9 +834,9 @@ namespace Game.Network.Packets
|
||||
SecondTarget = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid FirstTarget;
|
||||
public ObjectGuid SecondTarget;
|
||||
public sbyte PartyIndex;
|
||||
public ObjectGuid FirstTarget { get; set; }
|
||||
public ObjectGuid SecondTarget { get; set; }
|
||||
public sbyte PartyIndex { get; set; }
|
||||
}
|
||||
|
||||
class ClearRaidMarker : ClientPacket
|
||||
@@ -848,7 +848,7 @@ namespace Game.Network.Packets
|
||||
MarkerId = _worldPacket.ReadUInt8();
|
||||
}
|
||||
|
||||
public byte MarkerId;
|
||||
public byte MarkerId { get; set; }
|
||||
}
|
||||
|
||||
class RaidMarkersChanged : ServerPacket
|
||||
@@ -871,10 +871,10 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public sbyte PartyIndex;
|
||||
public uint ActiveMarkers;
|
||||
public sbyte PartyIndex { get; set; }
|
||||
public uint ActiveMarkers { get; set; }
|
||||
|
||||
public List<RaidMarker> RaidMarkers = new List<RaidMarker>();
|
||||
public List<RaidMarker> RaidMarkers { get; set; } = new List<RaidMarker>();
|
||||
}
|
||||
|
||||
class PartyKillLog : ServerPacket
|
||||
@@ -887,8 +887,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(Victim);
|
||||
}
|
||||
|
||||
public ObjectGuid Player;
|
||||
public ObjectGuid Victim;
|
||||
public ObjectGuid Player { get; set; }
|
||||
public ObjectGuid Victim { get; set; }
|
||||
}
|
||||
|
||||
//Structs
|
||||
@@ -900,8 +900,8 @@ namespace Game.Network.Packets
|
||||
data.WriteUInt16(Id);
|
||||
}
|
||||
|
||||
public ushort Flags;
|
||||
public ushort Id;
|
||||
public ushort Flags { get; set; }
|
||||
public ushort Id { get; set; }
|
||||
}
|
||||
|
||||
class PartyMemberPhaseStates
|
||||
@@ -916,9 +916,9 @@ namespace Game.Network.Packets
|
||||
phase.Write(data);
|
||||
}
|
||||
|
||||
public int PhaseShiftFlags;
|
||||
public ObjectGuid PersonalGUID;
|
||||
public List<PartyMemberPhase> List = new List<PartyMemberPhase>();
|
||||
public int PhaseShiftFlags { get; set; }
|
||||
public ObjectGuid PersonalGUID { get; set; }
|
||||
public List<PartyMemberPhase> List { get; set; } = new List<PartyMemberPhase>();
|
||||
}
|
||||
|
||||
class PartyMemberAuraStates
|
||||
@@ -933,10 +933,10 @@ namespace Game.Network.Packets
|
||||
data.WriteFloat(points);
|
||||
}
|
||||
|
||||
public int SpellID;
|
||||
public byte Flags;
|
||||
public uint ActiveFlags;
|
||||
public List<float> Points = new List<float>();
|
||||
public int SpellID { get; set; }
|
||||
public byte Flags { get; set; }
|
||||
public uint ActiveFlags { get; set; }
|
||||
public List<float> Points { get; set; } = new List<float>();
|
||||
}
|
||||
|
||||
class PartyMemberPetStats
|
||||
@@ -955,14 +955,14 @@ namespace Game.Network.Packets
|
||||
data.WriteString(Name);
|
||||
}
|
||||
|
||||
public ObjectGuid GUID;
|
||||
public string Name;
|
||||
public short ModelId;
|
||||
public ObjectGuid GUID { get; set; }
|
||||
public string Name { get; set; }
|
||||
public short ModelId { get; set; }
|
||||
|
||||
public int CurrentHealth;
|
||||
public int MaxHealth;
|
||||
public int CurrentHealth { get; set; }
|
||||
public int MaxHealth { get; set; }
|
||||
|
||||
public List<PartyMemberAuraStates> Auras = new List<PartyMemberAuraStates>();
|
||||
public List<PartyMemberAuraStates> Auras { get; set; } = new List<PartyMemberAuraStates>();
|
||||
}
|
||||
|
||||
class PartyMemberStats
|
||||
@@ -1002,32 +1002,32 @@ namespace Game.Network.Packets
|
||||
PetStats.Value.Write(data);
|
||||
}
|
||||
|
||||
public ushort Level;
|
||||
public GroupMemberOnlineStatus Status;
|
||||
public ushort Level { get; set; }
|
||||
public GroupMemberOnlineStatus Status { get; set; }
|
||||
|
||||
public int CurrentHealth;
|
||||
public int MaxHealth;
|
||||
public int CurrentHealth { get; set; }
|
||||
public int MaxHealth { get; set; }
|
||||
|
||||
public byte PowerType;
|
||||
public ushort CurrentPower;
|
||||
public ushort MaxPower;
|
||||
public byte PowerType { get; set; }
|
||||
public ushort CurrentPower { get; set; }
|
||||
public ushort MaxPower { get; set; }
|
||||
|
||||
public ushort ZoneID;
|
||||
public short PositionX;
|
||||
public short PositionY;
|
||||
public short PositionZ;
|
||||
public ushort ZoneID { get; set; }
|
||||
public short PositionX { get; set; }
|
||||
public short PositionY { get; set; }
|
||||
public short PositionZ { get; set; }
|
||||
|
||||
public int VehicleSeat;
|
||||
public int VehicleSeat { get; set; }
|
||||
|
||||
public PartyMemberPhaseStates Phases = new PartyMemberPhaseStates();
|
||||
public List<PartyMemberAuraStates> Auras = new List<PartyMemberAuraStates>();
|
||||
public PartyMemberPhaseStates Phases { get; set; } = new PartyMemberPhaseStates();
|
||||
public List<PartyMemberAuraStates> Auras { get; set; } = new List<PartyMemberAuraStates>();
|
||||
public Optional<PartyMemberPetStats> PetStats;
|
||||
|
||||
public ushort PowerDisplayID;
|
||||
public ushort SpecID;
|
||||
public ushort WmoGroupID;
|
||||
public uint WmoDoodadPlacementID;
|
||||
public sbyte[] PartyType = new sbyte[2];
|
||||
public ushort PowerDisplayID { get; set; }
|
||||
public ushort SpecID { get; set; }
|
||||
public ushort WmoGroupID { get; set; }
|
||||
public uint WmoDoodadPlacementID { get; set; }
|
||||
public sbyte[] PartyType { get; set; } = new sbyte[2];
|
||||
}
|
||||
|
||||
struct PartyPlayerInfo
|
||||
@@ -1045,15 +1045,15 @@ namespace Game.Network.Packets
|
||||
data.WriteString(Name);
|
||||
}
|
||||
|
||||
public ObjectGuid GUID;
|
||||
public string Name;
|
||||
public byte Class;
|
||||
public ObjectGuid GUID { get; set; }
|
||||
public string Name { get; set; }
|
||||
public byte Class { get; set; }
|
||||
|
||||
public GroupMemberOnlineStatus Status;
|
||||
public byte Subgroup;
|
||||
public byte Flags;
|
||||
public byte RolesAssigned;
|
||||
public bool FromSocialQueue;
|
||||
public GroupMemberOnlineStatus Status { get; set; }
|
||||
public byte Subgroup { get; set; }
|
||||
public byte Flags { get; set; }
|
||||
public byte RolesAssigned { get; set; }
|
||||
public bool FromSocialQueue { get; set; }
|
||||
}
|
||||
|
||||
struct PartyLFGInfo
|
||||
@@ -1073,16 +1073,16 @@ namespace Game.Network.Packets
|
||||
data.FlushBits();
|
||||
}
|
||||
|
||||
public byte MyFlags;
|
||||
public uint Slot;
|
||||
public byte BootCount;
|
||||
public uint MyRandomSlot;
|
||||
public bool Aborted;
|
||||
public byte MyPartialClear;
|
||||
public float MyGearDiff;
|
||||
public byte MyStrangerCount;
|
||||
public byte MyKickVoteCount;
|
||||
public bool MyFirstReward;
|
||||
public byte MyFlags { get; set; }
|
||||
public uint Slot { get; set; }
|
||||
public byte BootCount { get; set; }
|
||||
public uint MyRandomSlot { get; set; }
|
||||
public bool Aborted { get; set; }
|
||||
public byte MyPartialClear { get; set; }
|
||||
public float MyGearDiff { get; set; }
|
||||
public byte MyStrangerCount { get; set; }
|
||||
public byte MyKickVoteCount { get; set; }
|
||||
public bool MyFirstReward { get; set; }
|
||||
}
|
||||
|
||||
struct PartyLootSettings
|
||||
@@ -1094,9 +1094,9 @@ namespace Game.Network.Packets
|
||||
data.WriteUInt8(Threshold);
|
||||
}
|
||||
|
||||
public byte Method;
|
||||
public ObjectGuid LootMaster;
|
||||
public byte Threshold;
|
||||
public byte Method { get; set; }
|
||||
public ObjectGuid LootMaster { get; set; }
|
||||
public byte Threshold { get; set; }
|
||||
}
|
||||
|
||||
struct PartyDifficultySettings
|
||||
@@ -1108,8 +1108,8 @@ namespace Game.Network.Packets
|
||||
data.WriteUInt32(LegacyRaidDifficultyID);
|
||||
}
|
||||
|
||||
public uint DungeonDifficultyID;
|
||||
public uint RaidDifficultyID;
|
||||
public uint LegacyRaidDifficultyID;
|
||||
public uint DungeonDifficultyID { get; set; }
|
||||
public uint RaidDifficultyID { get; set; }
|
||||
public uint LegacyRaidDifficultyID { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace Game.Network.Packets
|
||||
CritterGUID = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid CritterGUID;
|
||||
public ObjectGuid CritterGUID { get; set; }
|
||||
}
|
||||
|
||||
class RequestPetInfo : ClientPacket
|
||||
@@ -50,7 +50,7 @@ namespace Game.Network.Packets
|
||||
Pet = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid Pet;
|
||||
public ObjectGuid Pet { get; set; }
|
||||
}
|
||||
|
||||
class PetStopAttack : ClientPacket
|
||||
@@ -62,7 +62,7 @@ namespace Game.Network.Packets
|
||||
PetGUID = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid PetGUID;
|
||||
public ObjectGuid PetGUID { get; set; }
|
||||
}
|
||||
|
||||
class PetSpellAutocast : ClientPacket
|
||||
@@ -76,9 +76,9 @@ namespace Game.Network.Packets
|
||||
AutocastEnabled = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public ObjectGuid PetGUID;
|
||||
public uint SpellID;
|
||||
public bool AutocastEnabled;
|
||||
public ObjectGuid PetGUID { get; set; }
|
||||
public uint SpellID { get; set; }
|
||||
public bool AutocastEnabled { get; set; }
|
||||
}
|
||||
|
||||
public class PetSpells : ServerPacket
|
||||
@@ -122,19 +122,19 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public ObjectGuid PetGUID;
|
||||
public ushort CreatureFamily;
|
||||
public ushort Specialization;
|
||||
public uint TimeLimit;
|
||||
public ReactStates ReactState;
|
||||
public CommandStates CommandState;
|
||||
public byte Flag;
|
||||
public ObjectGuid PetGUID { get; set; }
|
||||
public ushort CreatureFamily { get; set; }
|
||||
public ushort Specialization { get; set; }
|
||||
public uint TimeLimit { get; set; }
|
||||
public ReactStates ReactState { get; set; }
|
||||
public CommandStates CommandState { get; set; }
|
||||
public byte Flag { get; set; }
|
||||
|
||||
public uint[] ActionButtons = new uint[10];
|
||||
public uint[] ActionButtons { get; set; } = new uint[10];
|
||||
|
||||
public List<uint> Actions = new List<uint>();
|
||||
public List<PetSpellCooldown> Cooldowns = new List<PetSpellCooldown>();
|
||||
public List<PetSpellHistory> SpellHistory = new List<PetSpellHistory>();
|
||||
public List<uint> Actions { get; set; } = new List<uint>();
|
||||
public List<PetSpellCooldown> Cooldowns { get; set; } = new List<PetSpellCooldown>();
|
||||
public List<PetSpellHistory> SpellHistory { get; set; } = new List<PetSpellHistory>();
|
||||
}
|
||||
|
||||
class PetStableList : ServerPacket
|
||||
@@ -160,8 +160,8 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public ObjectGuid StableMaster;
|
||||
public List<PetStableInfo> Pets = new List<PetStableInfo>();
|
||||
public ObjectGuid StableMaster { get; set; }
|
||||
public List<PetStableInfo> Pets { get; set; } = new List<PetStableInfo>();
|
||||
}
|
||||
|
||||
class PetLearnedSpells : ServerPacket
|
||||
@@ -175,7 +175,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(spell);
|
||||
}
|
||||
|
||||
public List<uint> Spells = new List<uint>();
|
||||
public List<uint> Spells { get; set; } = new List<uint>();
|
||||
}
|
||||
|
||||
class PetUnlearnedSpells : ServerPacket
|
||||
@@ -189,7 +189,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(spell);
|
||||
}
|
||||
|
||||
public List<uint> Spells = new List<uint>();
|
||||
public List<uint> Spells { get; set; } = new List<uint>();
|
||||
}
|
||||
|
||||
class PetNameInvalid : ServerPacket
|
||||
@@ -222,7 +222,7 @@ namespace Game.Network.Packets
|
||||
}
|
||||
|
||||
public PetRenameData RenameData;
|
||||
public PetNameInvalidReason Result;
|
||||
public PetNameInvalidReason Result { get; set; }
|
||||
}
|
||||
|
||||
class PetRename : ClientPacket
|
||||
@@ -268,10 +268,10 @@ namespace Game.Network.Packets
|
||||
ActionPosition = _worldPacket.ReadVector3();
|
||||
}
|
||||
|
||||
public ObjectGuid PetGUID;
|
||||
public uint Action;
|
||||
public ObjectGuid TargetGUID;
|
||||
public Vector3 ActionPosition;
|
||||
public ObjectGuid PetGUID { get; set; }
|
||||
public uint Action { get; set; }
|
||||
public ObjectGuid TargetGUID { get; set; }
|
||||
public Vector3 ActionPosition { get; set; }
|
||||
}
|
||||
|
||||
class PetSetAction : ClientPacket
|
||||
@@ -286,9 +286,9 @@ namespace Game.Network.Packets
|
||||
Action = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public ObjectGuid PetGUID;
|
||||
public uint Index;
|
||||
public uint Action;
|
||||
public ObjectGuid PetGUID { get; set; }
|
||||
public uint Index { get; set; }
|
||||
public uint Action { get; set; }
|
||||
}
|
||||
|
||||
class PetActionSound : ServerPacket
|
||||
@@ -301,8 +301,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(Action);
|
||||
}
|
||||
|
||||
public ObjectGuid UnitGUID;
|
||||
public PetTalk Action;
|
||||
public ObjectGuid UnitGUID { get; set; }
|
||||
public PetTalk Action { get; set; }
|
||||
}
|
||||
|
||||
class PetActionFeedback : ServerPacket
|
||||
@@ -315,8 +315,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt8(Response);
|
||||
}
|
||||
|
||||
public uint SpellID;
|
||||
public ActionFeedback Response;
|
||||
public uint SpellID { get; set; }
|
||||
public ActionFeedback Response { get; set; }
|
||||
}
|
||||
|
||||
class PetCancelAura : ClientPacket
|
||||
@@ -329,8 +329,8 @@ namespace Game.Network.Packets
|
||||
SpellID = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public ObjectGuid PetGUID;
|
||||
public uint SpellID;
|
||||
public ObjectGuid PetGUID { get; set; }
|
||||
public uint SpellID { get; set; }
|
||||
}
|
||||
|
||||
|
||||
@@ -346,7 +346,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt8(Result);
|
||||
}
|
||||
|
||||
public byte Result;
|
||||
public byte Result { get; set; }
|
||||
}
|
||||
|
||||
class SetPetSpecialization : ServerPacket
|
||||
@@ -358,44 +358,44 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt16(SpecID);
|
||||
}
|
||||
|
||||
public ushort SpecID;
|
||||
public ushort SpecID { get; set; }
|
||||
}
|
||||
|
||||
//Structs
|
||||
public class PetSpellCooldown
|
||||
{
|
||||
public uint SpellID;
|
||||
public uint Duration;
|
||||
public uint CategoryDuration;
|
||||
public float ModRate = 1.0f;
|
||||
public ushort Category;
|
||||
public uint SpellID { get; set; }
|
||||
public uint Duration { get; set; }
|
||||
public uint CategoryDuration { get; set; }
|
||||
public float ModRate { get; set; } = 1.0f;
|
||||
public ushort Category { get; set; }
|
||||
}
|
||||
|
||||
public class PetSpellHistory
|
||||
{
|
||||
public uint CategoryID;
|
||||
public uint RecoveryTime;
|
||||
public float ChargeModRate = 1.0f;
|
||||
public sbyte ConsumedCharges;
|
||||
public uint CategoryID { get; set; }
|
||||
public uint RecoveryTime { get; set; }
|
||||
public float ChargeModRate { get; set; } = 1.0f;
|
||||
public sbyte ConsumedCharges { get; set; }
|
||||
}
|
||||
|
||||
struct PetStableInfo
|
||||
{
|
||||
public uint PetSlot;
|
||||
public uint PetNumber;
|
||||
public uint CreatureID;
|
||||
public uint DisplayID;
|
||||
public uint ExperienceLevel;
|
||||
public PetStableinfo PetFlags;
|
||||
public string PetName;
|
||||
public uint PetSlot { get; set; }
|
||||
public uint PetNumber { get; set; }
|
||||
public uint CreatureID { get; set; }
|
||||
public uint DisplayID { get; set; }
|
||||
public uint ExperienceLevel { get; set; }
|
||||
public PetStableinfo PetFlags { get; set; }
|
||||
public string PetName { get; set; }
|
||||
}
|
||||
|
||||
struct PetRenameData
|
||||
{
|
||||
public ObjectGuid PetGUID;
|
||||
public int PetNumber;
|
||||
public string NewName;
|
||||
public bool HasDeclinedNames;
|
||||
public DeclinedName DeclinedNames;
|
||||
public ObjectGuid PetGUID { get; set; }
|
||||
public int PetNumber { get; set; }
|
||||
public string NewName { get; set; }
|
||||
public bool HasDeclinedNames { get; set; }
|
||||
public DeclinedName DeclinedNames { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,8 +32,8 @@ namespace Game.Network.Packets
|
||||
ItemGUID = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid ItemGUID;
|
||||
public uint PetitionID = 0;
|
||||
public ObjectGuid ItemGUID { get; set; }
|
||||
public uint PetitionID { get; set; } = 0;
|
||||
}
|
||||
|
||||
public class QueryPetitionResponse : ServerPacket
|
||||
@@ -50,9 +50,9 @@ namespace Game.Network.Packets
|
||||
Info.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public uint PetitionID = 0;
|
||||
public bool Allow = false;
|
||||
public PetitionInfo Info;
|
||||
public uint PetitionID { get; set; } = 0;
|
||||
public bool Allow { get; set; } = false;
|
||||
public PetitionInfo Info { get; set; }
|
||||
}
|
||||
|
||||
public class PetitionShowList : ClientPacket
|
||||
@@ -64,7 +64,7 @@ namespace Game.Network.Packets
|
||||
PetitionUnit = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid PetitionUnit;
|
||||
public ObjectGuid PetitionUnit { get; set; }
|
||||
}
|
||||
|
||||
public class ServerPetitionShowList : ServerPacket
|
||||
@@ -77,8 +77,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(Price);
|
||||
}
|
||||
|
||||
public ObjectGuid Unit;
|
||||
public uint Price = 0;
|
||||
public ObjectGuid Unit { get; set; }
|
||||
public uint Price { get; set; } = 0;
|
||||
}
|
||||
|
||||
public class PetitionBuy : ClientPacket
|
||||
@@ -93,8 +93,8 @@ namespace Game.Network.Packets
|
||||
Title = _worldPacket.ReadString(titleLen);
|
||||
}
|
||||
|
||||
public ObjectGuid Unit;
|
||||
public string Title;
|
||||
public ObjectGuid Unit { get; set; }
|
||||
public string Title { get; set; }
|
||||
}
|
||||
|
||||
public class PetitionShowSignatures : ClientPacket
|
||||
@@ -106,7 +106,7 @@ namespace Game.Network.Packets
|
||||
Item = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid Item;
|
||||
public ObjectGuid Item { get; set; }
|
||||
}
|
||||
|
||||
public class ServerPetitionShowSignatures : ServerPacket
|
||||
@@ -131,16 +131,16 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public ObjectGuid Item;
|
||||
public ObjectGuid Owner;
|
||||
public ObjectGuid OwnerAccountID;
|
||||
public int PetitionID = 0;
|
||||
public List<PetitionSignature> Signatures;
|
||||
public ObjectGuid Item { get; set; }
|
||||
public ObjectGuid Owner { get; set; }
|
||||
public ObjectGuid OwnerAccountID { get; set; }
|
||||
public int PetitionID { get; set; } = 0;
|
||||
public List<PetitionSignature> Signatures { get; set; }
|
||||
|
||||
public struct PetitionSignature
|
||||
{
|
||||
public ObjectGuid Signer;
|
||||
public int Choice;
|
||||
public ObjectGuid Signer { get; set; }
|
||||
public int Choice { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -154,8 +154,8 @@ namespace Game.Network.Packets
|
||||
Choice = _worldPacket.ReadUInt8();
|
||||
}
|
||||
|
||||
public ObjectGuid PetitionGUID;
|
||||
public byte Choice = 0;
|
||||
public ObjectGuid PetitionGUID { get; set; }
|
||||
public byte Choice { get; set; } = 0;
|
||||
}
|
||||
|
||||
public class PetitionSignResults : ServerPacket
|
||||
@@ -171,9 +171,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public ObjectGuid Item;
|
||||
public ObjectGuid Player;
|
||||
public PetitionSigns Error = 0;
|
||||
public ObjectGuid Item { get; set; }
|
||||
public ObjectGuid Player { get; set; }
|
||||
public PetitionSigns Error { get; set; } = 0;
|
||||
}
|
||||
|
||||
public class PetitionAlreadySigned : ServerPacket
|
||||
@@ -185,7 +185,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(SignerGUID);
|
||||
}
|
||||
|
||||
public ObjectGuid SignerGUID;
|
||||
public ObjectGuid SignerGUID { get; set; }
|
||||
}
|
||||
|
||||
public class DeclinePetition : ClientPacket
|
||||
@@ -197,7 +197,7 @@ namespace Game.Network.Packets
|
||||
PetitionGUID = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid PetitionGUID;
|
||||
public ObjectGuid PetitionGUID { get; set; }
|
||||
}
|
||||
|
||||
public class TurnInPetition : ClientPacket
|
||||
@@ -209,7 +209,7 @@ namespace Game.Network.Packets
|
||||
Item = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid Item;
|
||||
public ObjectGuid Item { get; set; }
|
||||
}
|
||||
|
||||
public class TurnInPetitionResult : ServerPacket
|
||||
@@ -222,7 +222,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public PetitionTurns Result = 0; // PetitionError
|
||||
public PetitionTurns Result { get; set; } = 0; // PetitionError
|
||||
}
|
||||
|
||||
public class OfferPetition : ClientPacket
|
||||
@@ -235,8 +235,8 @@ namespace Game.Network.Packets
|
||||
TargetPlayer = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid TargetPlayer;
|
||||
public ObjectGuid ItemGUID;
|
||||
public ObjectGuid TargetPlayer { get; set; }
|
||||
public ObjectGuid ItemGUID { get; set; }
|
||||
}
|
||||
|
||||
public class OfferPetitionError : ServerPacket
|
||||
@@ -248,7 +248,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(PlayerGUID);
|
||||
}
|
||||
|
||||
public ObjectGuid PlayerGUID;
|
||||
public ObjectGuid PlayerGUID { get; set; }
|
||||
}
|
||||
|
||||
public class PetitionRenameGuild : ClientPacket
|
||||
@@ -265,8 +265,8 @@ namespace Game.Network.Packets
|
||||
NewGuildName = _worldPacket.ReadString(nameLen);
|
||||
}
|
||||
|
||||
public ObjectGuid PetitionGuid;
|
||||
public string NewGuildName;
|
||||
public ObjectGuid PetitionGuid { get; set; }
|
||||
public string NewGuildName { get; set; }
|
||||
}
|
||||
|
||||
public class PetitionRenameGuildResponse : ServerPacket
|
||||
@@ -283,8 +283,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(NewGuildName);
|
||||
}
|
||||
|
||||
public ObjectGuid PetitionGuid;
|
||||
public string NewGuildName;
|
||||
public ObjectGuid PetitionGuid { get; set; }
|
||||
public string NewGuildName { get; set; }
|
||||
}
|
||||
|
||||
public class PetitionInfo
|
||||
@@ -323,23 +323,23 @@ namespace Game.Network.Packets
|
||||
data.WriteString(BodyText);
|
||||
}
|
||||
|
||||
public int PetitionID;
|
||||
public ObjectGuid Petitioner;
|
||||
public string Title;
|
||||
public string BodyText;
|
||||
public int MinSignatures;
|
||||
public int MaxSignatures;
|
||||
public int DeadLine;
|
||||
public int IssueDate;
|
||||
public int AllowedGuildID;
|
||||
public int AllowedClasses;
|
||||
public int AllowedRaces;
|
||||
public short AllowedGender;
|
||||
public int AllowedMinLevel;
|
||||
public int AllowedMaxLevel;
|
||||
public int NumChoices;
|
||||
public int StaticType;
|
||||
public uint Muid = 0;
|
||||
public StringArray Choicetext = new StringArray(10);
|
||||
public int PetitionID { get; set; }
|
||||
public ObjectGuid Petitioner { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string BodyText { get; set; }
|
||||
public int MinSignatures { get; set; }
|
||||
public int MaxSignatures { get; set; }
|
||||
public int DeadLine { get; set; }
|
||||
public int IssueDate { get; set; }
|
||||
public int AllowedGuildID { get; set; }
|
||||
public int AllowedClasses { get; set; }
|
||||
public int AllowedRaces { get; set; }
|
||||
public short AllowedGender { get; set; }
|
||||
public int AllowedMinLevel { get; set; }
|
||||
public int AllowedMaxLevel { get; set; }
|
||||
public int NumChoices { get; set; }
|
||||
public int StaticType { get; set; }
|
||||
public uint Muid { get; set; } = 0;
|
||||
public StringArray Choicetext { get; set; } = new StringArray(10);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace Game.Network.Packets
|
||||
Player = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid Player;
|
||||
public ObjectGuid Player { get; set; }
|
||||
}
|
||||
|
||||
public class QueryPlayerNameResponse : ServerPacket
|
||||
@@ -54,9 +54,9 @@ namespace Game.Network.Packets
|
||||
Data.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public ObjectGuid Player;
|
||||
public ObjectGuid Player { get; set; }
|
||||
public ResponseCodes Result; // 0 - full packet, != 0 - only guid
|
||||
public PlayerGuidLookupData Data;
|
||||
public PlayerGuidLookupData Data { get; set; }
|
||||
}
|
||||
|
||||
public class QueryCreature : ClientPacket
|
||||
@@ -68,7 +68,7 @@ namespace Game.Network.Packets
|
||||
CreatureID = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public uint CreatureID;
|
||||
public uint CreatureID { get; set; }
|
||||
}
|
||||
|
||||
public class QueryCreatureResponse : ServerPacket
|
||||
@@ -138,9 +138,9 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public bool Allow;
|
||||
public CreatureStats Stats;
|
||||
public uint CreatureID;
|
||||
public bool Allow { get; set; }
|
||||
public CreatureStats Stats { get; set; }
|
||||
public uint CreatureID { get; set; }
|
||||
}
|
||||
|
||||
public class QueryPageText : ClientPacket
|
||||
@@ -153,8 +153,8 @@ namespace Game.Network.Packets
|
||||
ItemGUID = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid ItemGUID;
|
||||
public uint PageTextID;
|
||||
public ObjectGuid ItemGUID { get; set; }
|
||||
public uint PageTextID { get; set; }
|
||||
}
|
||||
|
||||
public class QueryPageTextResponse : ServerPacket
|
||||
@@ -175,9 +175,9 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public uint PageTextID;
|
||||
public bool Allow;
|
||||
public List<PageTextInfo> Pages = new List<PageTextInfo>();
|
||||
public uint PageTextID { get; set; }
|
||||
public bool Allow { get; set; }
|
||||
public List<PageTextInfo> Pages { get; set; } = new List<PageTextInfo>();
|
||||
|
||||
public struct PageTextInfo
|
||||
{
|
||||
@@ -193,10 +193,10 @@ namespace Game.Network.Packets
|
||||
data.WriteString(Text);
|
||||
}
|
||||
|
||||
public uint ID;
|
||||
public uint NextPageID;
|
||||
public int PlayerConditionID;
|
||||
public byte Flags;
|
||||
public uint ID { get; set; }
|
||||
public uint NextPageID { get; set; }
|
||||
public int PlayerConditionID { get; set; }
|
||||
public byte Flags { get; set; }
|
||||
public string Text;
|
||||
}
|
||||
}
|
||||
@@ -211,8 +211,8 @@ namespace Game.Network.Packets
|
||||
Guid = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public uint TextID;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
public uint TextID { get; set; }
|
||||
}
|
||||
|
||||
public class QueryNPCTextResponse : ServerPacket
|
||||
@@ -235,10 +235,10 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public uint TextID;
|
||||
public bool Allow;
|
||||
public float[] Probabilities = new float[SharedConst.MaxNpcTextOptions];
|
||||
public uint[] BroadcastTextID = new uint[SharedConst.MaxNpcTextOptions];
|
||||
public uint TextID { get; set; }
|
||||
public bool Allow { get; set; }
|
||||
public float[] Probabilities { get; set; } = new float[SharedConst.MaxNpcTextOptions];
|
||||
public uint[] BroadcastTextID { get; set; } = new uint[SharedConst.MaxNpcTextOptions];
|
||||
}
|
||||
|
||||
public class QueryGameObject : ClientPacket
|
||||
@@ -251,8 +251,8 @@ namespace Game.Network.Packets
|
||||
Guid = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public uint GameObjectID;
|
||||
public ObjectGuid Guid;
|
||||
public uint GameObjectID { get; set; }
|
||||
public ObjectGuid Guid { get; set; }
|
||||
}
|
||||
|
||||
public class QueryGameObjectResponse : ServerPacket
|
||||
@@ -294,9 +294,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteBytes(statsData);
|
||||
}
|
||||
|
||||
public uint GameObjectID;
|
||||
public bool Allow;
|
||||
public GameObjectStats Stats;
|
||||
public uint GameObjectID { get; set; }
|
||||
public bool Allow { get; set; }
|
||||
public GameObjectStats Stats { get; set; }
|
||||
}
|
||||
|
||||
public class QueryCorpseLocationFromClient : ClientPacket
|
||||
@@ -308,7 +308,7 @@ namespace Game.Network.Packets
|
||||
Player = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid Player;
|
||||
public ObjectGuid Player { get; set; }
|
||||
}
|
||||
|
||||
public class CorpseLocation : ServerPacket
|
||||
@@ -327,12 +327,12 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(Transport);
|
||||
}
|
||||
|
||||
public ObjectGuid Player;
|
||||
public ObjectGuid Transport;
|
||||
public Vector3 Position;
|
||||
public int ActualMapID;
|
||||
public int MapID;
|
||||
public bool Valid;
|
||||
public ObjectGuid Player { get; set; }
|
||||
public ObjectGuid Transport { get; set; }
|
||||
public Vector3 Position { get; set; }
|
||||
public int ActualMapID { get; set; }
|
||||
public int MapID { get; set; }
|
||||
public bool Valid { get; set; }
|
||||
}
|
||||
|
||||
public class QueryCorpseTransport : ClientPacket
|
||||
@@ -345,8 +345,8 @@ namespace Game.Network.Packets
|
||||
Transport = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid Player;
|
||||
public ObjectGuid Transport;
|
||||
public ObjectGuid Player { get; set; }
|
||||
public ObjectGuid Transport { get; set; }
|
||||
}
|
||||
|
||||
public class CorpseTransportQuery : ServerPacket
|
||||
@@ -360,9 +360,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteFloat(Facing);
|
||||
}
|
||||
|
||||
public ObjectGuid Player;
|
||||
public Vector3 Position;
|
||||
public float Facing;
|
||||
public ObjectGuid Player { get; set; }
|
||||
public Vector3 Position { get; set; }
|
||||
public float Facing { get; set; }
|
||||
}
|
||||
|
||||
public class QueryTime : ClientPacket
|
||||
@@ -381,7 +381,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteInt32(CurrentTime);
|
||||
}
|
||||
|
||||
public long CurrentTime;
|
||||
public long CurrentTime { get; set; }
|
||||
}
|
||||
|
||||
public class QuestPOIQuery : ClientPacket
|
||||
@@ -396,8 +396,8 @@ namespace Game.Network.Packets
|
||||
MissingQuestPOIs[i] = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public int MissingQuestCount;
|
||||
public uint[] MissingQuestPOIs = new uint[50];
|
||||
public int MissingQuestCount { get; set; }
|
||||
public uint[] MissingQuestPOIs { get; set; } = new uint[50];
|
||||
}
|
||||
|
||||
public class QuestPOIQueryResponse : ServerPacket
|
||||
@@ -440,7 +440,7 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public List<QuestPOIData> QuestPOIDataStats = new List<QuestPOIData>();
|
||||
public List<QuestPOIData> QuestPOIDataStats { get; set; } = new List<QuestPOIData>();
|
||||
}
|
||||
|
||||
class QueryQuestCompletionNPCs : ClientPacket
|
||||
@@ -456,7 +456,7 @@ namespace Game.Network.Packets
|
||||
QuestCompletionNPCs[i] = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public uint[] QuestCompletionNPCs;
|
||||
public uint[] QuestCompletionNPCs { get; set; }
|
||||
}
|
||||
|
||||
class QuestCompletionNPCResponse : ServerPacket
|
||||
@@ -476,7 +476,7 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public List<QuestCompletionNPC> QuestCompletionNPCs = new List<QuestCompletionNPC>();
|
||||
public List<QuestCompletionNPC> QuestCompletionNPCs { get; set; } = new List<QuestCompletionNPC>();
|
||||
}
|
||||
|
||||
class QueryPetName : ClientPacket
|
||||
@@ -488,7 +488,7 @@ namespace Game.Network.Packets
|
||||
UnitGUID = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid UnitGUID;
|
||||
public ObjectGuid UnitGUID { get; set; }
|
||||
}
|
||||
|
||||
class QueryPetNameResponse : ServerPacket
|
||||
@@ -518,13 +518,13 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public ObjectGuid UnitGUID;
|
||||
public bool Allow;
|
||||
public ObjectGuid UnitGUID { get; set; }
|
||||
public bool Allow { get; set; }
|
||||
|
||||
public bool HasDeclined;
|
||||
public DeclinedName DeclinedNames = new DeclinedName();
|
||||
public uint Timestamp;
|
||||
public string Name = "";
|
||||
public bool HasDeclined { get; set; }
|
||||
public DeclinedName DeclinedNames { get; set; } = new DeclinedName();
|
||||
public uint Timestamp { get; set; }
|
||||
public string Name { get; set; } = "";
|
||||
}
|
||||
|
||||
class ItemTextQuery : ClientPacket
|
||||
@@ -536,7 +536,7 @@ namespace Game.Network.Packets
|
||||
Id = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid Id;
|
||||
public ObjectGuid Id { get; set; }
|
||||
}
|
||||
|
||||
class QueryItemTextResponse : ServerPacket
|
||||
@@ -553,9 +553,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(Id);
|
||||
}
|
||||
|
||||
public ObjectGuid Id;
|
||||
public bool Valid;
|
||||
public string Text;
|
||||
public ObjectGuid Id { get; set; }
|
||||
public bool Valid { get; set; }
|
||||
public string Text { get; set; }
|
||||
}
|
||||
|
||||
class QueryRealmName : ClientPacket
|
||||
@@ -567,7 +567,7 @@ namespace Game.Network.Packets
|
||||
VirtualRealmAddress = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public uint VirtualRealmAddress;
|
||||
public uint VirtualRealmAddress { get; set; }
|
||||
}
|
||||
|
||||
class RealmQueryResponse : ServerPacket
|
||||
@@ -582,8 +582,8 @@ namespace Game.Network.Packets
|
||||
NameInfo.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public uint VirtualRealmAddress;
|
||||
public byte LookupState;
|
||||
public uint VirtualRealmAddress { get; set; }
|
||||
public byte LookupState { get; set; }
|
||||
public VirtualRealmNameInfo NameInfo;
|
||||
}
|
||||
|
||||
@@ -603,8 +603,8 @@ namespace Game.Network.Packets
|
||||
data.WriteUInt32(NativeRealmAddress.Value);
|
||||
}
|
||||
|
||||
public Optional<uint> VirtualRealmAddress = new Optional<uint>(); // current 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 Optional<uint> VirtualRealmAddress { get; set; } = 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 class PlayerGuidLookupData
|
||||
@@ -675,17 +675,17 @@ namespace Game.Network.Packets
|
||||
data.WriteString(Name);
|
||||
}
|
||||
|
||||
public bool IsDeleted;
|
||||
public ObjectGuid AccountID;
|
||||
public ObjectGuid BnetAccountID;
|
||||
public ObjectGuid GuidActual;
|
||||
public string Name = "";
|
||||
public uint VirtualRealmAddress;
|
||||
public Race RaceID = Race.None;
|
||||
public Gender Sex = Gender.None;
|
||||
public Class ClassID = Class.None;
|
||||
public byte Level;
|
||||
public DeclinedName DeclinedNames = new DeclinedName();
|
||||
public bool IsDeleted { get; set; }
|
||||
public ObjectGuid AccountID { get; set; }
|
||||
public ObjectGuid BnetAccountID { get; set; }
|
||||
public ObjectGuid GuidActual { get; set; }
|
||||
public string Name { get; set; } = "";
|
||||
public uint VirtualRealmAddress { get; set; }
|
||||
public Race RaceID { get; set; } = Race.None;
|
||||
public Gender Sex { get; set; } = Gender.None;
|
||||
public Class ClassID { get; set; } = Class.None;
|
||||
public byte Level { get; set; }
|
||||
public DeclinedName DeclinedNames { get; set; } = new DeclinedName();
|
||||
}
|
||||
|
||||
public class CreatureStats
|
||||
@@ -693,42 +693,42 @@ namespace Game.Network.Packets
|
||||
public string Title = "";
|
||||
public string TitleAlt = "";
|
||||
public string CursorName = "";
|
||||
public int CreatureType;
|
||||
public int CreatureFamily;
|
||||
public int Classification;
|
||||
public float HpMulti;
|
||||
public float EnergyMulti;
|
||||
public bool Leader;
|
||||
public List<uint> QuestItems = new List<uint>();
|
||||
public uint CreatureMovementInfoID;
|
||||
public int HealthScalingExpansion;
|
||||
public uint RequiredExpansion;
|
||||
public uint VignetteID;
|
||||
public uint[] Flags = new uint[2];
|
||||
public uint[] ProxyCreatureID = new uint[SharedConst.MaxCreatureKillCredit];
|
||||
public uint[] CreatureDisplayID = new uint[SharedConst.MaxCreatureModelIds];
|
||||
public StringArray Name = new StringArray(SharedConst.MaxCreatureNames);
|
||||
public StringArray NameAlt = new StringArray(SharedConst.MaxCreatureNames);
|
||||
public int CreatureType { get; set; }
|
||||
public int CreatureFamily { get; set; }
|
||||
public int Classification { get; set; }
|
||||
public float HpMulti { get; set; }
|
||||
public float EnergyMulti { get; set; }
|
||||
public bool Leader { get; set; }
|
||||
public List<uint> QuestItems { get; set; } = new List<uint>();
|
||||
public uint CreatureMovementInfoID { get; set; }
|
||||
public int HealthScalingExpansion { get; set; }
|
||||
public uint RequiredExpansion { get; set; }
|
||||
public uint VignetteID { get; set; }
|
||||
public uint[] Flags { get; set; } = new uint[2];
|
||||
public uint[] ProxyCreatureID { get; set; } = new uint[SharedConst.MaxCreatureKillCredit];
|
||||
public uint[] CreatureDisplayID { get; set; } = new uint[SharedConst.MaxCreatureModelIds];
|
||||
public StringArray Name { get; set; } = new StringArray(SharedConst.MaxCreatureNames);
|
||||
public StringArray NameAlt { get; set; } = new StringArray(SharedConst.MaxCreatureNames);
|
||||
}
|
||||
|
||||
public struct DBQueryRecord
|
||||
{
|
||||
public ObjectGuid GUID;
|
||||
public uint RecordID;
|
||||
public ObjectGuid GUID { get; set; }
|
||||
public uint RecordID { get; set; }
|
||||
}
|
||||
|
||||
public class GameObjectStats
|
||||
{
|
||||
public string[] Name = new string[4];
|
||||
public string[] Name { get; set; } = new string[4];
|
||||
public string IconName;
|
||||
public string CastBarCaption;
|
||||
public string UnkString;
|
||||
public uint Type;
|
||||
public uint DisplayID;
|
||||
public int[] Data = new int[33];
|
||||
public float Size;
|
||||
public List<int> QuestItems = new List<int>();
|
||||
public uint RequiredLevel;
|
||||
public uint Type { get; set; }
|
||||
public uint DisplayID { get; set; }
|
||||
public int[] Data { get; set; } = new int[33];
|
||||
public float Size { get; set; }
|
||||
public List<int> QuestItems { get; set; } = new List<int>();
|
||||
public uint RequiredLevel { get; set; }
|
||||
}
|
||||
|
||||
public struct QuestPOIBlobPoint
|
||||
@@ -739,36 +739,36 @@ namespace Game.Network.Packets
|
||||
Y = y;
|
||||
}
|
||||
|
||||
public int X;
|
||||
public int Y;
|
||||
public int X { get; set; }
|
||||
public int Y { get; set; }
|
||||
}
|
||||
|
||||
public class QuestPOIBlobData
|
||||
{
|
||||
public int BlobIndex;
|
||||
public int ObjectiveIndex;
|
||||
public int QuestObjectiveID;
|
||||
public int QuestObjectID;
|
||||
public int MapID;
|
||||
public int WorldMapAreaID;
|
||||
public int Floor;
|
||||
public int Priority;
|
||||
public int Flags;
|
||||
public int WorldEffectID;
|
||||
public int PlayerConditionID;
|
||||
public int UnkWoD1;
|
||||
public List<QuestPOIBlobPoint> QuestPOIBlobPointStats = new List<QuestPOIBlobPoint>();
|
||||
public int BlobIndex { get; set; }
|
||||
public int ObjectiveIndex { get; set; }
|
||||
public int QuestObjectiveID { get; set; }
|
||||
public int QuestObjectID { get; set; }
|
||||
public int MapID { get; set; }
|
||||
public int WorldMapAreaID { get; set; }
|
||||
public int Floor { get; set; }
|
||||
public int Priority { get; set; }
|
||||
public int Flags { get; set; }
|
||||
public int WorldEffectID { get; set; }
|
||||
public int PlayerConditionID { get; set; }
|
||||
public int UnkWoD1 { get; set; }
|
||||
public List<QuestPOIBlobPoint> QuestPOIBlobPointStats { get; set; } = new List<QuestPOIBlobPoint>();
|
||||
}
|
||||
|
||||
public class QuestPOIData
|
||||
{
|
||||
public uint QuestID;
|
||||
public List<QuestPOIBlobData> QuestPOIBlobDataStats = new List<QuestPOIBlobData>();
|
||||
public uint QuestID { get; set; }
|
||||
public List<QuestPOIBlobData> QuestPOIBlobDataStats { get; set; } = new List<QuestPOIBlobData>();
|
||||
}
|
||||
|
||||
class QuestCompletionNPC
|
||||
{
|
||||
public uint QuestID;
|
||||
public List<uint> NPCs = new List<uint>();
|
||||
public uint QuestID { get; set; }
|
||||
public List<uint> NPCs { get; set; } = new List<uint>();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace Game.Network.Packets
|
||||
QuestGiverGUID = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid QuestGiverGUID;
|
||||
public ObjectGuid QuestGiverGUID { get; set; }
|
||||
}
|
||||
|
||||
public class QuestGiverStatusMultipleQuery : ClientPacket
|
||||
@@ -53,7 +53,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(QuestGiver.Status);
|
||||
}
|
||||
|
||||
public QuestGiverInfo QuestGiver;
|
||||
public QuestGiverInfo QuestGiver { get; set; }
|
||||
}
|
||||
|
||||
public class QuestGiverStatusMultiple : ServerPacket
|
||||
@@ -70,7 +70,7 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public List<QuestGiverInfo> QuestGiver = new List<QuestGiverInfo>();
|
||||
public List<QuestGiverInfo> QuestGiver { get; set; } = new List<QuestGiverInfo>();
|
||||
}
|
||||
|
||||
public class QuestGiverHello : ClientPacket
|
||||
@@ -82,7 +82,7 @@ namespace Game.Network.Packets
|
||||
QuestGiverGUID = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid QuestGiverGUID;
|
||||
public ObjectGuid QuestGiverGUID { get; set; }
|
||||
}
|
||||
|
||||
public class QueryQuestInfo : ClientPacket
|
||||
@@ -95,8 +95,8 @@ namespace Game.Network.Packets
|
||||
QuestGiver = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid QuestGiver;
|
||||
public uint QuestID;
|
||||
public ObjectGuid QuestGiver { get; set; }
|
||||
public uint QuestID { get; set; }
|
||||
}
|
||||
|
||||
public class QueryQuestInfoResponse : ServerPacket
|
||||
@@ -240,9 +240,9 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public bool Allow;
|
||||
public QuestInfo Info = new QuestInfo();
|
||||
public uint QuestID;
|
||||
public bool Allow { get; set; }
|
||||
public QuestInfo Info { get; set; } = new QuestInfo();
|
||||
public uint QuestID { get; set; }
|
||||
}
|
||||
|
||||
public class QuestUpdateAddCredit : ServerPacket
|
||||
@@ -259,12 +259,12 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt8(ObjectiveType);
|
||||
}
|
||||
|
||||
public ObjectGuid VictimGUID;
|
||||
public int ObjectID;
|
||||
public uint QuestID;
|
||||
public ushort Count;
|
||||
public ushort Required;
|
||||
public byte ObjectiveType;
|
||||
public ObjectGuid VictimGUID { get; set; }
|
||||
public int ObjectID { get; set; }
|
||||
public uint QuestID { get; set; }
|
||||
public ushort Count { get; set; }
|
||||
public ushort Required { get; set; }
|
||||
public byte ObjectiveType { get; set; }
|
||||
}
|
||||
|
||||
class QuestUpdateAddCreditSimple : ServerPacket
|
||||
@@ -278,9 +278,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt8(ObjectiveType);
|
||||
}
|
||||
|
||||
public uint QuestID;
|
||||
public int ObjectID;
|
||||
public QuestObjectiveType ObjectiveType;
|
||||
public uint QuestID { get; set; }
|
||||
public int ObjectID { get; set; }
|
||||
public QuestObjectiveType ObjectiveType { get; set; }
|
||||
}
|
||||
|
||||
class QuestUpdateAddPvPCredit : ServerPacket
|
||||
@@ -293,8 +293,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt16(Count);
|
||||
}
|
||||
|
||||
public uint QuestID;
|
||||
public ushort Count;
|
||||
public uint QuestID { get; set; }
|
||||
public ushort Count { get; set; }
|
||||
}
|
||||
|
||||
public class QuestGiverOfferRewardMessage : ServerPacket
|
||||
@@ -323,16 +323,16 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(PortraitTurnInName);
|
||||
}
|
||||
|
||||
public uint PortraitTurnIn;
|
||||
public uint PortraitGiver;
|
||||
public uint PortraitTurnIn { get; set; }
|
||||
public uint PortraitGiver { get; set; }
|
||||
public string QuestTitle = "";
|
||||
public string RewardText = "";
|
||||
public string PortraitGiverText = "";
|
||||
public string PortraitGiverName = "";
|
||||
public string PortraitTurnInText = "";
|
||||
public string PortraitTurnInName = "";
|
||||
public QuestGiverOfferReward QuestData;
|
||||
public uint QuestPackageID;
|
||||
public QuestGiverOfferReward QuestData { get; set; }
|
||||
public uint QuestPackageID { get; set; }
|
||||
}
|
||||
|
||||
public class QuestGiverChooseReward : ClientPacket
|
||||
@@ -346,9 +346,9 @@ namespace Game.Network.Packets
|
||||
ItemChoiceID = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public ObjectGuid QuestGiverGUID;
|
||||
public uint QuestID;
|
||||
public uint ItemChoiceID;
|
||||
public ObjectGuid QuestGiverGUID { get; set; }
|
||||
public uint QuestID { get; set; }
|
||||
public uint ItemChoiceID { get; set; }
|
||||
}
|
||||
|
||||
public class QuestGiverQuestComplete : ServerPacket
|
||||
@@ -371,16 +371,16 @@ namespace Game.Network.Packets
|
||||
ItemReward.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public uint QuestID;
|
||||
public uint XPReward;
|
||||
public long MoneyReward;
|
||||
public uint SkillLineIDReward;
|
||||
public uint NumSkillUpsReward;
|
||||
public bool UseQuestReward;
|
||||
public bool LaunchGossip;
|
||||
public bool LaunchQuest;
|
||||
public bool HideChatMessage;
|
||||
public ItemInstance ItemReward = new ItemInstance();
|
||||
public uint QuestID { get; set; }
|
||||
public uint XPReward { get; set; }
|
||||
public long MoneyReward { get; set; }
|
||||
public uint SkillLineIDReward { get; set; }
|
||||
public uint NumSkillUpsReward { get; set; }
|
||||
public bool UseQuestReward { get; set; }
|
||||
public bool LaunchGossip { get; set; }
|
||||
public bool LaunchQuest { get; set; }
|
||||
public bool HideChatMessage { get; set; }
|
||||
public ItemInstance ItemReward { get; set; } = new ItemInstance();
|
||||
}
|
||||
|
||||
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 uint QuestID;
|
||||
public uint QuestID { get; set; }
|
||||
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);
|
||||
}
|
||||
|
||||
public ObjectGuid QuestGiverGUID;
|
||||
public ObjectGuid InformUnit;
|
||||
public uint QuestID;
|
||||
public int QuestPackageID;
|
||||
public uint[] QuestFlags = new uint[2];
|
||||
public uint SuggestedPartyMembers;
|
||||
public QuestRewards Rewards = new QuestRewards();
|
||||
public List<QuestObjectiveSimple> Objectives = new List<QuestObjectiveSimple>();
|
||||
public List<QuestDescEmote> DescEmotes = new List<QuestDescEmote>();
|
||||
public List<uint> LearnSpells = new List<uint>();
|
||||
public uint PortraitTurnIn;
|
||||
public uint PortraitGiver;
|
||||
public int QuestStartItemID;
|
||||
public ObjectGuid QuestGiverGUID { get; set; }
|
||||
public ObjectGuid InformUnit { get; set; }
|
||||
public uint QuestID { get; set; }
|
||||
public int QuestPackageID { get; set; }
|
||||
public uint[] QuestFlags { get; set; } = new uint[2];
|
||||
public uint SuggestedPartyMembers { get; set; }
|
||||
public QuestRewards Rewards { get; set; } = new QuestRewards();
|
||||
public List<QuestObjectiveSimple> Objectives { get; set; } = new List<QuestObjectiveSimple>();
|
||||
public List<QuestDescEmote> DescEmotes { get; set; } = new List<QuestDescEmote>();
|
||||
public List<uint> LearnSpells { get; set; } = new List<uint>();
|
||||
public uint PortraitTurnIn { get; set; }
|
||||
public uint PortraitGiver { get; set; }
|
||||
public int QuestStartItemID { get; set; }
|
||||
public string PortraitGiverText = "";
|
||||
public string PortraitGiverName = "";
|
||||
public string PortraitTurnInText = "";
|
||||
@@ -479,9 +479,9 @@ namespace Game.Network.Packets
|
||||
public string QuestTitle = "";
|
||||
public string LogDescription = "";
|
||||
public string DescriptionText = "";
|
||||
public bool DisplayPopup;
|
||||
public bool StartCheat;
|
||||
public bool AutoLaunched;
|
||||
public bool DisplayPopup { get; set; }
|
||||
public bool StartCheat { get; set; }
|
||||
public bool AutoLaunched { get; set; }
|
||||
}
|
||||
|
||||
public class QuestGiverRequestItems : ServerPacket
|
||||
@@ -525,18 +525,18 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(CompletionText);
|
||||
}
|
||||
|
||||
public ObjectGuid QuestGiverGUID;
|
||||
public uint QuestGiverCreatureID;
|
||||
public uint QuestID;
|
||||
public uint CompEmoteDelay;
|
||||
public uint CompEmoteType;
|
||||
public bool AutoLaunched;
|
||||
public uint SuggestPartyMembers;
|
||||
public int MoneyToGet;
|
||||
public List<QuestObjectiveCollect> Collect = new List<QuestObjectiveCollect>();
|
||||
public List<QuestCurrency> Currency = new List<QuestCurrency>();
|
||||
public int StatusFlags;
|
||||
public uint[] QuestFlags = new uint[2];
|
||||
public ObjectGuid QuestGiverGUID { get; set; }
|
||||
public uint QuestGiverCreatureID { get; set; }
|
||||
public uint QuestID { get; set; }
|
||||
public uint CompEmoteDelay { get; set; }
|
||||
public uint CompEmoteType { get; set; }
|
||||
public bool AutoLaunched { get; set; }
|
||||
public uint SuggestPartyMembers { get; set; }
|
||||
public int MoneyToGet { get; set; }
|
||||
public List<QuestObjectiveCollect> Collect { get; set; } = new List<QuestObjectiveCollect>();
|
||||
public List<QuestCurrency> Currency { get; set; } = new List<QuestCurrency>();
|
||||
public int StatusFlags { get; set; }
|
||||
public uint[] QuestFlags { get; set; } = new uint[2];
|
||||
public string QuestTitle = "";
|
||||
public string CompletionText = "";
|
||||
}
|
||||
@@ -551,8 +551,8 @@ namespace Game.Network.Packets
|
||||
QuestID = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public ObjectGuid QuestGiverGUID;
|
||||
public uint QuestID;
|
||||
public ObjectGuid QuestGiverGUID { get; set; }
|
||||
public uint QuestID { get; set; }
|
||||
}
|
||||
|
||||
public class QuestGiverQueryQuest : ClientPacket
|
||||
@@ -566,16 +566,16 @@ namespace Game.Network.Packets
|
||||
RespondToGiver = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public ObjectGuid QuestGiverGUID;
|
||||
public uint QuestID;
|
||||
public bool RespondToGiver;
|
||||
public ObjectGuid QuestGiverGUID { get; set; }
|
||||
public uint QuestID { get; set; }
|
||||
public bool RespondToGiver { get; set; }
|
||||
}
|
||||
|
||||
public class QuestGiverAcceptQuest : ClientPacket
|
||||
{
|
||||
public ObjectGuid QuestGiverGUID;
|
||||
public uint QuestID;
|
||||
public bool StartCheat;
|
||||
public ObjectGuid QuestGiverGUID { get; set; }
|
||||
public uint QuestID { get; set; }
|
||||
public bool StartCheat { get; set; }
|
||||
|
||||
public QuestGiverAcceptQuest(WorldPacket packet) : base(packet) { }
|
||||
|
||||
@@ -596,7 +596,7 @@ namespace Game.Network.Packets
|
||||
Entry = _worldPacket.ReadUInt8();
|
||||
}
|
||||
|
||||
public byte Entry;
|
||||
public byte Entry { get; set; }
|
||||
}
|
||||
|
||||
public class QuestGiverQuestListMessage : ServerPacket
|
||||
@@ -630,11 +630,11 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(Greeting);
|
||||
}
|
||||
|
||||
public ObjectGuid QuestGiverGUID;
|
||||
public uint GreetEmoteDelay;
|
||||
public uint GreetEmoteType;
|
||||
public List<GossipText> QuestDataText = new List<GossipText>();
|
||||
public string Greeting = "";
|
||||
public ObjectGuid QuestGiverGUID { get; set; }
|
||||
public uint GreetEmoteDelay { get; set; }
|
||||
public uint GreetEmoteType { get; set; }
|
||||
public List<GossipText> QuestDataText { get; set; } = new List<GossipText>();
|
||||
public string Greeting { get; set; } = "";
|
||||
}
|
||||
|
||||
class QuestUpdateComplete : ServerPacket
|
||||
@@ -646,7 +646,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(QuestID);
|
||||
}
|
||||
|
||||
public uint QuestID;
|
||||
public uint QuestID { get; set; }
|
||||
}
|
||||
|
||||
class QuestConfirmAcceptResponse : ServerPacket
|
||||
@@ -662,8 +662,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(QuestTitle);
|
||||
}
|
||||
|
||||
public ObjectGuid InitiatedBy;
|
||||
public uint QuestID;
|
||||
public ObjectGuid InitiatedBy { get; set; }
|
||||
public uint QuestID { get; set; }
|
||||
public string QuestTitle;
|
||||
}
|
||||
|
||||
@@ -676,7 +676,7 @@ namespace Game.Network.Packets
|
||||
QuestID = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public uint QuestID;
|
||||
public uint QuestID { get; set; }
|
||||
}
|
||||
|
||||
class QuestPushResultResponse : ServerPacket
|
||||
@@ -689,8 +689,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt8(Result);
|
||||
}
|
||||
|
||||
public ObjectGuid SenderGUID;
|
||||
public QuestPushReason Result;
|
||||
public ObjectGuid SenderGUID { get; set; }
|
||||
public QuestPushReason Result { get; set; }
|
||||
}
|
||||
|
||||
class QuestPushResult : ClientPacket
|
||||
@@ -704,9 +704,9 @@ namespace Game.Network.Packets
|
||||
Result = (QuestPushReason)_worldPacket.ReadUInt8();
|
||||
}
|
||||
|
||||
public ObjectGuid SenderGUID;
|
||||
public uint QuestID;
|
||||
public QuestPushReason Result;
|
||||
public ObjectGuid SenderGUID { get; set; }
|
||||
public uint QuestID { get; set; }
|
||||
public QuestPushReason Result { get; set; }
|
||||
}
|
||||
|
||||
class QuestGiverInvalidQuest : ServerPacket
|
||||
@@ -725,10 +725,10 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(ReasonText);
|
||||
}
|
||||
|
||||
public QuestFailedReasons Reason;
|
||||
public int ContributionRewardID;
|
||||
public bool SendErrorMessage;
|
||||
public string ReasonText = "";
|
||||
public QuestFailedReasons Reason { get; set; }
|
||||
public int ContributionRewardID { get; set; }
|
||||
public bool SendErrorMessage { get; set; }
|
||||
public string ReasonText { get; set; } = "";
|
||||
}
|
||||
|
||||
class QuestUpdateFailedTimer : ServerPacket
|
||||
@@ -740,7 +740,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(QuestID);
|
||||
}
|
||||
|
||||
public uint QuestID;
|
||||
public uint QuestID { get; set; }
|
||||
}
|
||||
|
||||
class QuestGiverQuestFailed : ServerPacket
|
||||
@@ -753,8 +753,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(Reason);
|
||||
}
|
||||
|
||||
public uint QuestID;
|
||||
public InventoryResult Reason;
|
||||
public uint QuestID { get; set; }
|
||||
public InventoryResult Reason { get; set; }
|
||||
}
|
||||
|
||||
class PushQuestToParty : ClientPacket
|
||||
@@ -766,7 +766,7 @@ namespace Game.Network.Packets
|
||||
QuestID = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public uint QuestID;
|
||||
public uint QuestID { get; set; }
|
||||
}
|
||||
|
||||
class DailyQuestsReset : ServerPacket
|
||||
@@ -778,7 +778,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteInt32(Count);
|
||||
}
|
||||
|
||||
public int Count;
|
||||
public int Count { get; set; }
|
||||
}
|
||||
|
||||
class QuestLogFull : ServerPacket
|
||||
@@ -826,15 +826,15 @@ namespace Game.Network.Packets
|
||||
Status = status;
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public QuestGiverStatus Status = QuestGiverStatus.None;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
public QuestGiverStatus Status { get; set; } = QuestGiverStatus.None;
|
||||
}
|
||||
|
||||
public struct QuestInfoChoiceItem
|
||||
{
|
||||
public uint ItemID;
|
||||
public uint Quantity;
|
||||
public uint DisplayID;
|
||||
public uint ItemID { get; set; }
|
||||
public uint Quantity { get; set; }
|
||||
public uint DisplayID { get; set; }
|
||||
}
|
||||
|
||||
public class QuestInfo
|
||||
@@ -852,76 +852,76 @@ namespace Game.Network.Packets
|
||||
QuestCompletionLog = "";
|
||||
}
|
||||
|
||||
public uint QuestID;
|
||||
public uint QuestID { get; set; }
|
||||
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 uint QuestPackageID;
|
||||
public int QuestMinLevel;
|
||||
public uint QuestPackageID { get; set; }
|
||||
public int QuestMinLevel { get; set; }
|
||||
public int QuestSortID; // zone or sort to display in quest log
|
||||
public uint QuestInfoID;
|
||||
public uint SuggestedGroupNum;
|
||||
public uint RewardNextQuest; // client will request this quest from NPC, if not 0
|
||||
public uint QuestInfoID { get; set; }
|
||||
public uint SuggestedGroupNum { get; set; }
|
||||
public uint RewardNextQuest; // client will request this quest from NPC, if not.
|
||||
public uint RewardXPDifficulty; // used for calculating rewarded experience
|
||||
public float RewardXPMultiplier = 1.0f;
|
||||
public float RewardXPMultiplier { get; set; } = 1.0f;
|
||||
public int RewardMoney; // reward money (below max lvl)
|
||||
public uint RewardMoneyDifficulty;
|
||||
public float RewardMoneyMultiplier = 1.0f;
|
||||
public uint RewardBonusMoney;
|
||||
public uint[] RewardDisplaySpell = new uint[SharedConst.QuestRewardDisplaySpellCount]; // reward spell, this spell will be displayed (icon)
|
||||
public uint RewardSpell;
|
||||
public uint RewardHonor;
|
||||
public float RewardKillHonor;
|
||||
public int RewardArtifactXPDifficulty;
|
||||
public float RewardArtifactXPMultiplier;
|
||||
public int RewardArtifactCategoryID;
|
||||
public uint StartItem;
|
||||
public uint Flags;
|
||||
public uint FlagsEx;
|
||||
public uint POIContinent;
|
||||
public float POIx;
|
||||
public float POIy;
|
||||
public uint POIPriority;
|
||||
public int AllowableRaces = -1;
|
||||
public uint RewardMoneyDifficulty { get; set; }
|
||||
public float RewardMoneyMultiplier { get; set; } = 1.0f;
|
||||
public uint RewardBonusMoney { get; set; }
|
||||
public uint[] RewardDisplaySpell { get; set; } = new uint[SharedConst.QuestRewardDisplaySpellCount]; // reward spell, this spell will be displayed (icon)
|
||||
public uint RewardSpell { get; set; }
|
||||
public uint RewardHonor { get; set; }
|
||||
public float RewardKillHonor { get; set; }
|
||||
public int RewardArtifactXPDifficulty { get; set; }
|
||||
public float RewardArtifactXPMultiplier { get; set; }
|
||||
public int RewardArtifactCategoryID { get; set; }
|
||||
public uint StartItem { get; set; }
|
||||
public uint Flags { get; set; }
|
||||
public uint FlagsEx { get; set; }
|
||||
public uint POIContinent { get; set; }
|
||||
public float POIx { get; set; }
|
||||
public float POIy { get; set; }
|
||||
public uint POIPriority { get; set; }
|
||||
public int AllowableRaces { get; set; } = -1;
|
||||
public string LogTitle;
|
||||
public string LogDescription;
|
||||
public string QuestDescription;
|
||||
public string AreaDescription;
|
||||
public uint RewardTitle; // new 2.4.0, player gets this title (id from CharTitles)
|
||||
public int RewardArenaPoints;
|
||||
public int RewardArenaPoints { get; set; }
|
||||
public uint RewardSkillLineID; // reward skill id
|
||||
public uint RewardNumSkillUps; // reward skill points
|
||||
public uint PortraitGiver; // quest giver entry ?
|
||||
public uint PortraitTurnIn; // quest turn in entry ?
|
||||
public uint PortraitGiver; // quest giver entry.
|
||||
public uint PortraitTurnIn; // quest turn in entry.
|
||||
public string PortraitGiverText;
|
||||
public string PortraitGiverName;
|
||||
public string PortraitTurnInText;
|
||||
public string PortraitTurnInName;
|
||||
public string QuestCompletionLog;
|
||||
public uint RewardFactionFlags; // rep mask (unsure on what it does)
|
||||
public uint AcceptedSoundKitID;
|
||||
public uint CompleteSoundKitID;
|
||||
public uint AreaGroupID;
|
||||
public uint TimeAllowed;
|
||||
public int QuestRewardID;
|
||||
public int Expansion;
|
||||
public List<QuestObjective> Objectives = new List<QuestObjective>();
|
||||
public uint[] RewardItems = new uint[SharedConst.QuestRewardItemCount];
|
||||
public uint[] RewardAmount = new uint[SharedConst.QuestRewardItemCount];
|
||||
public int[] ItemDrop = new int[SharedConst.QuestItemDropCount];
|
||||
public int[] ItemDropQuantity = new int[SharedConst.QuestItemDropCount];
|
||||
public QuestInfoChoiceItem[] UnfilteredChoiceItems = new QuestInfoChoiceItem[SharedConst.QuestRewardChoicesCount];
|
||||
public uint[] RewardFactionID = new uint[SharedConst.QuestRewardReputationsCount];
|
||||
public int[] RewardFactionValue = new int[SharedConst.QuestRewardReputationsCount];
|
||||
public int[] RewardFactionOverride = new int[SharedConst.QuestRewardReputationsCount];
|
||||
public int[] RewardFactionCapIn = new int[SharedConst.QuestRewardReputationsCount];
|
||||
public uint[] RewardCurrencyID = new uint[SharedConst.QuestRewardCurrencyCount];
|
||||
public uint[] RewardCurrencyQty = new uint[SharedConst.QuestRewardCurrencyCount];
|
||||
public uint AcceptedSoundKitID { get; set; }
|
||||
public uint CompleteSoundKitID { get; set; }
|
||||
public uint AreaGroupID { get; set; }
|
||||
public uint TimeAllowed { get; set; }
|
||||
public int QuestRewardID { get; set; }
|
||||
public int Expansion { get; set; }
|
||||
public List<QuestObjective> Objectives { get; set; } = new List<QuestObjective>();
|
||||
public uint[] RewardItems { get; set; } = new uint[SharedConst.QuestRewardItemCount];
|
||||
public uint[] RewardAmount { get; set; } = new uint[SharedConst.QuestRewardItemCount];
|
||||
public int[] ItemDrop { get; set; } = new int[SharedConst.QuestItemDropCount];
|
||||
public int[] ItemDropQuantity { get; set; } = new int[SharedConst.QuestItemDropCount];
|
||||
public QuestInfoChoiceItem[] UnfilteredChoiceItems { get; set; } = new QuestInfoChoiceItem[SharedConst.QuestRewardChoicesCount];
|
||||
public uint[] RewardFactionID { get; set; } = new uint[SharedConst.QuestRewardReputationsCount];
|
||||
public int[] RewardFactionValue { get; set; } = new int[SharedConst.QuestRewardReputationsCount];
|
||||
public int[] RewardFactionOverride { get; set; } = new int[SharedConst.QuestRewardReputationsCount];
|
||||
public int[] RewardFactionCapIn { get; set; } = new int[SharedConst.QuestRewardReputationsCount];
|
||||
public uint[] RewardCurrencyID { get; set; } = new uint[SharedConst.QuestRewardCurrencyCount];
|
||||
public uint[] RewardCurrencyQty { get; set; } = new uint[SharedConst.QuestRewardCurrencyCount];
|
||||
}
|
||||
|
||||
public struct QuestChoiceItem
|
||||
{
|
||||
public uint ItemID;
|
||||
public uint Quantity;
|
||||
public uint ItemID { get; set; }
|
||||
public uint Quantity { get; set; }
|
||||
}
|
||||
|
||||
public class QuestRewards
|
||||
@@ -979,30 +979,30 @@ namespace Game.Network.Packets
|
||||
data.FlushBits();
|
||||
}
|
||||
|
||||
public uint ChoiceItemCount;
|
||||
public uint ItemCount;
|
||||
public uint Money;
|
||||
public uint XP;
|
||||
public uint ArtifactXP;
|
||||
public uint ArtifactCategoryID;
|
||||
public uint Honor;
|
||||
public uint Title;
|
||||
public uint FactionFlags;
|
||||
public int[] SpellCompletionDisplayID = new int[SharedConst.QuestRewardDisplaySpellCount];
|
||||
public uint SpellCompletionID;
|
||||
public uint SkillLineID;
|
||||
public uint NumSkillUps;
|
||||
public uint RewardID;
|
||||
public QuestChoiceItem[] ChoiceItems = new QuestChoiceItem[SharedConst.QuestRewardChoicesCount];
|
||||
public uint[] ItemID = new uint[SharedConst.QuestRewardItemCount];
|
||||
public uint[] ItemQty = new uint[SharedConst.QuestRewardItemCount];
|
||||
public uint[] FactionID = new uint[SharedConst.QuestRewardReputationsCount];
|
||||
public int[] FactionValue = new int[SharedConst.QuestRewardReputationsCount];
|
||||
public int[] FactionOverride = new int[SharedConst.QuestRewardReputationsCount];
|
||||
public int[] FactionCapIn = new int[SharedConst.QuestRewardReputationsCount];
|
||||
public uint[] CurrencyID = new uint[SharedConst.QuestRewardCurrencyCount];
|
||||
public uint[] CurrencyQty = new uint[SharedConst.QuestRewardCurrencyCount];
|
||||
public bool IsBoostSpell;
|
||||
public uint ChoiceItemCount { get; set; }
|
||||
public uint ItemCount { get; set; }
|
||||
public uint Money { get; set; }
|
||||
public uint XP { get; set; }
|
||||
public uint ArtifactXP { get; set; }
|
||||
public uint ArtifactCategoryID { get; set; }
|
||||
public uint Honor { get; set; }
|
||||
public uint Title { get; set; }
|
||||
public uint FactionFlags { get; set; }
|
||||
public int[] SpellCompletionDisplayID { get; set; } = new int[SharedConst.QuestRewardDisplaySpellCount];
|
||||
public uint SpellCompletionID { get; set; }
|
||||
public uint SkillLineID { get; set; }
|
||||
public uint NumSkillUps { get; set; }
|
||||
public uint RewardID { get; set; }
|
||||
public QuestChoiceItem[] ChoiceItems { get; set; } = new QuestChoiceItem[SharedConst.QuestRewardChoicesCount];
|
||||
public uint[] ItemID { get; set; } = new uint[SharedConst.QuestRewardItemCount];
|
||||
public uint[] ItemQty { get; set; } = new uint[SharedConst.QuestRewardItemCount];
|
||||
public uint[] FactionID { get; set; } = new uint[SharedConst.QuestRewardReputationsCount];
|
||||
public int[] FactionValue { get; set; } = new int[SharedConst.QuestRewardReputationsCount];
|
||||
public int[] FactionOverride { get; set; } = new int[SharedConst.QuestRewardReputationsCount];
|
||||
public int[] FactionCapIn { get; set; } = new int[SharedConst.QuestRewardReputationsCount];
|
||||
public uint[] CurrencyID { get; set; } = new uint[SharedConst.QuestRewardCurrencyCount];
|
||||
public uint[] CurrencyQty { get; set; } = new uint[SharedConst.QuestRewardCurrencyCount];
|
||||
public bool IsBoostSpell { get; set; }
|
||||
}
|
||||
|
||||
public struct QuestDescEmote
|
||||
@@ -1013,8 +1013,8 @@ namespace Game.Network.Packets
|
||||
Delay = delay;
|
||||
}
|
||||
|
||||
public uint Type;
|
||||
public uint Delay;
|
||||
public uint Type { get; set; }
|
||||
public uint Delay { get; set; }
|
||||
}
|
||||
|
||||
public class QuestGiverOfferReward
|
||||
@@ -1041,22 +1041,22 @@ namespace Game.Network.Packets
|
||||
Rewards.Write(data);
|
||||
}
|
||||
|
||||
public ObjectGuid QuestGiverGUID;
|
||||
public uint QuestGiverCreatureID = 0;
|
||||
public uint QuestID = 0;
|
||||
public bool AutoLaunched = false;
|
||||
public uint SuggestedPartyMembers = 0;
|
||||
public QuestRewards Rewards = new QuestRewards();
|
||||
public List<QuestDescEmote> Emotes = new List<QuestDescEmote>();
|
||||
public uint[] QuestFlags = new uint[2]; // Flags and FlagsEx
|
||||
public ObjectGuid QuestGiverGUID { get; set; }
|
||||
public uint QuestGiverCreatureID { get; set; } = 0;
|
||||
public uint QuestID { get; set; } = 0;
|
||||
public bool AutoLaunched { get; set; } = false;
|
||||
public uint SuggestedPartyMembers { get; set; } = 0;
|
||||
public QuestRewards Rewards { get; set; } = new QuestRewards();
|
||||
public List<QuestDescEmote> Emotes { get; set; } = new List<QuestDescEmote>();
|
||||
public uint[] QuestFlags { get; set; } = new uint[2]; // Flags and FlagsEx
|
||||
}
|
||||
|
||||
public struct QuestObjectiveSimple
|
||||
{
|
||||
public uint ID;
|
||||
public int ObjectID;
|
||||
public int Amount;
|
||||
public byte Type;
|
||||
public uint ID { get; set; }
|
||||
public int ObjectID { get; set; }
|
||||
public int Amount { get; set; }
|
||||
public byte Type { get; set; }
|
||||
}
|
||||
|
||||
public struct QuestObjectiveCollect
|
||||
@@ -1068,9 +1068,9 @@ namespace Game.Network.Packets
|
||||
Flags = flags;
|
||||
}
|
||||
|
||||
public uint ObjectID;
|
||||
public int Amount;
|
||||
public uint Flags;
|
||||
public uint ObjectID { get; set; }
|
||||
public int Amount { get; set; }
|
||||
public uint Flags { get; set; }
|
||||
}
|
||||
|
||||
public struct QuestCurrency
|
||||
@@ -1081,8 +1081,8 @@ namespace Game.Network.Packets
|
||||
Amount = amount;
|
||||
}
|
||||
|
||||
public uint CurrencyID;
|
||||
public int Amount;
|
||||
public uint CurrencyID { get; set; }
|
||||
public int Amount { get; set; }
|
||||
}
|
||||
|
||||
public struct GossipText
|
||||
@@ -1098,13 +1098,13 @@ namespace Game.Network.Packets
|
||||
QuestTitle = questTitle;
|
||||
}
|
||||
|
||||
public uint QuestID;
|
||||
public uint QuestType;
|
||||
public uint QuestLevel;
|
||||
public uint QuestFlags;
|
||||
public uint QuestFlagsEx;
|
||||
public bool Repeatable;
|
||||
public string QuestTitle;
|
||||
public uint QuestID { get; set; }
|
||||
public uint QuestType { get; set; }
|
||||
public uint QuestLevel { get; set; }
|
||||
public uint QuestFlags { get; set; }
|
||||
public uint QuestFlagsEx { get; set; }
|
||||
public bool Repeatable { get; set; }
|
||||
public string QuestTitle { get; set; }
|
||||
}
|
||||
|
||||
struct WorldQuestUpdateInfo
|
||||
@@ -1118,11 +1118,11 @@ namespace Game.Network.Packets
|
||||
Value = value;
|
||||
}
|
||||
|
||||
public int LastUpdate;
|
||||
public uint QuestID;
|
||||
public uint Timer;
|
||||
public int LastUpdate { get; set; }
|
||||
public uint QuestID { get; set; }
|
||||
public uint Timer { get; set; }
|
||||
// WorldState
|
||||
public int VariableID;
|
||||
public int Value;
|
||||
public int VariableID { get; set; }
|
||||
public int Value { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace Game.Network.Packets
|
||||
Granter = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid Granter;
|
||||
public ObjectGuid Granter { get; set; }
|
||||
}
|
||||
|
||||
public class GrantLevel : ClientPacket
|
||||
@@ -41,7 +41,7 @@ namespace Game.Network.Packets
|
||||
Target = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid Target;
|
||||
public ObjectGuid Target { get; set; }
|
||||
}
|
||||
|
||||
public class ProposeLevelGrant : ServerPacket
|
||||
@@ -53,7 +53,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(Sender);
|
||||
}
|
||||
|
||||
public ObjectGuid Sender;
|
||||
public ObjectGuid Sender { get; set; }
|
||||
}
|
||||
|
||||
public class ReferAFriendFailure : ServerPacket
|
||||
@@ -69,7 +69,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(Str);
|
||||
}
|
||||
|
||||
public string Str;
|
||||
public ReferAFriendError Reason;
|
||||
public string Str { get; set; }
|
||||
public ReferAFriendError Reason { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,9 +40,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public int[] FactionStandings = new int[FactionCount];
|
||||
public bool[] FactionHasBonus = new bool[FactionCount]; ///< @todo: implement faction bonus
|
||||
public FactionFlags[] FactionFlags = new FactionFlags[FactionCount];
|
||||
public int[] FactionStandings { get; set; } = new int[FactionCount];
|
||||
public bool[] FactionHasBonus { get; set; } = new bool[FactionCount]; ///< @todo: implement faction bonus
|
||||
public FactionFlags[] FactionFlags { get; set; } = new FactionFlags[FactionCount];
|
||||
}
|
||||
|
||||
class RequestForcedReactions : ClientPacket
|
||||
@@ -65,7 +65,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public List<ForcedReaction> Reactions = new List<ForcedReaction>();
|
||||
public List<ForcedReaction> Reactions { get; set; } = new List<ForcedReaction>();
|
||||
}
|
||||
|
||||
class SetFactionStanding : ServerPacket
|
||||
@@ -85,10 +85,10 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public float ReferAFriendBonus;
|
||||
public float BonusFromAchievementSystem;
|
||||
public List<FactionStandingData> Faction = new List<FactionStandingData>();
|
||||
public bool ShowVisual;
|
||||
public float ReferAFriendBonus { get; set; }
|
||||
public float BonusFromAchievementSystem { get; set; }
|
||||
public List<FactionStandingData> Faction { get; set; } = new List<FactionStandingData>();
|
||||
public bool ShowVisual { get; set; }
|
||||
}
|
||||
|
||||
struct ForcedReaction
|
||||
@@ -99,8 +99,8 @@ namespace Game.Network.Packets
|
||||
data.WriteInt32(Reaction);
|
||||
}
|
||||
|
||||
public int Faction;
|
||||
public int Reaction;
|
||||
public int Faction { get; set; }
|
||||
public int Reaction { get; set; }
|
||||
}
|
||||
|
||||
struct FactionStandingData
|
||||
|
||||
@@ -54,17 +54,17 @@ namespace Game.Network.Packets
|
||||
spell.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public int ScenarioID;
|
||||
public int CurrentStep = -1;
|
||||
public uint DifficultyID;
|
||||
public uint WaveCurrent;
|
||||
public uint WaveMax;
|
||||
public uint TimerDuration;
|
||||
public List<CriteriaProgressPkt> CriteriaProgress = new List<CriteriaProgressPkt>();
|
||||
public List<BonusObjectiveData> BonusObjectives = new List<BonusObjectiveData>();
|
||||
public List<uint> PickedSteps = new List<uint>();
|
||||
public List<ScenarioSpellUpdate> Spells = new List<ScenarioSpellUpdate>();
|
||||
public bool ScenarioComplete = false;
|
||||
public int ScenarioID { get; set; }
|
||||
public int CurrentStep { get; set; } = -1;
|
||||
public uint DifficultyID { get; set; }
|
||||
public uint WaveCurrent { get; set; }
|
||||
public uint WaveMax { get; set; }
|
||||
public uint TimerDuration { get; set; }
|
||||
public List<CriteriaProgressPkt> CriteriaProgress { get; set; } = new List<CriteriaProgressPkt>();
|
||||
public List<BonusObjectiveData> BonusObjectives { get; set; } = new List<BonusObjectiveData>();
|
||||
public List<uint> PickedSteps { get; set; } = new List<uint>();
|
||||
public List<ScenarioSpellUpdate> Spells { get; set; } = new List<ScenarioSpellUpdate>();
|
||||
public bool ScenarioComplete { get; set; } = false;
|
||||
}
|
||||
|
||||
class ScenarioProgressUpdate : ServerPacket
|
||||
@@ -91,7 +91,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(ScenarioID);
|
||||
}
|
||||
|
||||
public uint ScenarioID;
|
||||
public uint ScenarioID { get; set; }
|
||||
}
|
||||
|
||||
class ScenarioBoot : ServerPacket
|
||||
@@ -106,9 +106,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public int ScenarioID;
|
||||
public int Unk1;
|
||||
public byte Unk2;
|
||||
public int ScenarioID { get; set; }
|
||||
public int Unk1 { get; set; }
|
||||
public byte Unk2 { get; set; }
|
||||
}
|
||||
|
||||
class QueryScenarioPOI : ClientPacket
|
||||
@@ -122,7 +122,7 @@ namespace Game.Network.Packets
|
||||
MissingScenarioPOIs.Add(_worldPacket.ReadInt32());
|
||||
}
|
||||
|
||||
public Array<int> MissingScenarioPOIs = new Array<int>(35);
|
||||
public Array<int> MissingScenarioPOIs { get; set; } = new Array<int>(35);
|
||||
}
|
||||
|
||||
class ScenarioPOIs : ServerPacket
|
||||
@@ -159,7 +159,7 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public List<ScenarioPOIData> ScenarioPOIDataStats = new List<ScenarioPOIData>();
|
||||
public List<ScenarioPOIData> ScenarioPOIDataStats { get; set; } = new List<ScenarioPOIData>();
|
||||
}
|
||||
|
||||
struct BonusObjectiveData
|
||||
@@ -171,8 +171,8 @@ namespace Game.Network.Packets
|
||||
data.FlushBits();
|
||||
}
|
||||
|
||||
public int BonusObjectiveID;
|
||||
public bool ObjectiveComplete;
|
||||
public int BonusObjectiveID { get; set; }
|
||||
public bool ObjectiveComplete { get; set; }
|
||||
}
|
||||
|
||||
class ScenarioSpellUpdate
|
||||
@@ -184,13 +184,13 @@ namespace Game.Network.Packets
|
||||
data.FlushBits();
|
||||
}
|
||||
|
||||
public uint SpellID;
|
||||
public bool Usable = true;
|
||||
public uint SpellID { get; set; }
|
||||
public bool Usable { get; set; } = true;
|
||||
}
|
||||
|
||||
struct ScenarioPOIData
|
||||
{
|
||||
public int CriteriaTreeID;
|
||||
public List<ScenarioPOI> ScenarioPOIs;
|
||||
public int CriteriaTreeID { get; set; }
|
||||
public List<ScenarioPOI> ScenarioPOIs { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,12 +34,12 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteXYZO(Location);
|
||||
}
|
||||
|
||||
public uint SceneID;
|
||||
public uint PlaybackFlags;
|
||||
public uint SceneInstanceID;
|
||||
public uint SceneScriptPackageID;
|
||||
public ObjectGuid TransportGUID;
|
||||
public Position Location;
|
||||
public uint SceneID { get; set; }
|
||||
public uint PlaybackFlags { get; set; }
|
||||
public uint SceneInstanceID { get; set; }
|
||||
public uint SceneScriptPackageID { get; set; }
|
||||
public ObjectGuid TransportGUID { get; set; }
|
||||
public Position Location { get; set; }
|
||||
}
|
||||
|
||||
class CancelScene : ServerPacket
|
||||
@@ -51,7 +51,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(SceneInstanceID);
|
||||
}
|
||||
|
||||
public uint SceneInstanceID;
|
||||
public uint SceneInstanceID { get; set; }
|
||||
}
|
||||
|
||||
class SceneTriggerEvent : ClientPacket
|
||||
@@ -65,8 +65,8 @@ namespace Game.Network.Packets
|
||||
_Event = _worldPacket.ReadString(len);
|
||||
}
|
||||
|
||||
public uint SceneInstanceID;
|
||||
public string _Event;
|
||||
public uint SceneInstanceID { get; set; }
|
||||
public string _Event { get; set; }
|
||||
}
|
||||
|
||||
class ScenePlaybackComplete : ClientPacket
|
||||
@@ -78,7 +78,7 @@ namespace Game.Network.Packets
|
||||
SceneInstanceID = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public uint SceneInstanceID;
|
||||
public uint SceneInstanceID { get; set; }
|
||||
}
|
||||
|
||||
class ScenePlaybackCanceled : ClientPacket
|
||||
@@ -90,6 +90,6 @@ namespace Game.Network.Packets
|
||||
SceneInstanceID = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public uint SceneInstanceID;
|
||||
public uint SceneInstanceID { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace Game.Network.Packets
|
||||
Flags = (SocialFlag)_worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public SocialFlag Flags;
|
||||
public SocialFlag Flags { get; set; }
|
||||
}
|
||||
|
||||
public class ContactList : ServerPacket
|
||||
@@ -49,8 +49,8 @@ namespace Game.Network.Packets
|
||||
Contacts.ForEach(p => p.Write(_worldPacket));
|
||||
}
|
||||
|
||||
public List<ContactInfo> Contacts;
|
||||
public SocialFlag Flags;
|
||||
public List<ContactInfo> Contacts { get; set; }
|
||||
public SocialFlag Flags { get; set; }
|
||||
}
|
||||
|
||||
public class FriendStatusPkt : ServerPacket
|
||||
@@ -85,15 +85,15 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(Notes);
|
||||
}
|
||||
|
||||
public uint VirtualRealmAddress;
|
||||
public string Notes;
|
||||
public Class ClassID = Class.None;
|
||||
public FriendStatus Status;
|
||||
public ObjectGuid Guid;
|
||||
public ObjectGuid WowAccountGuid;
|
||||
public uint Level;
|
||||
public uint AreaID;
|
||||
public FriendsResult FriendResult;
|
||||
public uint VirtualRealmAddress { get; set; }
|
||||
public string Notes { get; set; }
|
||||
public Class ClassID { get; set; } = Class.None;
|
||||
public FriendStatus Status { get; set; }
|
||||
public ObjectGuid Guid { get; set; }
|
||||
public ObjectGuid WowAccountGuid { get; set; }
|
||||
public uint Level { get; set; }
|
||||
public uint AreaID { get; set; }
|
||||
public FriendsResult FriendResult { get; set; }
|
||||
}
|
||||
|
||||
public class AddFriend : ClientPacket
|
||||
@@ -108,7 +108,7 @@ namespace Game.Network.Packets
|
||||
Notes = _worldPacket.ReadString(noteslength);
|
||||
}
|
||||
|
||||
public string Notes;
|
||||
public string Notes { get; set; }
|
||||
public string Name;
|
||||
}
|
||||
|
||||
@@ -121,7 +121,7 @@ namespace Game.Network.Packets
|
||||
Player.Read(_worldPacket);
|
||||
}
|
||||
|
||||
public QualifiedGUID Player;
|
||||
public QualifiedGUID Player { get; set; }
|
||||
}
|
||||
|
||||
public class SetContactNotes : ClientPacket
|
||||
@@ -134,8 +134,8 @@ namespace Game.Network.Packets
|
||||
Notes = _worldPacket.ReadString(_worldPacket.ReadBits<uint>(10));
|
||||
}
|
||||
|
||||
public QualifiedGUID Player;
|
||||
public string Notes;
|
||||
public QualifiedGUID Player { get; set; }
|
||||
public string Notes { get; set; }
|
||||
}
|
||||
|
||||
public class AddIgnore : ClientPacket
|
||||
@@ -159,7 +159,7 @@ namespace Game.Network.Packets
|
||||
Player.Read(_worldPacket);
|
||||
}
|
||||
|
||||
public QualifiedGUID Player;
|
||||
public QualifiedGUID Player { get; set; }
|
||||
}
|
||||
|
||||
//Structs
|
||||
@@ -215,7 +215,7 @@ namespace Game.Network.Packets
|
||||
Guid = data.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public uint VirtualRealmAddress;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
public uint VirtualRealmAddress { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,8 +35,8 @@ namespace Game.Network.Packets
|
||||
CasterGUID = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid CasterGUID;
|
||||
public uint SpellID;
|
||||
public ObjectGuid CasterGUID { get; set; }
|
||||
public uint SpellID { get; set; }
|
||||
}
|
||||
|
||||
class CancelAutoRepeatSpell : ClientPacket
|
||||
@@ -81,7 +81,7 @@ namespace Game.Network.Packets
|
||||
|
||||
public class SpellCategoryCooldown : ServerPacket
|
||||
{
|
||||
public List<CategoryCooldownInfo> CategoryCooldowns = new List<CategoryCooldownInfo>();
|
||||
public List<CategoryCooldownInfo> CategoryCooldowns { get; set; } = new List<CategoryCooldownInfo>();
|
||||
|
||||
public SpellCategoryCooldown() : base(ServerOpcodes.CategoryCooldown, ConnectionType.Instance) { }
|
||||
|
||||
@@ -104,8 +104,8 @@ namespace Game.Network.Packets
|
||||
ModCooldown = cooldown;
|
||||
}
|
||||
|
||||
public uint Category = 0; // SpellCategory Id
|
||||
public int ModCooldown = 0; // Reduced Cooldown in ms
|
||||
public uint Category { get; set; } = 0; // SpellCategory Id
|
||||
public int ModCooldown { get; set; } = 0; // Reduced Cooldown in ms
|
||||
}
|
||||
}
|
||||
|
||||
@@ -126,15 +126,15 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(spellId);
|
||||
}
|
||||
|
||||
public bool InitialLogin;
|
||||
public List<uint> KnownSpells = new List<uint>();
|
||||
public List<uint> FavoriteSpells = new List<uint>(); // tradeskill recipes
|
||||
public bool InitialLogin { get; set; }
|
||||
public List<uint> KnownSpells { get; set; } = new List<uint>();
|
||||
public List<uint> FavoriteSpells { get; set; } = new List<uint>(); // tradeskill recipes
|
||||
}
|
||||
|
||||
public class UpdateActionButtons : ServerPacket
|
||||
{
|
||||
public ulong[] ActionButtons = new ulong[PlayerConst.MaxActionButtons];
|
||||
public byte Reason;
|
||||
public ulong[] ActionButtons { get; set; } = new ulong[PlayerConst.MaxActionButtons];
|
||||
public byte Reason { get; set; }
|
||||
|
||||
public UpdateActionButtons() : base(ServerOpcodes.UpdateActionButtons, ConnectionType.Instance) { }
|
||||
|
||||
@@ -157,11 +157,11 @@ namespace Game.Network.Packets
|
||||
Index = _worldPacket.ReadUInt8();
|
||||
}
|
||||
|
||||
public uint GetButtonAction() { return (uint)(Action & 0x00000000FFFFFFFF); }
|
||||
public uint GetButtonType() { return (uint)((Action & 0xFFFFFFFF00000000) >> 56); }
|
||||
public uint GetButtonAction() => (uint)(Action & 0x00000000FFFFFFFF);
|
||||
public uint GetButtonType() => (uint)((Action & 0xFFFFFFFF00000000) >> 56);
|
||||
|
||||
public ulong Action; // two packed public uint (action and type)
|
||||
public byte Index;
|
||||
public byte Index { get; set; }
|
||||
}
|
||||
|
||||
public class SendUnlearnSpells : ServerPacket
|
||||
@@ -192,14 +192,14 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(UnitGUID);
|
||||
}
|
||||
|
||||
public bool UpdateAll;
|
||||
public ObjectGuid UnitGUID;
|
||||
public List<AuraInfo> Auras = new List<AuraInfo>();
|
||||
public bool UpdateAll { get; set; }
|
||||
public ObjectGuid UnitGUID { get; set; }
|
||||
public List<AuraInfo> Auras { get; set; } = new List<AuraInfo>();
|
||||
}
|
||||
|
||||
public class CastSpell : ClientPacket
|
||||
{
|
||||
public SpellCastRequest Cast;
|
||||
public SpellCastRequest Cast { get; set; }
|
||||
|
||||
public CastSpell(WorldPacket packet) : base(packet)
|
||||
{
|
||||
@@ -214,8 +214,8 @@ namespace Game.Network.Packets
|
||||
|
||||
public class PetCastSpell : ClientPacket
|
||||
{
|
||||
public ObjectGuid PetGUID;
|
||||
public SpellCastRequest Cast;
|
||||
public ObjectGuid PetGUID { get; set; }
|
||||
public SpellCastRequest Cast { get; set; }
|
||||
|
||||
public PetCastSpell(WorldPacket packet) : base(packet)
|
||||
{
|
||||
@@ -231,10 +231,10 @@ namespace Game.Network.Packets
|
||||
|
||||
public class UseItem : ClientPacket
|
||||
{
|
||||
public byte PackSlot;
|
||||
public byte Slot;
|
||||
public ObjectGuid CastItem;
|
||||
public SpellCastRequest Cast;
|
||||
public byte PackSlot { get; set; }
|
||||
public byte Slot { get; set; }
|
||||
public ObjectGuid CastItem { get; set; }
|
||||
public SpellCastRequest Cast { get; set; }
|
||||
|
||||
public UseItem(WorldPacket packet) : base(packet)
|
||||
{
|
||||
@@ -260,8 +260,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(ServerCastID);
|
||||
}
|
||||
|
||||
public ObjectGuid ClientCastID;
|
||||
public ObjectGuid ServerCastID;
|
||||
public ObjectGuid ClientCastID { get; set; }
|
||||
public ObjectGuid ServerCastID { get; set; }
|
||||
}
|
||||
|
||||
class SpellGo : CombatLogServerPacket
|
||||
@@ -278,12 +278,12 @@ namespace Game.Network.Packets
|
||||
WriteLogData();
|
||||
}
|
||||
|
||||
public SpellCastData Cast = new SpellCastData();
|
||||
public SpellCastData Cast { get; set; } = new SpellCastData();
|
||||
}
|
||||
|
||||
public class SpellStart : ServerPacket
|
||||
{
|
||||
public SpellCastData Cast;
|
||||
public SpellCastData Cast { get; set; }
|
||||
|
||||
public SpellStart() : base(ServerOpcodes.SpellStart, ConnectionType.Instance)
|
||||
{
|
||||
@@ -316,9 +316,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteInt32(spellId);
|
||||
}
|
||||
|
||||
public List<uint> SpellID = new List<uint>();
|
||||
public List<uint> Superceded = new List<uint>();
|
||||
public List<int> FavoriteSpellID = new List<int>();
|
||||
public List<uint> SpellID { get; set; } = new List<uint>();
|
||||
public List<uint> Superceded { get; set; } = new List<uint>();
|
||||
public List<int> FavoriteSpellID { get; set; } = new List<int>();
|
||||
}
|
||||
|
||||
public class LearnedSpells : ServerPacket
|
||||
@@ -340,9 +340,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public List<uint> SpellID = new List<uint>();
|
||||
public List<int> FavoriteSpellID = new List<int>();
|
||||
public bool SuppressMessaging;
|
||||
public List<uint> SpellID { get; set; } = new List<uint>();
|
||||
public List<int> FavoriteSpellID { get; set; } = new List<int>();
|
||||
public bool SuppressMessaging { get; set; }
|
||||
}
|
||||
|
||||
public class SpellFailure : ServerPacket
|
||||
@@ -358,11 +358,11 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt16(Reason);
|
||||
}
|
||||
|
||||
public ObjectGuid CasterUnit;
|
||||
public uint SpellID;
|
||||
public uint SpellXSpellVisualID;
|
||||
public ushort Reason;
|
||||
public ObjectGuid CastID;
|
||||
public ObjectGuid CasterUnit { get; set; }
|
||||
public uint SpellID { get; set; }
|
||||
public uint SpellXSpellVisualID { get; set; }
|
||||
public ushort Reason { get; set; }
|
||||
public ObjectGuid CastID { get; set; }
|
||||
}
|
||||
|
||||
public class SpellFailedOther : ServerPacket
|
||||
@@ -378,11 +378,11 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt16(Reason);
|
||||
}
|
||||
|
||||
public ObjectGuid CasterUnit;
|
||||
public uint SpellID;
|
||||
public uint SpellXSpellVisualID;
|
||||
public ushort Reason;
|
||||
public ObjectGuid CastID;
|
||||
public ObjectGuid CasterUnit { get; set; }
|
||||
public uint SpellID { get; set; }
|
||||
public uint SpellXSpellVisualID { get; set; }
|
||||
public ushort Reason { get; set; }
|
||||
public ObjectGuid CastID { get; set; }
|
||||
}
|
||||
|
||||
class CastFailedBase : ServerPacket
|
||||
@@ -391,11 +391,11 @@ namespace Game.Network.Packets
|
||||
|
||||
public override void Write() { throw new NotImplementedException(); }
|
||||
|
||||
public ObjectGuid CastID;
|
||||
public int SpellID;
|
||||
public SpellCastResult Reason;
|
||||
public int FailedArg1 = -1;
|
||||
public int FailedArg2 = -1;
|
||||
public ObjectGuid CastID { get; set; }
|
||||
public int SpellID { get; set; }
|
||||
public SpellCastResult Reason { get; set; }
|
||||
public int FailedArg1 { get; set; } = -1;
|
||||
public int FailedArg2 { get; set; } = -1;
|
||||
}
|
||||
|
||||
class CastFailed : CastFailedBase
|
||||
@@ -412,7 +412,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteInt32(FailedArg2);
|
||||
}
|
||||
|
||||
public int SpellXSpellVisualID;
|
||||
public int SpellXSpellVisualID { get; set; }
|
||||
}
|
||||
|
||||
class PetCastFailed : CastFailedBase
|
||||
@@ -440,7 +440,7 @@ namespace Game.Network.Packets
|
||||
spellMod.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public List<SpellModifierInfo> Modifiers = new List<SpellModifierInfo>();
|
||||
public List<SpellModifierInfo> Modifiers { get; set; } = new List<SpellModifierInfo>();
|
||||
}
|
||||
|
||||
public class UnlearnedSpells : ServerPacket
|
||||
@@ -457,8 +457,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public List<uint> SpellID = new List<uint>();
|
||||
public bool SuppressMessaging;
|
||||
public List<uint> SpellID { get; set; } = new List<uint>();
|
||||
public bool SuppressMessaging { get; set; }
|
||||
}
|
||||
|
||||
public class CooldownEvent : ServerPacket
|
||||
@@ -476,8 +476,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public bool IsPet;
|
||||
public uint SpellID;
|
||||
public bool IsPet { get; set; }
|
||||
public uint SpellID { get; set; }
|
||||
}
|
||||
|
||||
public class ClearCooldowns : ServerPacket
|
||||
@@ -494,8 +494,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public List<uint> SpellID = new List<uint>();
|
||||
public bool IsPet;
|
||||
public List<uint> SpellID { get; set; } = new List<uint>();
|
||||
public bool IsPet { get; set; }
|
||||
}
|
||||
|
||||
public class ClearCooldown : ServerPacket
|
||||
@@ -510,9 +510,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public bool IsPet;
|
||||
public uint SpellID;
|
||||
public bool ClearOnHold;
|
||||
public bool IsPet { get; set; }
|
||||
public uint SpellID { get; set; }
|
||||
public bool ClearOnHold { get; set; }
|
||||
}
|
||||
|
||||
public class ModifyCooldown : ServerPacket
|
||||
@@ -527,9 +527,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public bool IsPet;
|
||||
public int DeltaTime;
|
||||
public uint SpellID;
|
||||
public bool IsPet { get; set; }
|
||||
public int DeltaTime { get; set; }
|
||||
public uint SpellID { get; set; }
|
||||
}
|
||||
|
||||
public class SpellCooldownPkt : ServerPacket
|
||||
@@ -544,9 +544,9 @@ namespace Game.Network.Packets
|
||||
SpellCooldowns.ForEach(p => p.Write(_worldPacket));
|
||||
}
|
||||
|
||||
public List<SpellCooldownStruct> SpellCooldowns = new List<SpellCooldownStruct>();
|
||||
public ObjectGuid Caster;
|
||||
public SpellCooldownFlags Flags;
|
||||
public List<SpellCooldownStruct> SpellCooldowns { get; set; } = new List<SpellCooldownStruct>();
|
||||
public ObjectGuid Caster { get; set; }
|
||||
public SpellCooldownFlags Flags { get; set; }
|
||||
}
|
||||
|
||||
public class SendSpellHistory : ServerPacket
|
||||
@@ -559,7 +559,7 @@ namespace Game.Network.Packets
|
||||
Entries.ForEach(p => p.Write(_worldPacket));
|
||||
}
|
||||
|
||||
public List<SpellHistoryEntry> Entries = new List<SpellHistoryEntry>();
|
||||
public List<SpellHistoryEntry> Entries { get; set; } = new List<SpellHistoryEntry>();
|
||||
}
|
||||
|
||||
public class ClearAllSpellCharges : ServerPacket
|
||||
@@ -572,7 +572,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public bool IsPet;
|
||||
public bool IsPet { get; set; }
|
||||
}
|
||||
|
||||
public class ClearSpellCharges : ServerPacket
|
||||
@@ -586,8 +586,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public bool IsPet;
|
||||
public uint Category;
|
||||
public bool IsPet { get; set; }
|
||||
public uint Category { get; set; }
|
||||
}
|
||||
|
||||
public class SetSpellCharges : ServerPacket
|
||||
@@ -604,11 +604,11 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public bool IsPet;
|
||||
public uint Category;
|
||||
public uint NextRecoveryTime;
|
||||
public byte ConsumedCharges;
|
||||
public float ChargeModRate = 1.0f;
|
||||
public bool IsPet { get; set; }
|
||||
public uint Category { get; set; }
|
||||
public uint NextRecoveryTime { get; set; }
|
||||
public byte ConsumedCharges { get; set; }
|
||||
public float ChargeModRate { get; set; } = 1.0f;
|
||||
}
|
||||
|
||||
public class SendSpellCharges : ServerPacket
|
||||
@@ -621,7 +621,7 @@ namespace Game.Network.Packets
|
||||
Entries.ForEach(p => p.Write(_worldPacket));
|
||||
}
|
||||
|
||||
public List<SpellChargeEntry> Entries = new List<SpellChargeEntry>();
|
||||
public List<SpellChargeEntry> Entries { get; set; } = new List<SpellChargeEntry>();
|
||||
}
|
||||
|
||||
public class ClearTarget : ServerPacket
|
||||
@@ -633,7 +633,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(Guid);
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
}
|
||||
|
||||
public class CancelOrphanSpellVisual : ServerPacket
|
||||
@@ -645,7 +645,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(SpellVisualID);
|
||||
}
|
||||
|
||||
public uint SpellVisualID;
|
||||
public uint SpellVisualID { get; set; }
|
||||
}
|
||||
|
||||
public class CancelSpellVisual : ServerPacket
|
||||
@@ -658,8 +658,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(SpellVisualID);
|
||||
}
|
||||
|
||||
public ObjectGuid Source;
|
||||
public uint SpellVisualID;
|
||||
public ObjectGuid Source { get; set; }
|
||||
public uint SpellVisualID { get; set; }
|
||||
}
|
||||
|
||||
class CancelSpellVisualKit : ServerPacket
|
||||
@@ -672,8 +672,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(SpellVisualKitID);
|
||||
}
|
||||
|
||||
public ObjectGuid Source;
|
||||
public uint SpellVisualKitID;
|
||||
public ObjectGuid Source { get; set; }
|
||||
public uint SpellVisualKitID { get; set; }
|
||||
}
|
||||
|
||||
class PlayOrphanSpellVisual : ServerPacket
|
||||
@@ -694,10 +694,10 @@ namespace Game.Network.Packets
|
||||
}
|
||||
|
||||
public ObjectGuid Target; // Exclusive with TargetLocation
|
||||
public Position SourceLocation;
|
||||
public uint SpellVisualID;
|
||||
public bool SpeedAsTime;
|
||||
public float TravelSpeed;
|
||||
public Position SourceLocation { get; set; }
|
||||
public uint SpellVisualID { get; set; }
|
||||
public bool SpeedAsTime { get; set; }
|
||||
public float TravelSpeed { get; set; }
|
||||
public float UnkZero; // Always zero
|
||||
public Vector3 SourceRotation; // Vector of rotations, Orientation is z
|
||||
public Vector3 TargetLocation; // Exclusive with Target
|
||||
@@ -721,15 +721,15 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public ObjectGuid Source;
|
||||
public ObjectGuid Source { get; set; }
|
||||
public ObjectGuid Target; // Exclusive with TargetPosition
|
||||
public ushort MissReason;
|
||||
public uint SpellVisualID;
|
||||
public bool SpeedAsTime;
|
||||
public ushort ReflectStatus;
|
||||
public float TravelSpeed;
|
||||
public ushort MissReason { get; set; }
|
||||
public uint SpellVisualID { get; set; }
|
||||
public bool SpeedAsTime { get; set; }
|
||||
public ushort ReflectStatus { get; set; }
|
||||
public float TravelSpeed { get; set; }
|
||||
public Vector3 TargetPosition; // Exclusive with Target
|
||||
public float Orientation;
|
||||
public float Orientation { get; set; }
|
||||
}
|
||||
|
||||
class PlaySpellVisualKit : ServerPacket
|
||||
@@ -744,10 +744,10 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(Duration);
|
||||
}
|
||||
|
||||
public ObjectGuid Unit;
|
||||
public uint KitRecID;
|
||||
public uint KitType;
|
||||
public uint Duration;
|
||||
public ObjectGuid Unit { get; set; }
|
||||
public uint KitRecID { get; set; }
|
||||
public uint KitType { get; set; }
|
||||
public uint Duration { get; set; }
|
||||
}
|
||||
|
||||
public class CancelCast : ClientPacket
|
||||
@@ -760,8 +760,8 @@ namespace Game.Network.Packets
|
||||
SpellID = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public uint SpellID;
|
||||
public ObjectGuid CastID;
|
||||
public uint SpellID { get; set; }
|
||||
public ObjectGuid CastID { get; set; }
|
||||
}
|
||||
|
||||
public class OpenItem : ClientPacket
|
||||
@@ -774,8 +774,8 @@ namespace Game.Network.Packets
|
||||
PackSlot = _worldPacket.ReadUInt8();
|
||||
}
|
||||
|
||||
public byte Slot;
|
||||
public byte PackSlot;
|
||||
public byte Slot { get; set; }
|
||||
public byte PackSlot { get; set; }
|
||||
}
|
||||
|
||||
public class SpellChannelStart : ServerPacket
|
||||
@@ -799,12 +799,12 @@ namespace Game.Network.Packets
|
||||
HealPrediction.Value.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public int SpellID;
|
||||
public int SpellXSpellVisualID;
|
||||
public int SpellID { get; set; }
|
||||
public int SpellXSpellVisualID { get; set; }
|
||||
public Optional<SpellChannelStartInterruptImmunities> InterruptImmunities;
|
||||
public ObjectGuid CasterGUID;
|
||||
public Optional<SpellTargetedHealPrediction> HealPrediction;
|
||||
public uint ChannelDuration;
|
||||
public ObjectGuid CasterGUID { get; set; }
|
||||
public Optional<SpellTargetedHealPrediction> HealPrediction { get; set; }
|
||||
public uint ChannelDuration { get; set; }
|
||||
}
|
||||
|
||||
public class SpellChannelUpdate : ServerPacket
|
||||
@@ -817,8 +817,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteInt32(TimeRemaining);
|
||||
}
|
||||
|
||||
public ObjectGuid CasterGUID;
|
||||
public int TimeRemaining;
|
||||
public ObjectGuid CasterGUID { get; set; }
|
||||
public int TimeRemaining { get; set; }
|
||||
}
|
||||
|
||||
class ResurrectRequest : ServerPacket
|
||||
@@ -839,13 +839,13 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(Name);
|
||||
}
|
||||
|
||||
public ObjectGuid ResurrectOffererGUID;
|
||||
public uint ResurrectOffererVirtualRealmAddress;
|
||||
public uint PetNumber;
|
||||
public uint SpellID;
|
||||
public bool UseTimer;
|
||||
public bool Sickness;
|
||||
public string Name;
|
||||
public ObjectGuid ResurrectOffererGUID { get; set; }
|
||||
public uint ResurrectOffererVirtualRealmAddress { get; set; }
|
||||
public uint PetNumber { get; set; }
|
||||
public uint SpellID { get; set; }
|
||||
public bool UseTimer { get; set; }
|
||||
public bool Sickness { get; set; }
|
||||
public string Name { get; set; }
|
||||
}
|
||||
|
||||
class UnlearnSkill : ClientPacket
|
||||
@@ -857,7 +857,7 @@ namespace Game.Network.Packets
|
||||
SkillLine = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public uint SkillLine;
|
||||
public uint SkillLine { get; set; }
|
||||
}
|
||||
|
||||
class SelfRes : ClientPacket
|
||||
@@ -877,8 +877,8 @@ namespace Game.Network.Packets
|
||||
DisplayID = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public ObjectGuid UnitGUID;
|
||||
public uint DisplayID;
|
||||
public ObjectGuid UnitGUID { get; set; }
|
||||
public uint DisplayID { get; set; }
|
||||
}
|
||||
|
||||
class MirrorImageComponentedData : ServerPacket
|
||||
@@ -907,20 +907,20 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(itemDisplayId);
|
||||
}
|
||||
|
||||
public ObjectGuid UnitGUID;
|
||||
public int DisplayID;
|
||||
public byte RaceID;
|
||||
public byte Gender;
|
||||
public byte ClassID;
|
||||
public byte SkinColor;
|
||||
public byte FaceVariation;
|
||||
public byte HairVariation;
|
||||
public byte HairColor;
|
||||
public byte BeardVariation;
|
||||
public Array<byte> CustomDisplay = new Array<byte>(PlayerConst.CustomDisplaySize);
|
||||
public ObjectGuid GuildGUID;
|
||||
public ObjectGuid UnitGUID { get; set; }
|
||||
public int DisplayID { get; set; }
|
||||
public byte RaceID { get; set; }
|
||||
public byte Gender { get; set; }
|
||||
public byte ClassID { get; set; }
|
||||
public byte SkinColor { get; set; }
|
||||
public byte FaceVariation { get; set; }
|
||||
public byte HairVariation { get; set; }
|
||||
public byte HairColor { get; set; }
|
||||
public byte BeardVariation { get; set; }
|
||||
public Array<byte> CustomDisplay { get; set; } = new Array<byte>(PlayerConst.CustomDisplaySize);
|
||||
public ObjectGuid GuildGUID { get; set; }
|
||||
|
||||
public List<int> ItemDisplayID = new List<int>();
|
||||
public List<int> ItemDisplayID { get; set; } = new List<int>();
|
||||
}
|
||||
|
||||
class MirrorImageCreatureData : ServerPacket
|
||||
@@ -933,8 +933,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteInt32(DisplayID);
|
||||
}
|
||||
|
||||
public ObjectGuid UnitGUID;
|
||||
public int DisplayID;
|
||||
public ObjectGuid UnitGUID { get; set; }
|
||||
public int DisplayID { get; set; }
|
||||
}
|
||||
|
||||
class SpellClick : ClientPacket
|
||||
@@ -947,8 +947,8 @@ namespace Game.Network.Packets
|
||||
TryAutoDismount = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public ObjectGuid SpellClickUnitGuid;
|
||||
public bool TryAutoDismount;
|
||||
public ObjectGuid SpellClickUnitGuid { get; set; }
|
||||
public bool TryAutoDismount { get; set; }
|
||||
}
|
||||
|
||||
class ResyncRunes : ServerPacket
|
||||
@@ -960,7 +960,7 @@ namespace Game.Network.Packets
|
||||
Runes.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public RuneData Runes = new RuneData();
|
||||
public RuneData Runes { get; set; } = new RuneData();
|
||||
}
|
||||
|
||||
class MissileTrajectoryCollision : ClientPacket
|
||||
@@ -975,10 +975,10 @@ namespace Game.Network.Packets
|
||||
CollisionPos = _worldPacket.ReadVector3();
|
||||
}
|
||||
|
||||
public ObjectGuid Target;
|
||||
public uint SpellID;
|
||||
public ObjectGuid CastID;
|
||||
public Vector3 CollisionPos;
|
||||
public ObjectGuid Target { get; set; }
|
||||
public uint SpellID { get; set; }
|
||||
public ObjectGuid CastID { get; set; }
|
||||
public Vector3 CollisionPos { get; set; }
|
||||
}
|
||||
|
||||
class NotifyMissileTrajectoryCollision : ServerPacket
|
||||
@@ -992,9 +992,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteVector3(CollisionPos);
|
||||
}
|
||||
|
||||
public ObjectGuid Caster;
|
||||
public ObjectGuid CastID;
|
||||
public Vector3 CollisionPos;
|
||||
public ObjectGuid Caster { get; set; }
|
||||
public ObjectGuid CastID { get; set; }
|
||||
public Vector3 CollisionPos { get; set; }
|
||||
}
|
||||
|
||||
class UpdateMissileTrajectory : ClientPacket
|
||||
@@ -1017,14 +1017,14 @@ namespace Game.Network.Packets
|
||||
Status.Set(MovementExtensions.ReadMovementInfo(_worldPacket));
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public ushort MoveMsgID;
|
||||
public uint SpellID;
|
||||
public float Pitch;
|
||||
public float Speed;
|
||||
public Vector3 FirePos;
|
||||
public Vector3 ImpactPos;
|
||||
public Optional<MovementInfo> Status;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
public ushort MoveMsgID { get; set; }
|
||||
public uint SpellID { get; set; }
|
||||
public float Pitch { get; set; }
|
||||
public float Speed { get; set; }
|
||||
public Vector3 FirePos { get; set; }
|
||||
public Vector3 ImpactPos { get; set; }
|
||||
public Optional<MovementInfo> Status { get; set; }
|
||||
}
|
||||
|
||||
public class SpellDelayed : ServerPacket
|
||||
@@ -1037,8 +1037,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteInt32(ActualDelay);
|
||||
}
|
||||
|
||||
public ObjectGuid Caster;
|
||||
public int ActualDelay;
|
||||
public ObjectGuid Caster { get; set; }
|
||||
public int ActualDelay { get; set; }
|
||||
}
|
||||
|
||||
class DispelFailed : ServerPacket
|
||||
@@ -1055,10 +1055,10 @@ namespace Game.Network.Packets
|
||||
FailedSpells.ForEach(FailedSpellID => _worldPacket.WriteUInt32(FailedSpellID));
|
||||
}
|
||||
|
||||
public ObjectGuid CasterGUID;
|
||||
public ObjectGuid VictimGUID;
|
||||
public uint SpellID;
|
||||
public List<uint> FailedSpells = new List<uint>();
|
||||
public ObjectGuid CasterGUID { get; set; }
|
||||
public ObjectGuid VictimGUID { get; set; }
|
||||
public uint SpellID { get; set; }
|
||||
public List<uint> FailedSpells { get; set; } = new List<uint>();
|
||||
}
|
||||
|
||||
class CustomLoadScreen : ServerPacket
|
||||
@@ -1089,9 +1089,9 @@ namespace Game.Network.Packets
|
||||
Cost = cost;
|
||||
}
|
||||
|
||||
public int PowerType;
|
||||
public int Amount;
|
||||
public int Cost;
|
||||
public int PowerType { get; set; }
|
||||
public int Amount { get; set; }
|
||||
public int Cost { get; set; }
|
||||
}
|
||||
|
||||
public class SpellCastLogData
|
||||
@@ -1247,15 +1247,15 @@ namespace Game.Network.Packets
|
||||
data.WriteInt8(TargetScalingLevelDelta);
|
||||
}
|
||||
|
||||
public SandboxScalingDataType Type;
|
||||
public short PlayerLevelDelta;
|
||||
public ushort PlayerItemLevel;
|
||||
public byte TargetLevel;
|
||||
public byte Expansion;
|
||||
public byte Class;
|
||||
public byte TargetMinScalingLevel;
|
||||
public byte TargetMaxScalingLevel;
|
||||
public sbyte TargetScalingLevelDelta;
|
||||
public SandboxScalingDataType Type { get; set; }
|
||||
public short PlayerLevelDelta { get; set; }
|
||||
public ushort PlayerItemLevel { get; set; }
|
||||
public byte TargetLevel { get; set; }
|
||||
public byte Expansion { get; set; }
|
||||
public byte Class { get; set; }
|
||||
public byte TargetMinScalingLevel { get; set; }
|
||||
public byte TargetMaxScalingLevel { get; set; }
|
||||
public sbyte TargetScalingLevelDelta { get; set; }
|
||||
|
||||
public enum SandboxScalingDataType
|
||||
{
|
||||
@@ -1307,20 +1307,20 @@ namespace Game.Network.Packets
|
||||
data.WriteFloat(point);
|
||||
}
|
||||
|
||||
public ObjectGuid CastID;
|
||||
public int SpellID;
|
||||
public int SpellXSpellVisualID;
|
||||
public AuraFlags Flags;
|
||||
public uint ActiveFlags;
|
||||
public ushort CastLevel = 1;
|
||||
public byte Applications = 1;
|
||||
public ObjectGuid CastID { get; set; }
|
||||
public int SpellID { get; set; }
|
||||
public int SpellXSpellVisualID { get; set; }
|
||||
public AuraFlags Flags { get; set; }
|
||||
public uint ActiveFlags { get; set; }
|
||||
public ushort CastLevel { get; set; } = 1;
|
||||
public byte Applications { get; set; } = 1;
|
||||
Optional<SandboxScalingData> SandboxScaling;
|
||||
public Optional<ObjectGuid> CastUnit;
|
||||
public Optional<int> Duration;
|
||||
public Optional<int> Remaining;
|
||||
public Optional<ObjectGuid> CastUnit { get; set; }
|
||||
public Optional<int> Duration { get; set; }
|
||||
public Optional<int> Remaining { get; set; }
|
||||
Optional<float> TimeMod;
|
||||
public float[] Points = new float[0];
|
||||
public List<float> EstimatedPoints = new List<float>();
|
||||
public float[] Points { get; set; } = new float[0];
|
||||
public List<float> EstimatedPoints { get; set; } = new List<float>();
|
||||
}
|
||||
|
||||
public struct AuraInfo
|
||||
@@ -1335,14 +1335,14 @@ namespace Game.Network.Packets
|
||||
AuraData.Value.Write(data);
|
||||
}
|
||||
|
||||
public byte Slot;
|
||||
public byte Slot { get; set; }
|
||||
public Optional<AuraDataInfo> AuraData;
|
||||
}
|
||||
|
||||
public struct TargetLocation
|
||||
{
|
||||
public ObjectGuid Transport;
|
||||
public Position Location;
|
||||
public ObjectGuid Transport { get; set; }
|
||||
public Position Location { get; set; }
|
||||
|
||||
public void Read(WorldPacket data)
|
||||
{
|
||||
@@ -1419,9 +1419,9 @@ namespace Game.Network.Packets
|
||||
data.WriteString(Name);
|
||||
}
|
||||
|
||||
public SpellCastTargetFlags Flags;
|
||||
public ObjectGuid Unit;
|
||||
public ObjectGuid Item;
|
||||
public SpellCastTargetFlags Flags { get; set; }
|
||||
public ObjectGuid Unit { get; set; }
|
||||
public ObjectGuid Item { get; set; }
|
||||
public Optional<TargetLocation> SrcLocation;
|
||||
public Optional<TargetLocation> DstLocation;
|
||||
public Optional<float> Orientation;
|
||||
@@ -1431,8 +1431,8 @@ namespace Game.Network.Packets
|
||||
|
||||
public struct MissileTrajectoryRequest
|
||||
{
|
||||
public float Pitch;
|
||||
public float Speed;
|
||||
public float Pitch { get; set; }
|
||||
public float Speed { get; set; }
|
||||
|
||||
public void Read(WorldPacket data)
|
||||
{
|
||||
@@ -1443,9 +1443,9 @@ namespace Game.Network.Packets
|
||||
|
||||
public struct SpellWeight
|
||||
{
|
||||
public uint Type;
|
||||
public int ID;
|
||||
public uint Quantity;
|
||||
public uint Type { get; set; }
|
||||
public int ID { get; set; }
|
||||
public uint Quantity { get; set; }
|
||||
}
|
||||
|
||||
public class SpellCastRequest
|
||||
@@ -1470,7 +1470,7 @@ namespace Game.Network.Packets
|
||||
for (var i = 0; i < weightCount; ++i)
|
||||
{
|
||||
data.ResetBitPos();
|
||||
SpellWeight weight;
|
||||
SpellWeight weight = new SpellWeight();
|
||||
weight.Type = data.ReadBits<uint>(2);
|
||||
weight.ID = data.ReadInt32();
|
||||
weight.Quantity = data.ReadUInt32();
|
||||
@@ -1478,16 +1478,16 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public ObjectGuid CastID;
|
||||
public uint SpellID;
|
||||
public uint SpellXSpellVisualID;
|
||||
public uint SendCastFlags;
|
||||
public SpellTargetData Target = new SpellTargetData();
|
||||
public MissileTrajectoryRequest MissileTrajectory;
|
||||
public ObjectGuid CastID { get; set; }
|
||||
public uint SpellID { get; set; }
|
||||
public uint SpellXSpellVisualID { get; set; }
|
||||
public uint SendCastFlags { get; set; }
|
||||
public SpellTargetData Target { get; set; } = new SpellTargetData();
|
||||
public MissileTrajectoryRequest MissileTrajectory { get; set; }
|
||||
public Optional<MovementInfo> MoveUpdate;
|
||||
public List<SpellWeight> Weight = new List<SpellWeight>();
|
||||
public ObjectGuid Charmer;
|
||||
public uint[] Misc = new uint[2];
|
||||
public List<SpellWeight> Weight { get; set; } = new List<SpellWeight>();
|
||||
public ObjectGuid Charmer { get; set; }
|
||||
public uint[] Misc { get; set; } = new uint[2];
|
||||
}
|
||||
|
||||
public struct SpellMissStatus
|
||||
@@ -1501,14 +1501,14 @@ namespace Game.Network.Packets
|
||||
data.FlushBits();
|
||||
}
|
||||
|
||||
public byte Reason;
|
||||
public byte ReflectStatus;
|
||||
public byte Reason { get; set; }
|
||||
public byte ReflectStatus { get; set; }
|
||||
}
|
||||
|
||||
public struct SpellPowerData
|
||||
{
|
||||
public int Cost;
|
||||
public PowerType Type;
|
||||
public int Cost { get; set; }
|
||||
public PowerType Type { get; set; }
|
||||
|
||||
public void Write(WorldPacket data)
|
||||
{
|
||||
@@ -1529,15 +1529,15 @@ namespace Game.Network.Packets
|
||||
data.WriteUInt8(cd);
|
||||
}
|
||||
|
||||
public byte Start;
|
||||
public byte Count;
|
||||
public List<byte> Cooldowns = new List<byte>();
|
||||
public byte Start { get; set; }
|
||||
public byte Count { get; set; }
|
||||
public List<byte> Cooldowns { get; set; } = new List<byte>();
|
||||
}
|
||||
|
||||
public struct MissileTrajectoryResult
|
||||
{
|
||||
public uint TravelTime;
|
||||
public float Pitch;
|
||||
public uint TravelTime { get; set; }
|
||||
public float Pitch { get; set; }
|
||||
|
||||
public void Write(WorldPacket data)
|
||||
{
|
||||
@@ -1548,8 +1548,8 @@ namespace Game.Network.Packets
|
||||
|
||||
public struct SpellAmmo
|
||||
{
|
||||
public int DisplayID;
|
||||
public sbyte InventoryType;
|
||||
public int DisplayID { get; set; }
|
||||
public sbyte InventoryType { get; set; }
|
||||
|
||||
public void Write(WorldPacket data)
|
||||
{
|
||||
@@ -1560,8 +1560,8 @@ namespace Game.Network.Packets
|
||||
|
||||
public struct CreatureImmunities
|
||||
{
|
||||
public uint School;
|
||||
public uint Value;
|
||||
public uint School { get; set; }
|
||||
public uint Value { get; set; }
|
||||
|
||||
public void Write(WorldPacket data)
|
||||
{
|
||||
@@ -1572,9 +1572,9 @@ namespace Game.Network.Packets
|
||||
|
||||
public struct SpellHealPrediction
|
||||
{
|
||||
public ObjectGuid BeaconGUID;
|
||||
public uint Points;
|
||||
public byte Type;
|
||||
public ObjectGuid BeaconGUID { get; set; }
|
||||
public uint Points { get; set; }
|
||||
public byte Type { get; set; }
|
||||
|
||||
public void Write(WorldPacket data)
|
||||
{
|
||||
@@ -1635,33 +1635,33 @@ namespace Game.Network.Packets
|
||||
targetLoc.Write(data);
|
||||
}
|
||||
|
||||
public ObjectGuid CasterGUID;
|
||||
public ObjectGuid CasterUnit;
|
||||
public ObjectGuid CastID;
|
||||
public ObjectGuid OriginalCastID;
|
||||
public int SpellID;
|
||||
public uint SpellXSpellVisualID;
|
||||
public SpellCastFlags CastFlags;
|
||||
public SpellCastFlagsEx CastFlagsEx;
|
||||
public uint CastTime;
|
||||
public List<ObjectGuid> HitTargets = new List<ObjectGuid>();
|
||||
public List<ObjectGuid> MissTargets = new List<ObjectGuid>();
|
||||
public List<SpellMissStatus> MissStatus = new List<SpellMissStatus>();
|
||||
public SpellTargetData Target = new SpellTargetData();
|
||||
public List<SpellPowerData> RemainingPower = new List<SpellPowerData>();
|
||||
public ObjectGuid CasterGUID { get; set; }
|
||||
public ObjectGuid CasterUnit { get; set; }
|
||||
public ObjectGuid CastID { get; set; }
|
||||
public ObjectGuid OriginalCastID { get; set; }
|
||||
public int SpellID { get; set; }
|
||||
public uint SpellXSpellVisualID { get; set; }
|
||||
public SpellCastFlags CastFlags { get; set; }
|
||||
public SpellCastFlagsEx CastFlagsEx { get; set; }
|
||||
public uint CastTime { get; set; }
|
||||
public List<ObjectGuid> HitTargets { get; set; } = new List<ObjectGuid>();
|
||||
public List<ObjectGuid> MissTargets { get; set; } = new List<ObjectGuid>();
|
||||
public List<SpellMissStatus> MissStatus { get; set; } = new List<SpellMissStatus>();
|
||||
public SpellTargetData Target { get; set; } = new SpellTargetData();
|
||||
public List<SpellPowerData> RemainingPower { get; set; } = new List<SpellPowerData>();
|
||||
public Optional<RuneData> RemainingRunes;
|
||||
public MissileTrajectoryResult MissileTrajectory;
|
||||
public SpellAmmo Ammo;
|
||||
public byte DestLocSpellCastIndex;
|
||||
public List<TargetLocation> TargetPoints = new List<TargetLocation>();
|
||||
public SpellAmmo Ammo { get; set; }
|
||||
public byte DestLocSpellCastIndex { get; set; }
|
||||
public List<TargetLocation> TargetPoints { get; set; } = new List<TargetLocation>();
|
||||
public CreatureImmunities Immunities;
|
||||
public SpellHealPrediction Predict;
|
||||
public SpellHealPrediction Predict { get; set; }
|
||||
}
|
||||
|
||||
public struct SpellModifierData
|
||||
{
|
||||
public float ModifierValue;
|
||||
public byte ClassIndex;
|
||||
public float ModifierValue { get; set; }
|
||||
public byte ClassIndex { get; set; }
|
||||
|
||||
public void Write(WorldPacket data)
|
||||
{
|
||||
@@ -1672,8 +1672,8 @@ namespace Game.Network.Packets
|
||||
|
||||
public class SpellModifierInfo
|
||||
{
|
||||
public byte ModIndex;
|
||||
public List<SpellModifierData> ModifierData = new List<SpellModifierData>();
|
||||
public byte ModIndex { get; set; }
|
||||
public List<SpellModifierData> ModifierData { get; set; } = new List<SpellModifierData>();
|
||||
|
||||
public void Write(WorldPacket data)
|
||||
{
|
||||
@@ -1699,9 +1699,9 @@ namespace Game.Network.Packets
|
||||
data.WriteFloat(ModRate);
|
||||
}
|
||||
|
||||
public uint SrecID;
|
||||
public uint ForcedCooldown;
|
||||
public float ModRate = 1.0f;
|
||||
public uint SrecID { get; set; }
|
||||
public uint ForcedCooldown { get; set; }
|
||||
public float ModRate { get; set; } = 1.0f;
|
||||
}
|
||||
|
||||
public class SpellHistoryEntry
|
||||
@@ -1725,13 +1725,13 @@ namespace Game.Network.Packets
|
||||
data.WriteUInt32(unused622_2.Value);
|
||||
}
|
||||
|
||||
public uint SpellID;
|
||||
public uint ItemID;
|
||||
public uint Category;
|
||||
public int RecoveryTime;
|
||||
public int CategoryRecoveryTime;
|
||||
public float ModRate = 1.0f;
|
||||
public bool OnHold;
|
||||
public uint SpellID { get; set; }
|
||||
public uint ItemID { get; set; }
|
||||
public uint Category { get; set; }
|
||||
public int RecoveryTime { get; set; }
|
||||
public int CategoryRecoveryTime { get; set; }
|
||||
public float ModRate { get; set; } = 1.0f;
|
||||
public bool OnHold { get; set; }
|
||||
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
|
||||
}
|
||||
@@ -1746,10 +1746,10 @@ namespace Game.Network.Packets
|
||||
data.WriteUInt8(ConsumedCharges);
|
||||
}
|
||||
|
||||
public uint Category;
|
||||
public uint NextRecoveryTime;
|
||||
public float ChargeModRate = 1.0f;
|
||||
public byte ConsumedCharges;
|
||||
public uint Category { get; set; }
|
||||
public uint NextRecoveryTime { get; set; }
|
||||
public float ChargeModRate { get; set; } = 1.0f;
|
||||
public byte ConsumedCharges { get; set; }
|
||||
}
|
||||
|
||||
public struct SpellChannelStartInterruptImmunities
|
||||
@@ -1760,8 +1760,8 @@ namespace Game.Network.Packets
|
||||
data.WriteInt32(Immunities);
|
||||
}
|
||||
|
||||
public int SchoolImmunities;
|
||||
public int Immunities;
|
||||
public int SchoolImmunities { get; set; }
|
||||
public int Immunities { get; set; }
|
||||
}
|
||||
|
||||
public struct SpellTargetedHealPrediction
|
||||
@@ -1772,7 +1772,7 @@ namespace Game.Network.Packets
|
||||
Predict.Write(data);
|
||||
}
|
||||
|
||||
public ObjectGuid TargetGUID;
|
||||
public SpellHealPrediction Predict;
|
||||
public ObjectGuid TargetGUID { get; set; }
|
||||
public SpellHealPrediction Predict { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -123,92 +123,92 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public bool VoiceEnabled;
|
||||
public bool BrowserEnabled;
|
||||
public bool BpayStoreAvailable;
|
||||
public bool RecruitAFriendSendingEnabled;
|
||||
public bool BpayStoreEnabled;
|
||||
public Optional<SessionAlertConfig> SessionAlert;
|
||||
public uint ScrollOfResurrectionMaxRequestsPerDay;
|
||||
public bool ScrollOfResurrectionEnabled;
|
||||
public bool VoiceEnabled { get; set; }
|
||||
public bool BrowserEnabled { get; set; }
|
||||
public bool BpayStoreAvailable { get; set; }
|
||||
public bool RecruitAFriendSendingEnabled { get; set; }
|
||||
public bool BpayStoreEnabled { get; set; }
|
||||
public Optional<SessionAlertConfig> SessionAlert { get; set; }
|
||||
public uint ScrollOfResurrectionMaxRequestsPerDay { get; set; }
|
||||
public bool ScrollOfResurrectionEnabled { get; set; }
|
||||
public Optional<EuropaTicketConfig> EuropaTicketSystemStatus;
|
||||
public uint ScrollOfResurrectionRequestsRemaining;
|
||||
public uint CfgRealmID;
|
||||
public byte ComplaintStatus;
|
||||
public int CfgRealmRecID;
|
||||
public uint TwitterPostThrottleLimit;
|
||||
public uint TwitterPostThrottleCooldown;
|
||||
public uint TokenPollTimeSeconds;
|
||||
public uint TokenRedeemIndex;
|
||||
public long TokenBalanceAmount;
|
||||
public bool ItemRestorationButtonEnabled;
|
||||
public uint ScrollOfResurrectionRequestsRemaining { get; set; }
|
||||
public uint CfgRealmID { get; set; }
|
||||
public byte ComplaintStatus { get; set; }
|
||||
public int CfgRealmRecID { get; set; }
|
||||
public uint TwitterPostThrottleLimit { get; set; }
|
||||
public uint TwitterPostThrottleCooldown { get; set; }
|
||||
public uint TokenPollTimeSeconds { get; set; }
|
||||
public uint TokenRedeemIndex { get; set; }
|
||||
public long TokenBalanceAmount { get; set; }
|
||||
public bool ItemRestorationButtonEnabled { get; set; }
|
||||
public bool CharUndeleteEnabled; // Implemented
|
||||
public bool BpayStoreDisabledByParentalControls;
|
||||
public bool TwitterEnabled;
|
||||
public bool CommerceSystemEnabled;
|
||||
public bool Unk67;
|
||||
public bool WillKickFromWorld;
|
||||
public bool BpayStoreDisabledByParentalControls { get; set; }
|
||||
public bool TwitterEnabled { get; set; }
|
||||
public bool CommerceSystemEnabled { get; set; }
|
||||
public bool Unk67 { get; set; }
|
||||
public bool WillKickFromWorld { get; set; }
|
||||
|
||||
public bool RestrictedAccount;
|
||||
public bool TutorialsEnabled;
|
||||
public bool NPETutorialsEnabled;
|
||||
public bool KioskModeEnabled;
|
||||
public bool CompetitiveModeEnabled;
|
||||
public bool TokenBalanceEnabled;
|
||||
public bool RestrictedAccount { get; set; }
|
||||
public bool TutorialsEnabled { get; set; }
|
||||
public bool NPETutorialsEnabled { get; set; }
|
||||
public bool KioskModeEnabled { get; set; }
|
||||
public bool CompetitiveModeEnabled { get; set; }
|
||||
public bool TokenBalanceEnabled { get; set; }
|
||||
|
||||
public Optional<List<byte>> RaceClassExpansionLevels;
|
||||
public SocialQueueConfig QuickJoinConfig;
|
||||
public Optional<List<byte>> RaceClassExpansionLevels { get; set; }
|
||||
public SocialQueueConfig QuickJoinConfig { get; set; }
|
||||
|
||||
public struct SavedThrottleObjectState
|
||||
{
|
||||
public uint MaxTries;
|
||||
public uint PerMilliseconds;
|
||||
public uint TryCount;
|
||||
public uint LastResetTimeBeforeNow;
|
||||
public uint MaxTries { get; set; }
|
||||
public uint PerMilliseconds { get; set; }
|
||||
public uint TryCount { get; set; }
|
||||
public uint LastResetTimeBeforeNow { get; set; }
|
||||
}
|
||||
|
||||
public struct EuropaTicketConfig
|
||||
{
|
||||
public bool TicketsEnabled;
|
||||
public bool BugsEnabled;
|
||||
public bool ComplaintsEnabled;
|
||||
public bool SuggestionsEnabled;
|
||||
public bool TicketsEnabled { get; set; }
|
||||
public bool BugsEnabled { get; set; }
|
||||
public bool ComplaintsEnabled { get; set; }
|
||||
public bool SuggestionsEnabled { get; set; }
|
||||
|
||||
public SavedThrottleObjectState ThrottleState;
|
||||
}
|
||||
|
||||
public struct SessionAlertConfig
|
||||
{
|
||||
public int Delay;
|
||||
public int Period;
|
||||
public int DisplayTime;
|
||||
public int Delay { get; set; }
|
||||
public int Period { get; set; }
|
||||
public int DisplayTime { get; set; }
|
||||
}
|
||||
|
||||
public struct SocialQueueConfig
|
||||
{
|
||||
public bool ToastsDisabled;
|
||||
public float ToastDuration;
|
||||
public float DelayDuration;
|
||||
public float QueueMultiplier;
|
||||
public float PlayerMultiplier;
|
||||
public float PlayerFriendValue;
|
||||
public float PlayerGuildValue;
|
||||
public float ThrottleInitialThreshold;
|
||||
public float ThrottleDecayTime;
|
||||
public float ThrottlePrioritySpike;
|
||||
public float ThrottleMinThreshold;
|
||||
public float ThrottlePvPPriorityNormal;
|
||||
public float ThrottlePvPPriorityLow;
|
||||
public float ThrottlePvPHonorThreshold;
|
||||
public float ThrottleLfgListPriorityDefault;
|
||||
public float ThrottleLfgListPriorityAbove;
|
||||
public float ThrottleLfgListPriorityBelow;
|
||||
public float ThrottleLfgListIlvlScalingAbove;
|
||||
public float ThrottleLfgListIlvlScalingBelow;
|
||||
public float ThrottleRfPriorityAbove;
|
||||
public float ThrottleRfIlvlScalingAbove;
|
||||
public float ThrottleDfMaxItemLevel;
|
||||
public float ThrottleDfBestPriority;
|
||||
public bool ToastsDisabled { get; set; }
|
||||
public float ToastDuration { get; set; }
|
||||
public float DelayDuration { get; set; }
|
||||
public float QueueMultiplier { get; set; }
|
||||
public float PlayerMultiplier { get; set; }
|
||||
public float PlayerFriendValue { get; set; }
|
||||
public float PlayerGuildValue { get; set; }
|
||||
public float ThrottleInitialThreshold { get; set; }
|
||||
public float ThrottleDecayTime { get; set; }
|
||||
public float ThrottlePrioritySpike { get; set; }
|
||||
public float ThrottleMinThreshold { get; set; }
|
||||
public float ThrottlePvPPriorityNormal { get; set; }
|
||||
public float ThrottlePvPPriorityLow { get; set; }
|
||||
public float ThrottlePvPHonorThreshold { get; set; }
|
||||
public float ThrottleLfgListPriorityDefault { get; set; }
|
||||
public float ThrottleLfgListPriorityAbove { get; set; }
|
||||
public float ThrottleLfgListPriorityBelow { get; set; }
|
||||
public float ThrottleLfgListIlvlScalingAbove { get; set; }
|
||||
public float ThrottleLfgListIlvlScalingBelow { get; set; }
|
||||
public float ThrottleRfPriorityAbove { get; set; }
|
||||
public float ThrottleRfIlvlScalingAbove { get; set; }
|
||||
public float ThrottleDfMaxItemLevel { get; set; }
|
||||
public float ThrottleDfBestPriority { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -240,7 +240,7 @@ namespace Game.Network.Packets
|
||||
|
||||
public bool BpayStoreAvailable; // NYI
|
||||
public bool BpayStoreDisabledByParentalControls; // NYI
|
||||
public bool CharUndeleteEnabled;
|
||||
public bool CharUndeleteEnabled { get; set; }
|
||||
public bool BpayStoreEnabled; // NYI
|
||||
public bool CommerceSystemEnabled; // NYI
|
||||
public bool Unk14; // NYI
|
||||
@@ -272,7 +272,7 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public List<string> Text;
|
||||
public List<string> Text { get; set; }
|
||||
}
|
||||
|
||||
public class SetTimeZoneInformation : ServerPacket
|
||||
@@ -287,7 +287,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(GameTimeTZ);
|
||||
}
|
||||
|
||||
public string ServerTimeTZ;
|
||||
public string GameTimeTZ;
|
||||
public string ServerTimeTZ { get; set; }
|
||||
public string GameTimeTZ { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,20 +45,20 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public TalentInfoUpdate Info = new TalentInfoUpdate();
|
||||
public TalentInfoUpdate Info { get; set; } = new TalentInfoUpdate();
|
||||
|
||||
public class TalentGroupInfo
|
||||
{
|
||||
public uint SpecID;
|
||||
public List<ushort> TalentIDs = new List<ushort>();
|
||||
public List<ushort> PvPTalentIDs = new List<ushort>();
|
||||
public uint SpecID { get; set; }
|
||||
public List<ushort> TalentIDs { get; set; } = new List<ushort>();
|
||||
public List<ushort> PvPTalentIDs { get; set; } = new List<ushort>();
|
||||
}
|
||||
|
||||
public class TalentInfoUpdate
|
||||
{
|
||||
public byte ActiveGroup;
|
||||
public uint PrimarySpecialization;
|
||||
public List<TalentGroupInfo> TalentGroups = new List<TalentGroupInfo>();
|
||||
public byte ActiveGroup { get; set; }
|
||||
public uint PrimarySpecialization { get; set; }
|
||||
public List<TalentGroupInfo> TalentGroups { get; set; } = new List<TalentGroupInfo>();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ namespace Game.Network.Packets
|
||||
Talents.Add(_worldPacket.ReadUInt16());
|
||||
}
|
||||
|
||||
public Array<ushort> Talents = new Array<ushort>(PlayerConst.MaxTalentTiers);
|
||||
public Array<ushort> Talents { get; set; } = new Array<ushort>(PlayerConst.MaxTalentTiers);
|
||||
}
|
||||
|
||||
class RespecWipeConfirm : ServerPacket
|
||||
@@ -88,9 +88,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(RespecMaster);
|
||||
}
|
||||
|
||||
public ObjectGuid RespecMaster;
|
||||
public uint Cost;
|
||||
public SpecResetType RespecType;
|
||||
public ObjectGuid RespecMaster { get; set; }
|
||||
public uint Cost { get; set; }
|
||||
public SpecResetType RespecType { get; set; }
|
||||
}
|
||||
|
||||
class ConfirmRespecWipe : ClientPacket
|
||||
@@ -103,8 +103,8 @@ namespace Game.Network.Packets
|
||||
RespecType = (SpecResetType)_worldPacket.ReadUInt8();
|
||||
}
|
||||
|
||||
public ObjectGuid RespecMaster;
|
||||
public SpecResetType RespecType;
|
||||
public ObjectGuid RespecMaster { get; set; }
|
||||
public SpecResetType RespecType { get; set; }
|
||||
}
|
||||
|
||||
class LearnTalentsFailed : ServerPacket
|
||||
@@ -121,9 +121,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt16(talent);
|
||||
}
|
||||
|
||||
public uint Reason;
|
||||
public uint Reason { get; set; }
|
||||
public int SpellID;
|
||||
public List<ushort> Talents = new List<ushort>();
|
||||
public List<ushort> Talents { get; set; } = new List<ushort>();
|
||||
}
|
||||
|
||||
class ActiveGlyphs : ServerPacket
|
||||
@@ -140,8 +140,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public List<GlyphBinding> Glyphs = new List<GlyphBinding>();
|
||||
public bool IsFullUpdate;
|
||||
public List<GlyphBinding> Glyphs { get; set; } = new List<GlyphBinding>();
|
||||
public bool IsFullUpdate { get; set; }
|
||||
}
|
||||
|
||||
//Structs
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace Game.Network.Packets
|
||||
UnitGUID = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid UnitGUID;
|
||||
public ObjectGuid UnitGUID { get; set; }
|
||||
}
|
||||
|
||||
class TaxiNodeStatusPkt : ServerPacket
|
||||
@@ -45,7 +45,7 @@ namespace Game.Network.Packets
|
||||
}
|
||||
|
||||
public TaxiNodeStatus Status; // replace with TaxiStatus enum
|
||||
public ObjectGuid Unit;
|
||||
public ObjectGuid Unit { get; set; }
|
||||
}
|
||||
|
||||
public class ShowTaxiNodes : ServerPacket
|
||||
@@ -70,7 +70,7 @@ namespace Game.Network.Packets
|
||||
}
|
||||
|
||||
public Optional<ShowTaxiNodesWindowInfo> WindowInfo;
|
||||
public byte[] Nodes = null;
|
||||
public byte[] Nodes { get; set; } = null;
|
||||
}
|
||||
|
||||
class EnableTaxiNode : ClientPacket
|
||||
@@ -82,7 +82,7 @@ namespace Game.Network.Packets
|
||||
Unit = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid Unit;
|
||||
public ObjectGuid Unit { get; set; }
|
||||
}
|
||||
|
||||
class TaxiQueryAvailableNodes : ClientPacket
|
||||
@@ -94,7 +94,7 @@ namespace Game.Network.Packets
|
||||
Unit = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid Unit;
|
||||
public ObjectGuid Unit { get; set; }
|
||||
}
|
||||
|
||||
class ActivateTaxi : ClientPacket
|
||||
@@ -109,10 +109,10 @@ namespace Game.Network.Packets
|
||||
FlyingMountID = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public ObjectGuid Vendor;
|
||||
public uint Node;
|
||||
public uint GroundMountID = 0;
|
||||
public uint FlyingMountID = 0;
|
||||
public ObjectGuid Vendor { get; set; }
|
||||
public uint Node { get; set; }
|
||||
public uint GroundMountID { get; set; } = 0;
|
||||
public uint FlyingMountID { get; set; } = 0;
|
||||
}
|
||||
|
||||
class NewTaxiPath : ServerPacket
|
||||
@@ -132,7 +132,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public ActivateTaxiReply Reply;
|
||||
public ActivateTaxiReply Reply { get; set; }
|
||||
}
|
||||
|
||||
class TaxiRequestEarlyLanding : ClientPacket
|
||||
@@ -144,7 +144,7 @@ namespace Game.Network.Packets
|
||||
|
||||
public struct ShowTaxiNodesWindowInfo
|
||||
{
|
||||
public ObjectGuid UnitGUID;
|
||||
public int CurrentNode;
|
||||
public ObjectGuid UnitGUID { get; set; }
|
||||
public int CurrentNode { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteInt32(Status);
|
||||
}
|
||||
|
||||
public int Status;
|
||||
public int Status { get; set; }
|
||||
}
|
||||
|
||||
public class GMTicketGetCaseStatus : ClientPacket
|
||||
@@ -74,18 +74,18 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public List<GMTicketCase> Cases = new List<GMTicketCase>();
|
||||
public List<GMTicketCase> Cases { get; set; } = new List<GMTicketCase>();
|
||||
|
||||
public struct GMTicketCase
|
||||
{
|
||||
public int CaseID;
|
||||
public int CaseOpened;
|
||||
public int CaseStatus;
|
||||
public short CfgRealmID;
|
||||
public long CharacterID;
|
||||
public int WaitTimeOverrideMinutes;
|
||||
public string Url;
|
||||
public string WaitTimeOverrideMessage;
|
||||
public int CaseID { get; set; }
|
||||
public int CaseOpened { get; set; }
|
||||
public int CaseStatus { get; set; }
|
||||
public short CfgRealmID { get; set; }
|
||||
public long CharacterID { get; set; }
|
||||
public int WaitTimeOverrideMinutes { get; set; }
|
||||
public string Url { get; set; }
|
||||
public string WaitTimeOverrideMessage { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -103,8 +103,8 @@ namespace Game.Network.Packets
|
||||
|
||||
public class SupportTicketSubmitBug : ClientPacket
|
||||
{
|
||||
public SupportTicketHeader Header;
|
||||
public string Note;
|
||||
public SupportTicketHeader Header { get; set; }
|
||||
public string Note { get; set; }
|
||||
|
||||
public SupportTicketSubmitBug(WorldPacket packet) : base(packet) { }
|
||||
|
||||
@@ -117,8 +117,8 @@ namespace Game.Network.Packets
|
||||
|
||||
public class SupportTicketSubmitSuggestion : ClientPacket
|
||||
{
|
||||
public SupportTicketHeader Header;
|
||||
public string Note;
|
||||
public SupportTicketHeader Header { get; set; }
|
||||
public string Note { get; set; }
|
||||
|
||||
public SupportTicketSubmitSuggestion(WorldPacket packet) : base(packet) { }
|
||||
|
||||
@@ -189,11 +189,11 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public SupportTicketHeader Header;
|
||||
public SupportTicketChatLog ChatLog;
|
||||
public ObjectGuid TargetCharacterGUID;
|
||||
public byte ComplaintType;
|
||||
public string Note;
|
||||
public SupportTicketHeader Header { get; set; }
|
||||
public SupportTicketChatLog ChatLog { get; set; }
|
||||
public ObjectGuid TargetCharacterGUID { get; set; }
|
||||
public byte ComplaintType { get; set; }
|
||||
public string Note { get; set; }
|
||||
public Optional<SupportTicketMailInfo> MailInfo;
|
||||
public Optional<SupportTicketCalendarEventInfo> CalenderInfo;
|
||||
public Optional<SupportTicketPetInfo> PetInfo;
|
||||
@@ -203,8 +203,8 @@ namespace Game.Network.Packets
|
||||
|
||||
public struct SupportTicketChatLine
|
||||
{
|
||||
public uint Timestamp;
|
||||
public string Text;
|
||||
public uint Timestamp { get; set; }
|
||||
public string Text { get; set; }
|
||||
|
||||
public SupportTicketChatLine(WorldPacket data)
|
||||
{
|
||||
@@ -240,7 +240,7 @@ namespace Game.Network.Packets
|
||||
ReportLineIndex.Value = data.ReadUInt32();
|
||||
}
|
||||
|
||||
public List<SupportTicketChatLine> Lines = new List<SupportTicketChatLine>();
|
||||
public List<SupportTicketChatLine> Lines { get; set; } = new List<SupportTicketChatLine>();
|
||||
public Optional<uint> ReportLineIndex;
|
||||
}
|
||||
|
||||
@@ -373,7 +373,7 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public SupportSpamType ComplaintType;
|
||||
public SupportSpamType ComplaintType { get; set; }
|
||||
ComplaintOffender Offender;
|
||||
uint MailID;
|
||||
ComplaintChat Chat;
|
||||
@@ -390,9 +390,9 @@ namespace Game.Network.Packets
|
||||
TimeSinceOffence = data.ReadUInt32();
|
||||
}
|
||||
|
||||
public ObjectGuid PlayerGuid;
|
||||
public uint RealmAddress;
|
||||
public uint TimeSinceOffence;
|
||||
public ObjectGuid PlayerGuid { get; set; }
|
||||
public uint RealmAddress { get; set; }
|
||||
public uint TimeSinceOffence { get; set; }
|
||||
}
|
||||
|
||||
struct ComplaintChat
|
||||
@@ -404,9 +404,9 @@ namespace Game.Network.Packets
|
||||
MessageLog = data.ReadString(data.ReadBits<uint>(12));
|
||||
}
|
||||
|
||||
public uint Command;
|
||||
public uint ChannelID;
|
||||
public string MessageLog;
|
||||
public uint Command { get; set; }
|
||||
public uint ChannelID { get; set; }
|
||||
public string MessageLog { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -420,8 +420,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt8(Result);
|
||||
}
|
||||
|
||||
public SupportSpamType ComplaintType;
|
||||
public byte Result;
|
||||
public SupportSpamType ComplaintType { get; set; }
|
||||
public byte Result { get; set; }
|
||||
}
|
||||
|
||||
class BugReport : ClientPacket
|
||||
@@ -437,9 +437,9 @@ namespace Game.Network.Packets
|
||||
Text = _worldPacket.ReadString(textLen);
|
||||
}
|
||||
|
||||
public uint Type;
|
||||
public string Text;
|
||||
public string DiagInfo;
|
||||
public uint Type { get; set; }
|
||||
public string Text { get; set; }
|
||||
public string DiagInfo { get; set; }
|
||||
}
|
||||
|
||||
//Structs
|
||||
@@ -452,8 +452,8 @@ namespace Game.Network.Packets
|
||||
Facing = packet.ReadFloat();
|
||||
}
|
||||
|
||||
public uint MapID;
|
||||
public Vector3 Position;
|
||||
public float Facing;
|
||||
public uint MapID { get; set; }
|
||||
public Vector3 Position { get; set; }
|
||||
public float Facing { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace Game.Network.Packets
|
||||
UnkInt = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public uint UnkInt;
|
||||
public uint UnkInt { get; set; }
|
||||
}
|
||||
|
||||
class UpdateListedAuctionableTokensResponse : ServerPacket
|
||||
@@ -53,16 +53,16 @@ namespace Game.Network.Packets
|
||||
}
|
||||
|
||||
public uint UnkInt; // send CMSG_UPDATE_WOW_TOKEN_AUCTIONABLE_LIST
|
||||
public TokenResult Result;
|
||||
public TokenResult Result { get; set; }
|
||||
List<AuctionableTokenAuctionable> AuctionableTokenAuctionableList =new List<AuctionableTokenAuctionable>();
|
||||
|
||||
struct AuctionableTokenAuctionable
|
||||
{
|
||||
public ulong UnkInt1;
|
||||
public uint UnkInt2;
|
||||
public uint Owner;
|
||||
public ulong BuyoutPrice;
|
||||
public uint EndTime;
|
||||
public ulong UnkInt1 { get; set; }
|
||||
public uint UnkInt2 { get; set; }
|
||||
public uint Owner { get; set; }
|
||||
public ulong BuyoutPrice { get; set; }
|
||||
public uint EndTime { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ namespace Game.Network.Packets
|
||||
UnkInt = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public uint UnkInt;
|
||||
public uint UnkInt { get; set; }
|
||||
}
|
||||
|
||||
class WowTokenMarketPriceResponse : ServerPacket
|
||||
@@ -90,9 +90,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(UnkInt2);
|
||||
}
|
||||
|
||||
public ulong CurrentMarketPrice;
|
||||
public ulong CurrentMarketPrice { get; set; }
|
||||
public uint UnkInt; // send CMSG_REQUEST_WOW_TOKEN_MARKET_PRICE
|
||||
public TokenResult Result;
|
||||
public uint UnkInt2 = 0;
|
||||
public TokenResult Result { get; set; }
|
||||
public uint UnkInt2 { get; set; } = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,8 +30,8 @@ namespace Game.Network.Packets
|
||||
TotemGUID = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid TotemGUID;
|
||||
public byte Slot;
|
||||
public ObjectGuid TotemGUID { get; set; }
|
||||
public byte Slot { get; set; }
|
||||
}
|
||||
|
||||
class TotemCreated : ServerPacket
|
||||
@@ -49,12 +49,12 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public ObjectGuid Totem;
|
||||
public uint SpellID;
|
||||
public uint Duration;
|
||||
public byte Slot;
|
||||
public float TimeMod = 1.0f;
|
||||
public bool CannotDismiss;
|
||||
public ObjectGuid Totem { get; set; }
|
||||
public uint SpellID { get; set; }
|
||||
public uint Duration { get; set; }
|
||||
public byte Slot { get; set; }
|
||||
public float TimeMod { get; set; } = 1.0f;
|
||||
public bool CannotDismiss { get; set; }
|
||||
}
|
||||
|
||||
class TotemMoved : ServerPacket
|
||||
@@ -68,8 +68,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(Totem);
|
||||
}
|
||||
|
||||
public ObjectGuid Totem;
|
||||
public byte Slot;
|
||||
public byte NewSlot;
|
||||
public ObjectGuid Totem { get; set; }
|
||||
public byte Slot { get; set; }
|
||||
public byte NewSlot { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace Game.Network.Packets
|
||||
Guid = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
}
|
||||
|
||||
class UseToy : ClientPacket
|
||||
@@ -43,8 +43,8 @@ namespace Game.Network.Packets
|
||||
Cast.Read(_worldPacket);
|
||||
}
|
||||
|
||||
public SpellCastRequest Cast = new SpellCastRequest();
|
||||
public uint ItemID;
|
||||
public SpellCastRequest Cast { get; set; } = new SpellCastRequest();
|
||||
public uint ItemID { get; set; }
|
||||
}
|
||||
|
||||
class AccountToysUpdate : ServerPacket
|
||||
@@ -69,7 +69,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public bool IsFullUpdate = false;
|
||||
public Dictionary<uint, bool> Toys = new Dictionary<uint, bool>();
|
||||
public bool IsFullUpdate { get; set; } = false;
|
||||
public Dictionary<uint, bool> Toys { get; set; } = new Dictionary<uint, bool>();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace Game.Network.Packets
|
||||
StateIndex = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public uint StateIndex;
|
||||
public uint StateIndex { get; set; }
|
||||
}
|
||||
|
||||
public class BeginTrade : ClientPacket
|
||||
@@ -64,7 +64,7 @@ namespace Game.Network.Packets
|
||||
TradeSlot = _worldPacket.ReadUInt8();
|
||||
}
|
||||
|
||||
public byte TradeSlot;
|
||||
public byte TradeSlot { get; set; }
|
||||
}
|
||||
|
||||
public class IgnoreTrade : ClientPacket
|
||||
@@ -83,7 +83,7 @@ namespace Game.Network.Packets
|
||||
Guid = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
}
|
||||
|
||||
public class SetTradeCurrency : ClientPacket
|
||||
@@ -96,8 +96,8 @@ namespace Game.Network.Packets
|
||||
Quantity = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public uint Type;
|
||||
public uint Quantity;
|
||||
public uint Type { get; set; }
|
||||
public uint Quantity { get; set; }
|
||||
}
|
||||
|
||||
public class SetTradeGold : ClientPacket
|
||||
@@ -109,7 +109,7 @@ namespace Game.Network.Packets
|
||||
Coinage = _worldPacket.ReadUInt64();
|
||||
}
|
||||
|
||||
public ulong Coinage;
|
||||
public ulong Coinage { get; set; }
|
||||
}
|
||||
|
||||
public class SetTradeItem : ClientPacket
|
||||
@@ -123,9 +123,9 @@ namespace Game.Network.Packets
|
||||
ItemSlotInPack = _worldPacket.ReadUInt8();
|
||||
}
|
||||
|
||||
public byte TradeSlot;
|
||||
public byte PackSlot;
|
||||
public byte ItemSlotInPack;
|
||||
public byte TradeSlot { get; set; }
|
||||
public byte PackSlot { get; set; }
|
||||
public byte ItemSlotInPack { get; set; }
|
||||
}
|
||||
|
||||
public class UnacceptTrade : ClientPacket
|
||||
@@ -172,17 +172,17 @@ namespace Game.Network.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public TradeStatus Status = TradeStatus.Initiated;
|
||||
public byte TradeSlot;
|
||||
public ObjectGuid PartnerAccount;
|
||||
public ObjectGuid Partner;
|
||||
public int CurrencyType;
|
||||
public int CurrencyQuantity;
|
||||
public bool FailureForYou;
|
||||
public InventoryResult BagResult;
|
||||
public TradeStatus Status { get; set; } = TradeStatus.Initiated;
|
||||
public byte TradeSlot { get; set; }
|
||||
public ObjectGuid PartnerAccount { get; set; }
|
||||
public ObjectGuid Partner { get; set; }
|
||||
public int CurrencyType { get; set; }
|
||||
public int CurrencyQuantity { get; set; }
|
||||
public bool FailureForYou { get; set; }
|
||||
public InventoryResult BagResult { get; set; }
|
||||
public uint ItemID;
|
||||
public uint ID;
|
||||
public bool PartnerIsSameBnetAccount;
|
||||
public uint ID { get; set; }
|
||||
public bool PartnerIsSameBnetAccount { get; set; }
|
||||
}
|
||||
|
||||
public class TradeUpdated : ServerPacket
|
||||
@@ -222,15 +222,15 @@ namespace Game.Network.Packets
|
||||
gem.Write(data);
|
||||
}
|
||||
|
||||
public ItemInstance Item;
|
||||
public int EnchantID;
|
||||
public int OnUseEnchantmentID;
|
||||
public ObjectGuid Creator;
|
||||
public int Charges;
|
||||
public bool Lock;
|
||||
public uint MaxDurability;
|
||||
public uint Durability;
|
||||
public List<ItemGemData> Gems = new List<ItemGemData>();
|
||||
public ItemInstance Item { get; set; }
|
||||
public int EnchantID { get; set; }
|
||||
public int OnUseEnchantmentID { get; set; }
|
||||
public ObjectGuid Creator { get; set; }
|
||||
public int Charges { get; set; }
|
||||
public bool Lock { get; set; }
|
||||
public uint MaxDurability { get; set; }
|
||||
public uint Durability { get; set; }
|
||||
public List<ItemGemData> Gems { get; set; } = new List<ItemGemData>();
|
||||
}
|
||||
|
||||
public class TradeItem
|
||||
@@ -248,21 +248,21 @@ namespace Game.Network.Packets
|
||||
Unwrapped.Value.Write(data);
|
||||
}
|
||||
|
||||
public byte Slot;
|
||||
public ItemInstance Item = new ItemInstance();
|
||||
public int StackCount;
|
||||
public ObjectGuid GiftCreator;
|
||||
public byte Slot { get; set; }
|
||||
public ItemInstance Item { get; set; } = new ItemInstance();
|
||||
public int StackCount { get; set; }
|
||||
public ObjectGuid GiftCreator { get; set; }
|
||||
public Optional<UnwrappedTradeItem> Unwrapped;
|
||||
}
|
||||
|
||||
public ulong Gold;
|
||||
public uint CurrentStateIndex;
|
||||
public byte WhichPlayer;
|
||||
public uint ClientStateIndex;
|
||||
public List<TradeItem> Items = new List<TradeItem>();
|
||||
public int CurrencyType;
|
||||
public uint ID;
|
||||
public int ProposedEnchantment;
|
||||
public int CurrencyQuantity;
|
||||
public ulong Gold { get; set; }
|
||||
public uint CurrentStateIndex { get; set; }
|
||||
public byte WhichPlayer { get; set; }
|
||||
public uint ClientStateIndex { get; set; }
|
||||
public List<TradeItem> Items { get; set; } = new List<TradeItem>();
|
||||
public int CurrencyType { get; set; }
|
||||
public uint ID { get; set; }
|
||||
public int ProposedEnchantment { get; set; }
|
||||
public int CurrencyQuantity { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,9 +40,9 @@ namespace Game.Network.Packets
|
||||
CurrentSpecOnly = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public ObjectGuid Npc;
|
||||
public Array<TransmogrifyItem> Items = new Array<TransmogrifyItem>(13);
|
||||
public bool CurrentSpecOnly;
|
||||
public ObjectGuid Npc { get; set; }
|
||||
public Array<TransmogrifyItem> Items { get; set; } = new Array<TransmogrifyItem>(13);
|
||||
public bool CurrentSpecOnly { get; set; }
|
||||
}
|
||||
|
||||
class TransmogCollectionUpdate : ServerPacket
|
||||
@@ -59,9 +59,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(itemModifiedAppearanceId);
|
||||
}
|
||||
|
||||
public bool IsFullUpdate;
|
||||
public bool IsSetFavorite;
|
||||
public List<uint> FavoriteAppearances = new List<uint>();
|
||||
public bool IsFullUpdate { get; set; }
|
||||
public bool IsSetFavorite { get; set; }
|
||||
public List<uint> FavoriteAppearances { get; set; } = new List<uint>();
|
||||
}
|
||||
|
||||
struct TransmogrifyItem
|
||||
@@ -73,8 +73,8 @@ namespace Game.Network.Packets
|
||||
SpellItemEnchantmentID = data.ReadInt32();
|
||||
}
|
||||
|
||||
public int ItemModifiedAppearanceID;
|
||||
public uint Slot;
|
||||
public int SpellItemEnchantmentID;
|
||||
public int ItemModifiedAppearanceID { get; set; }
|
||||
public uint Slot { get; set; }
|
||||
public int SpellItemEnchantmentID { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,8 +30,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteBytes(Data);
|
||||
}
|
||||
|
||||
public uint NumObjUpdates;
|
||||
public ushort MapID;
|
||||
public byte[] Data;
|
||||
public uint NumObjUpdates { get; set; }
|
||||
public ushort MapID { get; set; }
|
||||
public byte[] Data { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,9 +31,9 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(VehicleRecID);
|
||||
}
|
||||
|
||||
public ObjectGuid MoverGUID;
|
||||
public uint SequenceIndex;
|
||||
public uint VehicleRecID;
|
||||
public ObjectGuid MoverGUID { get; set; }
|
||||
public uint SequenceIndex { get; set; }
|
||||
public uint VehicleRecID { get; set; }
|
||||
}
|
||||
|
||||
public class MoveSetVehicleRecIdAck : ClientPacket
|
||||
@@ -46,8 +46,8 @@ namespace Game.Network.Packets
|
||||
VehicleRecID = _worldPacket.ReadInt32(); ;
|
||||
}
|
||||
|
||||
public MovementAck Data;
|
||||
public int VehicleRecID;
|
||||
public MovementAck Data { get; set; }
|
||||
public int VehicleRecID { get; set; }
|
||||
}
|
||||
|
||||
public class SetVehicleRecID : ServerPacket
|
||||
@@ -60,8 +60,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(VehicleRecID);
|
||||
}
|
||||
|
||||
public ObjectGuid VehicleGUID;
|
||||
public uint VehicleRecID;
|
||||
public ObjectGuid VehicleGUID { get; set; }
|
||||
public uint VehicleRecID { get; set; }
|
||||
}
|
||||
|
||||
public class OnCancelExpectedRideVehicleAura : ServerPacket
|
||||
@@ -80,7 +80,7 @@ namespace Game.Network.Packets
|
||||
Status = MovementExtensions.ReadMovementInfo(_worldPacket);
|
||||
}
|
||||
|
||||
public MovementInfo Status;
|
||||
public MovementInfo Status { get; set; }
|
||||
}
|
||||
|
||||
public class RequestVehiclePrevSeat : ClientPacket
|
||||
@@ -108,9 +108,9 @@ namespace Game.Network.Packets
|
||||
DstSeatIndex = _worldPacket.ReadUInt8();
|
||||
}
|
||||
|
||||
public ObjectGuid DstVehicle;
|
||||
public MovementInfo Status;
|
||||
public byte DstSeatIndex = 255;
|
||||
public ObjectGuid DstVehicle { get; set; }
|
||||
public MovementInfo Status { get; set; }
|
||||
public byte DstSeatIndex { get; set; } = 255;
|
||||
}
|
||||
|
||||
public class RequestVehicleSwitchSeat : ClientPacket
|
||||
@@ -123,8 +123,8 @@ namespace Game.Network.Packets
|
||||
SeatIndex = _worldPacket.ReadUInt8();
|
||||
}
|
||||
|
||||
public ObjectGuid Vehicle;
|
||||
public byte SeatIndex = 255;
|
||||
public ObjectGuid Vehicle { get; set; }
|
||||
public byte SeatIndex { get; set; } = 255;
|
||||
}
|
||||
|
||||
public class RideVehicleInteract : ClientPacket
|
||||
@@ -136,7 +136,7 @@ namespace Game.Network.Packets
|
||||
Vehicle = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid Vehicle;
|
||||
public ObjectGuid Vehicle { get; set; }
|
||||
}
|
||||
|
||||
public class EjectPassenger : ClientPacket
|
||||
@@ -148,7 +148,7 @@ namespace Game.Network.Packets
|
||||
Passenger = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid Passenger;
|
||||
public ObjectGuid Passenger { get; set; }
|
||||
}
|
||||
|
||||
public class RequestVehicleExit : ClientPacket
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteInt32(Result);
|
||||
}
|
||||
|
||||
public VoidTransferError Result;
|
||||
public VoidTransferError Result { get; set; }
|
||||
}
|
||||
|
||||
class UnlockVoidStorage : ClientPacket
|
||||
@@ -45,7 +45,7 @@ namespace Game.Network.Packets
|
||||
Npc = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid Npc;
|
||||
public ObjectGuid Npc { get; set; }
|
||||
}
|
||||
|
||||
class QueryVoidStorage : ClientPacket
|
||||
@@ -57,7 +57,7 @@ namespace Game.Network.Packets
|
||||
Npc = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid Npc;
|
||||
public ObjectGuid Npc { get; set; }
|
||||
}
|
||||
|
||||
class VoidStorageFailed : ServerPacket
|
||||
@@ -69,7 +69,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt8(Reason);
|
||||
}
|
||||
|
||||
public byte Reason = 0;
|
||||
public byte Reason { get; set; } = 0;
|
||||
}
|
||||
|
||||
class VoidStorageContents : ServerPacket
|
||||
@@ -85,7 +85,7 @@ namespace Game.Network.Packets
|
||||
voidItem.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public List<VoidItem> Items = new List<VoidItem>();
|
||||
public List<VoidItem> Items { get; set; } = new List<VoidItem>();
|
||||
}
|
||||
|
||||
class VoidStorageTransfer : ClientPacket
|
||||
@@ -105,9 +105,9 @@ namespace Game.Network.Packets
|
||||
Withdrawals[i] = _worldPacket.ReadPackedGuid();
|
||||
}
|
||||
|
||||
public ObjectGuid[] Withdrawals = new ObjectGuid[(int)SharedConst.VoidStorageMaxWithdraw];
|
||||
public ObjectGuid[] Deposits = new ObjectGuid[(int)SharedConst.VoidStorageMaxDeposit];
|
||||
public ObjectGuid Npc;
|
||||
public ObjectGuid[] Withdrawals { get; set; } = new ObjectGuid[(int)SharedConst.VoidStorageMaxWithdraw];
|
||||
public ObjectGuid[] Deposits { get; set; } = new ObjectGuid[(int)SharedConst.VoidStorageMaxDeposit];
|
||||
public ObjectGuid Npc { get; set; }
|
||||
}
|
||||
|
||||
class VoidStorageTransferChanges : ServerPacket
|
||||
@@ -127,8 +127,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WritePackedGuid(removedItem);
|
||||
}
|
||||
|
||||
public List<ObjectGuid> RemovedItems = new List<ObjectGuid>();
|
||||
public List<VoidItem> AddedItems = new List<VoidItem>();
|
||||
public List<ObjectGuid> RemovedItems { get; set; } = new List<ObjectGuid>();
|
||||
public List<VoidItem> AddedItems { get; set; } = new List<VoidItem>();
|
||||
}
|
||||
|
||||
class SwapVoidItem : ClientPacket
|
||||
@@ -142,9 +142,9 @@ namespace Game.Network.Packets
|
||||
DstSlot = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
public ObjectGuid Npc;
|
||||
public ObjectGuid VoidItemGuid;
|
||||
public uint DstSlot;
|
||||
public ObjectGuid Npc { get; set; }
|
||||
public ObjectGuid VoidItemGuid { get; set; }
|
||||
public uint DstSlot { get; set; }
|
||||
}
|
||||
|
||||
class VoidItemSwapResponse : ServerPacket
|
||||
@@ -159,10 +159,10 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteUInt32(VoidItemSlotB);
|
||||
}
|
||||
|
||||
public ObjectGuid VoidItemA;
|
||||
public ObjectGuid VoidItemB;
|
||||
public uint VoidItemSlotA;
|
||||
public uint VoidItemSlotB;
|
||||
public ObjectGuid VoidItemA { get; set; }
|
||||
public ObjectGuid VoidItemB { get; set; }
|
||||
public uint VoidItemSlotA { get; set; }
|
||||
public uint VoidItemSlotB { get; set; }
|
||||
}
|
||||
|
||||
struct VoidItem
|
||||
@@ -175,9 +175,9 @@ namespace Game.Network.Packets
|
||||
Item.Write(data);
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public ObjectGuid Creator;
|
||||
public uint Slot;
|
||||
public ItemInstance Item;
|
||||
public ObjectGuid Guid { get; set; }
|
||||
public ObjectGuid Creator { get; set; }
|
||||
public uint Slot { get; set; }
|
||||
public ItemInstance Item { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace Game.Network.Packets
|
||||
Data = new ByteBuffer(_worldPacket.ReadBytes(size));
|
||||
}
|
||||
|
||||
public ByteBuffer Data;
|
||||
public ByteBuffer Data { get; set; }
|
||||
}
|
||||
|
||||
class WardenDataServer : ServerPacket
|
||||
@@ -63,7 +63,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteBytes(Data);
|
||||
}
|
||||
|
||||
public ByteBuffer Data;
|
||||
public ByteBuffer Data { get; set; }
|
||||
}
|
||||
|
||||
class WardenModuleTransfer : ByteBuffer
|
||||
@@ -77,9 +77,9 @@ namespace Game.Network.Packets
|
||||
return GetData();
|
||||
}
|
||||
|
||||
public WardenOpcodes Command;
|
||||
public ushort DataSize;
|
||||
public byte[] Data = new byte[500];
|
||||
public WardenOpcodes Command { get; set; }
|
||||
public ushort DataSize { get; set; }
|
||||
public byte[] Data { get; set; } = new byte[500];
|
||||
}
|
||||
|
||||
class WardenModuleUse : ByteBuffer
|
||||
@@ -94,10 +94,10 @@ namespace Game.Network.Packets
|
||||
return GetData();
|
||||
}
|
||||
|
||||
public WardenOpcodes Command;
|
||||
public byte[] ModuleId = new byte[16];
|
||||
public byte[] ModuleKey = new byte[16];
|
||||
public uint Size;
|
||||
public WardenOpcodes Command { get; set; }
|
||||
public byte[] ModuleId { get; set; } = new byte[16];
|
||||
public byte[] ModuleKey { get; set; } = new byte[16];
|
||||
public uint Size { get; set; }
|
||||
}
|
||||
|
||||
class WardenHashRequest : ByteBuffer
|
||||
@@ -110,8 +110,8 @@ namespace Game.Network.Packets
|
||||
return GetData();
|
||||
}
|
||||
|
||||
public WardenOpcodes Command;
|
||||
public byte[] Seed = new byte[16];
|
||||
public WardenOpcodes Command { get; set; }
|
||||
public byte[] Seed { get; set; } = new byte[16];
|
||||
}
|
||||
|
||||
class WardenInitModuleRequest : ByteBuffer
|
||||
@@ -149,31 +149,31 @@ namespace Game.Network.Packets
|
||||
return GetData();
|
||||
}
|
||||
|
||||
public WardenOpcodes Command1;
|
||||
public ushort Size1;
|
||||
public uint CheckSumm1;
|
||||
public byte Unk1;
|
||||
public byte Unk2;
|
||||
public byte Type;
|
||||
public byte String_library1;
|
||||
public uint[] Function1 = new uint[4];
|
||||
public WardenOpcodes Command1 { get; set; }
|
||||
public ushort Size1 { get; set; }
|
||||
public uint CheckSumm1 { get; set; }
|
||||
public byte Unk1 { get; set; }
|
||||
public byte Unk2 { get; set; }
|
||||
public byte Type { get; set; }
|
||||
public byte String_library1 { get; set; }
|
||||
public uint[] Function1 { get; set; } = new uint[4];
|
||||
|
||||
public WardenOpcodes Command2;
|
||||
public ushort Size2;
|
||||
public uint CheckSumm2;
|
||||
public byte Unk3;
|
||||
public byte Unk4;
|
||||
public byte String_library2;
|
||||
public uint Function2;
|
||||
public byte Function2_set;
|
||||
public WardenOpcodes Command2 { get; set; }
|
||||
public ushort Size2 { get; set; }
|
||||
public uint CheckSumm2 { get; set; }
|
||||
public byte Unk3 { get; set; }
|
||||
public byte Unk4 { get; set; }
|
||||
public byte String_library2 { get; set; }
|
||||
public uint Function2 { get; set; }
|
||||
public byte Function2_set { get; set; }
|
||||
|
||||
public WardenOpcodes Command3;
|
||||
public ushort Size3;
|
||||
public uint CheckSumm3;
|
||||
public byte Unk5;
|
||||
public byte Unk6;
|
||||
public byte String_library3;
|
||||
public uint Function3;
|
||||
public byte Function3_set;
|
||||
public WardenOpcodes Command3 { get; set; }
|
||||
public ushort Size3 { get; set; }
|
||||
public uint CheckSumm3 { get; set; }
|
||||
public byte Unk5 { get; set; }
|
||||
public byte Unk6 { get; set; }
|
||||
public byte String_library3 { get; set; }
|
||||
public uint Function3 { get; set; }
|
||||
public byte Function3_set { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace Game.Network.Packets
|
||||
_worldPacket.WriteString(AccountName);
|
||||
}
|
||||
|
||||
public string AccountName;
|
||||
public string AccountName { get; set; }
|
||||
}
|
||||
|
||||
public class WhoRequestPkt : ClientPacket
|
||||
@@ -61,8 +61,8 @@ namespace Game.Network.Packets
|
||||
Areas.Add(_worldPacket.ReadInt32());
|
||||
}
|
||||
|
||||
public WhoRequest Request = new WhoRequest();
|
||||
public List<int> Areas= new List<int>();
|
||||
public WhoRequest Request { get; set; } = new WhoRequest();
|
||||
public List<int> Areas{ get; set; } = new List<int>();
|
||||
}
|
||||
|
||||
public class WhoResponsePkt : ServerPacket
|
||||
@@ -77,7 +77,7 @@ namespace Game.Network.Packets
|
||||
Response.ForEach(p => p.Write(_worldPacket));
|
||||
}
|
||||
|
||||
public List<WhoEntry> Response = new List<WhoEntry>();
|
||||
public List<WhoEntry> Response { get; set; } = new List<WhoEntry>();
|
||||
}
|
||||
|
||||
public struct WhoRequestServerInfo
|
||||
@@ -89,9 +89,9 @@ namespace Game.Network.Packets
|
||||
RequesterVirtualRealmAddress = data.ReadUInt32();
|
||||
}
|
||||
|
||||
public int FactionGroup;
|
||||
public int Locale;
|
||||
public uint RequesterVirtualRealmAddress;
|
||||
public int FactionGroup { get; set; }
|
||||
public int Locale { get; set; }
|
||||
public uint RequesterVirtualRealmAddress { get; set; }
|
||||
}
|
||||
|
||||
public class WhoRequest
|
||||
@@ -130,18 +130,18 @@ namespace Game.Network.Packets
|
||||
ServerInfo.Value.Read(data);
|
||||
}
|
||||
|
||||
public int MinLevel;
|
||||
public int MaxLevel;
|
||||
public string Name;
|
||||
public string VirtualRealmName;
|
||||
public string Guild;
|
||||
public string GuildVirtualRealmName;
|
||||
public int RaceFilter = -1;
|
||||
public int ClassFilter = -1;
|
||||
public List<string> Words = new List<string>();
|
||||
public bool ShowEnemies;
|
||||
public bool ShowArenaPlayers;
|
||||
public bool ExactName;
|
||||
public int MinLevel { get; set; }
|
||||
public int MaxLevel { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string VirtualRealmName { get; set; }
|
||||
public string Guild { get; set; }
|
||||
public string GuildVirtualRealmName { get; set; }
|
||||
public int RaceFilter { get; set; } = -1;
|
||||
public int ClassFilter { get; set; } = -1;
|
||||
public List<string> Words { get; set; } = new List<string>();
|
||||
public bool ShowEnemies { get; set; }
|
||||
public bool ShowArenaPlayers { get; set; }
|
||||
public bool ExactName { get; set; }
|
||||
public Optional<WhoRequestServerInfo> ServerInfo;
|
||||
}
|
||||
|
||||
@@ -162,11 +162,11 @@ namespace Game.Network.Packets
|
||||
data.FlushBits();
|
||||
}
|
||||
|
||||
public PlayerGuidLookupData PlayerData = new PlayerGuidLookupData();
|
||||
public ObjectGuid GuildGUID;
|
||||
public uint GuildVirtualRealmAddress;
|
||||
public string GuildName = "";
|
||||
public int AreaID;
|
||||
public bool IsGM;
|
||||
public PlayerGuidLookupData PlayerData { get; set; } = new PlayerGuidLookupData();
|
||||
public ObjectGuid GuildGUID { get; set; }
|
||||
public uint GuildVirtualRealmAddress { get; set; }
|
||||
public string GuildName { get; set; } = "";
|
||||
public int AreaID { get; set; }
|
||||
public bool IsGM { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,9 +48,9 @@ namespace Game.Network.Packets
|
||||
Worldstates.Add(new WorldStateInfo(variableID, value ? 1 : 0));
|
||||
}
|
||||
|
||||
public uint AreaID;
|
||||
public uint SubareaID;
|
||||
public uint MapID;
|
||||
public uint AreaID { get; set; }
|
||||
public uint SubareaID { get; set; }
|
||||
public uint MapID { get; set; }
|
||||
|
||||
List<WorldStateInfo> Worldstates = new List<WorldStateInfo>();
|
||||
|
||||
@@ -62,8 +62,8 @@ namespace Game.Network.Packets
|
||||
Value = value;
|
||||
}
|
||||
|
||||
public uint VariableID;
|
||||
public int Value;
|
||||
public uint VariableID { get; set; }
|
||||
public int Value { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -79,8 +79,8 @@ namespace Game.Network.Packets
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public int Value;
|
||||
public bool Hidden; // @todo: research
|
||||
public uint VariableID;
|
||||
public int Value { get; set; }
|
||||
public bool Hidden; // @todo: researh
|
||||
public uint VariableID { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -169,7 +169,7 @@ namespace Game
|
||||
|
||||
foreach (var pair in _forcedReactions)
|
||||
{
|
||||
ForcedReaction forcedReaction;
|
||||
ForcedReaction forcedReaction = new ForcedReaction();
|
||||
forcedReaction.Faction = (int)pair.Key;
|
||||
forcedReaction.Reaction = (int)pair.Value;
|
||||
|
||||
|
||||
@@ -289,7 +289,7 @@ namespace Game.Scenarios
|
||||
|
||||
if (Global.CriteriaMgr.GetCriteriaTree(step.CriteriaTreeID) != null)
|
||||
{
|
||||
BonusObjectiveData bonusObjectiveData;
|
||||
BonusObjectiveData bonusObjectiveData = new BonusObjectiveData();
|
||||
bonusObjectiveData.BonusObjectiveID = (int)step.Id;
|
||||
bonusObjectiveData.ObjectiveComplete = GetStepState(step) == ScenarioStepState.Done;
|
||||
bonusObjectivesData.Add(bonusObjectiveData);
|
||||
|
||||
+11
-11
@@ -3519,7 +3519,7 @@ namespace Game.Spells
|
||||
{
|
||||
foreach (SpellPowerCost cost in m_powerCost)
|
||||
{
|
||||
SpellPowerData powerData;
|
||||
SpellPowerData powerData = new SpellPowerData();
|
||||
powerData.Type = cost.Power;
|
||||
powerData.Cost = m_caster.GetPower(cost.Power);
|
||||
castData.RemainingPower.Add(powerData);
|
||||
@@ -3637,7 +3637,7 @@ namespace Game.Spells
|
||||
castData.RemainingPower = new List<SpellPowerData>();
|
||||
foreach (SpellPowerCost cost in m_powerCost)
|
||||
{
|
||||
SpellPowerData powerData;
|
||||
SpellPowerData powerData = new SpellPowerData();
|
||||
powerData.Type = cost.Power;
|
||||
powerData.Cost = m_caster.GetPower(cost.Power);
|
||||
castData.RemainingPower.Add(powerData);
|
||||
@@ -3827,7 +3827,7 @@ namespace Game.Spells
|
||||
|
||||
void ExecuteLogEffectTakeTargetPower(uint effIndex, Unit target, PowerType powerType, uint points, float amplitude)
|
||||
{
|
||||
SpellLogEffectPowerDrainParams spellLogEffectPowerDrainParams;
|
||||
SpellLogEffectPowerDrainParams spellLogEffectPowerDrainParams = new SpellLogEffectPowerDrainParams();
|
||||
|
||||
spellLogEffectPowerDrainParams.Victim = target.GetGUID();
|
||||
spellLogEffectPowerDrainParams.Points = points;
|
||||
@@ -3839,7 +3839,7 @@ namespace Game.Spells
|
||||
|
||||
void ExecuteLogEffectExtraAttacks(uint effIndex, Unit victim, uint numAttacks)
|
||||
{
|
||||
SpellLogEffectExtraAttacksParams spellLogEffectExtraAttacksParams;
|
||||
SpellLogEffectExtraAttacksParams spellLogEffectExtraAttacksParams = new SpellLogEffectExtraAttacksParams();
|
||||
spellLogEffectExtraAttacksParams.Victim = victim.GetGUID();
|
||||
spellLogEffectExtraAttacksParams.NumAttacks = numAttacks;
|
||||
|
||||
@@ -3859,7 +3859,7 @@ namespace Game.Spells
|
||||
|
||||
void ExecuteLogEffectDurabilityDamage(uint effIndex, Unit victim, int itemId, int amount)
|
||||
{
|
||||
SpellLogEffectDurabilityDamageParams spellLogEffectDurabilityDamageParams;
|
||||
SpellLogEffectDurabilityDamageParams spellLogEffectDurabilityDamageParams = new SpellLogEffectDurabilityDamageParams();
|
||||
spellLogEffectDurabilityDamageParams.Victim = victim.GetGUID();
|
||||
spellLogEffectDurabilityDamageParams.ItemID = itemId;
|
||||
spellLogEffectDurabilityDamageParams.Amount = amount;
|
||||
@@ -3869,7 +3869,7 @@ namespace Game.Spells
|
||||
|
||||
void ExecuteLogEffectOpenLock(uint effIndex, WorldObject obj)
|
||||
{
|
||||
SpellLogEffectGenericVictimParams spellLogEffectGenericVictimParams;
|
||||
SpellLogEffectGenericVictimParams spellLogEffectGenericVictimParams = new SpellLogEffectGenericVictimParams();
|
||||
spellLogEffectGenericVictimParams.Victim = obj.GetGUID();
|
||||
|
||||
_genericVictimTargets.Add(effIndex, spellLogEffectGenericVictimParams);
|
||||
@@ -3877,7 +3877,7 @@ namespace Game.Spells
|
||||
|
||||
void ExecuteLogEffectCreateItem(uint effIndex, uint entry)
|
||||
{
|
||||
SpellLogEffectTradeSkillItemParams spellLogEffectTradeSkillItemParams;
|
||||
SpellLogEffectTradeSkillItemParams spellLogEffectTradeSkillItemParams = new SpellLogEffectTradeSkillItemParams();
|
||||
spellLogEffectTradeSkillItemParams.ItemID = (int)entry;
|
||||
|
||||
_tradeSkillTargets.Add(effIndex, spellLogEffectTradeSkillItemParams);
|
||||
@@ -3885,7 +3885,7 @@ namespace Game.Spells
|
||||
|
||||
void ExecuteLogEffectDestroyItem(uint effIndex, uint entry)
|
||||
{
|
||||
SpellLogEffectFeedPetParams spellLogEffectFeedPetParams;
|
||||
SpellLogEffectFeedPetParams spellLogEffectFeedPetParams = new SpellLogEffectFeedPetParams();
|
||||
spellLogEffectFeedPetParams.ItemID = (int)entry;
|
||||
|
||||
_feedPetTargets.Add(effIndex, spellLogEffectFeedPetParams);
|
||||
@@ -3893,7 +3893,7 @@ namespace Game.Spells
|
||||
|
||||
void ExecuteLogEffectSummonObject(uint effIndex, WorldObject obj)
|
||||
{
|
||||
SpellLogEffectGenericVictimParams spellLogEffectGenericVictimParams;
|
||||
SpellLogEffectGenericVictimParams spellLogEffectGenericVictimParams = new SpellLogEffectGenericVictimParams();
|
||||
spellLogEffectGenericVictimParams.Victim = obj.GetGUID();
|
||||
|
||||
_genericVictimTargets.Add(effIndex, spellLogEffectGenericVictimParams);
|
||||
@@ -3901,7 +3901,7 @@ namespace Game.Spells
|
||||
|
||||
void ExecuteLogEffectUnsummonObject(uint effIndex, WorldObject obj)
|
||||
{
|
||||
SpellLogEffectGenericVictimParams spellLogEffectGenericVictimParams;
|
||||
SpellLogEffectGenericVictimParams spellLogEffectGenericVictimParams = new SpellLogEffectGenericVictimParams();
|
||||
spellLogEffectGenericVictimParams.Victim = obj.GetGUID();
|
||||
|
||||
_genericVictimTargets.Add(effIndex, spellLogEffectGenericVictimParams);
|
||||
@@ -3909,7 +3909,7 @@ namespace Game.Spells
|
||||
|
||||
void ExecuteLogEffectResurrect(uint effIndex, Unit target)
|
||||
{
|
||||
SpellLogEffectGenericVictimParams spellLogEffectGenericVictimParams;
|
||||
SpellLogEffectGenericVictimParams spellLogEffectGenericVictimParams = new SpellLogEffectGenericVictimParams();
|
||||
spellLogEffectGenericVictimParams.Victim = target.GetGUID();
|
||||
|
||||
_genericVictimTargets.Add(effIndex, spellLogEffectGenericVictimParams);
|
||||
|
||||
Reference in New Issue
Block a user