Skip to content

Commit

Permalink
Rename ItemData::DynamicFlags2 to ZoneFlags
Browse files Browse the repository at this point in the history
  • Loading branch information
Shauren committed Dec 18, 2024
1 parent 7a03593 commit b69c51b
Show file tree
Hide file tree
Showing 50 changed files with 90 additions and 90 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ public override IItemData ReadCreateItemData(Packet packet, UpdateFieldFlag flag
data.Gems.Resize(packet.ReadUInt32());
if ((flags & UpdateFieldFlag.Owner) != UpdateFieldFlag.None)
{
data.DynamicFlags2 = packet.ReadUInt32("DynamicFlags2", indexes);
data.DynamicFlags2 = packet.ReadUInt32("ZoneFlags", indexes);
}
Substructures.ItemHandler.ReadItemBonusKey(packet, indexes, "ItemBonusKey");
if ((flags & UpdateFieldFlag.Owner) != UpdateFieldFlag.None)
Expand Down Expand Up @@ -386,7 +386,7 @@ public override IItemData ReadUpdateItemData(Packet packet, params object[] inde
}
if (changesMask[18])
{
data.DynamicFlags2 = packet.ReadUInt32("DynamicFlags2", indexes);
data.DynamicFlags2 = packet.ReadUInt32("ZoneFlags", indexes);
}
if (changesMask[19])
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public override IItemData ReadCreateItemData(Packet packet, UpdateFieldFlag flag
data.Gems.Resize(packet.ReadUInt32());
if ((flags & UpdateFieldFlag.Owner) != UpdateFieldFlag.None)
{
data.DynamicFlags2 = packet.ReadUInt32("DynamicFlags2", indexes);
data.DynamicFlags2 = packet.ReadUInt32("ZoneFlags", indexes);
}
Substructures.ItemHandler.ReadItemBonusKey(packet, indexes, "ItemBonusKey");
if ((flags & UpdateFieldFlag.Owner) != UpdateFieldFlag.None)
Expand Down Expand Up @@ -385,7 +385,7 @@ public override IItemData ReadUpdateItemData(Packet packet, params object[] inde
}
if (changesMask[18])
{
data.DynamicFlags2 = packet.ReadUInt32("DynamicFlags2", indexes);
data.DynamicFlags2 = packet.ReadUInt32("ZoneFlags", indexes);
}
if (changesMask[19])
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public override IItemData ReadCreateItemData(Packet packet, UpdateFieldFlag flag
data.Gems.Resize(packet.ReadUInt32());
if ((flags & UpdateFieldFlag.Owner) != UpdateFieldFlag.None)
{
data.DynamicFlags2 = packet.ReadUInt32("DynamicFlags2", indexes);
data.DynamicFlags2 = packet.ReadUInt32("ZoneFlags", indexes);
}
Substructures.ItemHandler.ReadItemBonusKey(packet, indexes, "ItemBonusKey");
if ((flags & UpdateFieldFlag.Owner) != UpdateFieldFlag.None)
Expand Down Expand Up @@ -385,7 +385,7 @@ public override IItemData ReadUpdateItemData(Packet packet, params object[] inde
}
if (changesMask[18])
{
data.DynamicFlags2 = packet.ReadUInt32("DynamicFlags2", indexes);
data.DynamicFlags2 = packet.ReadUInt32("ZoneFlags", indexes);
}
if (changesMask[19])
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public override IItemData ReadCreateItemData(Packet packet, UpdateFieldFlag flag
data.Gems.Resize(packet.ReadUInt32());
if ((flags & UpdateFieldFlag.Owner) != UpdateFieldFlag.None)
{
data.DynamicFlags2 = packet.ReadUInt32("DynamicFlags2", indexes);
data.DynamicFlags2 = packet.ReadUInt32("ZoneFlags", indexes);
}
Substructures.ItemHandler.ReadItemBonusKey(packet, indexes, "ItemBonusKey");
if ((flags & UpdateFieldFlag.Owner) != UpdateFieldFlag.None)
Expand Down Expand Up @@ -385,7 +385,7 @@ public override IItemData ReadUpdateItemData(Packet packet, params object[] inde
}
if (changesMask[18])
{
data.DynamicFlags2 = packet.ReadUInt32("DynamicFlags2", indexes);
data.DynamicFlags2 = packet.ReadUInt32("ZoneFlags", indexes);
}
if (changesMask[19])
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public override IItemData ReadCreateItemData(Packet packet, UpdateFieldFlag flag
data.Gems.Resize(packet.ReadUInt32());
if ((flags & UpdateFieldFlag.Owner) != UpdateFieldFlag.None)
{
data.DynamicFlags2 = packet.ReadUInt32("DynamicFlags2", indexes);
data.DynamicFlags2 = packet.ReadUInt32("ZoneFlags", indexes);
}
Substructures.ItemHandler.ReadItemBonusKey(packet, indexes, "ItemBonusKey");
if ((flags & UpdateFieldFlag.Owner) != UpdateFieldFlag.None)
Expand Down Expand Up @@ -385,7 +385,7 @@ public override IItemData ReadUpdateItemData(Packet packet, params object[] inde
}
if (changesMask[18])
{
data.DynamicFlags2 = packet.ReadUInt32("DynamicFlags2", indexes);
data.DynamicFlags2 = packet.ReadUInt32("ZoneFlags", indexes);
}
if (changesMask[19])
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public override IItemData ReadCreateItemData(Packet packet, UpdateFieldFlag flag
data.Gems.Resize(packet.ReadUInt32());
if ((flags & UpdateFieldFlag.Owner) != UpdateFieldFlag.None)
{
data.DynamicFlags2 = packet.ReadUInt32("DynamicFlags2", indexes);
data.DynamicFlags2 = packet.ReadUInt32("ZoneFlags", indexes);
}
Substructures.ItemHandler.ReadItemBonusKey(packet, indexes, "ItemBonusKey");
if ((flags & UpdateFieldFlag.Owner) != UpdateFieldFlag.None)
Expand Down Expand Up @@ -379,7 +379,7 @@ public override IItemData ReadUpdateItemData(Packet packet, params object[] inde
}
if (changesMask[18])
{
data.DynamicFlags2 = packet.ReadUInt32("DynamicFlags2", indexes);
data.DynamicFlags2 = packet.ReadUInt32("ZoneFlags", indexes);
}
if (changesMask[19])
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public override IItemData ReadCreateItemData(Packet packet, UpdateFieldFlag flag
data.Gems.Resize(packet.ReadUInt32());
if ((flags & UpdateFieldFlag.Owner) != UpdateFieldFlag.None)
{
data.DynamicFlags2 = packet.ReadUInt32("DynamicFlags2", indexes);
data.DynamicFlags2 = packet.ReadUInt32("ZoneFlags", indexes);
}
Substructures.ItemHandler.ReadItemBonusKey(packet, indexes, "ItemBonusKey");
if ((flags & UpdateFieldFlag.Owner) != UpdateFieldFlag.None)
Expand Down Expand Up @@ -379,7 +379,7 @@ public override IItemData ReadUpdateItemData(Packet packet, params object[] inde
}
if (changesMask[18])
{
data.DynamicFlags2 = packet.ReadUInt32("DynamicFlags2", indexes);
data.DynamicFlags2 = packet.ReadUInt32("ZoneFlags", indexes);
}
if (changesMask[19])
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public override IItemData ReadCreateItemData(Packet packet, UpdateFieldFlag flag
data.Gems.Resize(packet.ReadUInt32());
if ((flags & UpdateFieldFlag.Owner) != UpdateFieldFlag.None)
{
data.DynamicFlags2 = packet.ReadUInt32("DynamicFlags2", indexes);
data.DynamicFlags2 = packet.ReadUInt32("ZoneFlags", indexes);
}
Substructures.ItemHandler.ReadItemBonusKey(packet, indexes, "ItemBonusKey");
if ((flags & UpdateFieldFlag.Owner) != UpdateFieldFlag.None)
Expand Down Expand Up @@ -379,7 +379,7 @@ public override IItemData ReadUpdateItemData(Packet packet, params object[] inde
}
if (changesMask[18])
{
data.DynamicFlags2 = packet.ReadUInt32("DynamicFlags2", indexes);
data.DynamicFlags2 = packet.ReadUInt32("ZoneFlags", indexes);
}
if (changesMask[19])
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public override IItemData ReadCreateItemData(Packet packet, UpdateFieldFlag flag
data.Gems.Resize(packet.ReadUInt32());
if ((flags & UpdateFieldFlag.Owner) != UpdateFieldFlag.None)
{
data.DynamicFlags2 = packet.ReadUInt32("DynamicFlags2", indexes);
data.DynamicFlags2 = packet.ReadUInt32("ZoneFlags", indexes);
}
Substructures.ItemHandler.ReadItemBonusKey(packet, indexes, "ItemBonusKey");
if ((flags & UpdateFieldFlag.Owner) != UpdateFieldFlag.None)
Expand Down Expand Up @@ -379,7 +379,7 @@ public override IItemData ReadUpdateItemData(Packet packet, params object[] inde
}
if (changesMask[18])
{
data.DynamicFlags2 = packet.ReadUInt32("DynamicFlags2", indexes);
data.DynamicFlags2 = packet.ReadUInt32("ZoneFlags", indexes);
}
if (changesMask[19])
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public override IItemData ReadCreateItemData(Packet packet, UpdateFieldFlag flag
data.Gems.Resize(packet.ReadUInt32());
if ((flags & UpdateFieldFlag.Owner) != UpdateFieldFlag.None)
{
data.DynamicFlags2 = packet.ReadUInt32("DynamicFlags2", indexes);
data.DynamicFlags2 = packet.ReadUInt32("ZoneFlags", indexes);
}
Substructures.ItemHandler.ReadItemBonusKey(packet, indexes, "ItemBonusKey");
if ((flags & UpdateFieldFlag.Owner) != UpdateFieldFlag.None)
Expand Down Expand Up @@ -379,7 +379,7 @@ public override IItemData ReadUpdateItemData(Packet packet, params object[] inde
}
if (changesMask[18])
{
data.DynamicFlags2 = packet.ReadUInt32("DynamicFlags2", indexes);
data.DynamicFlags2 = packet.ReadUInt32("ZoneFlags", indexes);
}
if (changesMask[19])
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public override IItemData ReadCreateItemData(Packet packet, UpdateFieldFlag flag
data.Gems.Resize(packet.ReadUInt32());
if ((flags & UpdateFieldFlag.Owner) != UpdateFieldFlag.None)
{
data.DynamicFlags2 = packet.ReadUInt32("DynamicFlags2", indexes);
data.DynamicFlags2 = packet.ReadUInt32("ZoneFlags", indexes);
}
Substructures.ItemHandler.ReadItemBonusKey(packet, indexes, "ItemBonusKey");
if ((flags & UpdateFieldFlag.Owner) != UpdateFieldFlag.None)
Expand Down Expand Up @@ -383,7 +383,7 @@ public override IItemData ReadUpdateItemData(Packet packet, params object[] inde
}
if (changesMask[18])
{
data.DynamicFlags2 = packet.ReadUInt32("DynamicFlags2", indexes);
data.DynamicFlags2 = packet.ReadUInt32("ZoneFlags", indexes);
}
if (changesMask[19])
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public override IItemData ReadCreateItemData(Packet packet, UpdateFieldFlag flag
data.Gems.Resize(packet.ReadUInt32());
if ((flags & UpdateFieldFlag.Owner) != UpdateFieldFlag.None)
{
data.DynamicFlags2 = packet.ReadUInt32("DynamicFlags2", indexes);
data.DynamicFlags2 = packet.ReadUInt32("ZoneFlags", indexes);
}
Substructures.ItemHandler.ReadItemBonusKey(packet, indexes, "ItemBonusKey");
if ((flags & UpdateFieldFlag.Owner) != UpdateFieldFlag.None)
Expand Down Expand Up @@ -383,7 +383,7 @@ public override IItemData ReadUpdateItemData(Packet packet, params object[] inde
}
if (changesMask[18])
{
data.DynamicFlags2 = packet.ReadUInt32("DynamicFlags2", indexes);
data.DynamicFlags2 = packet.ReadUInt32("ZoneFlags", indexes);
}
if (changesMask[19])
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public override IItemData ReadCreateItemData(Packet packet, UpdateFieldFlag flag
data.Gems.Resize(packet.ReadUInt32());
if ((flags & UpdateFieldFlag.Owner) != UpdateFieldFlag.None)
{
data.DynamicFlags2 = packet.ReadUInt32("DynamicFlags2", indexes);
data.DynamicFlags2 = packet.ReadUInt32("ZoneFlags", indexes);
}
Substructures.ItemHandler.ReadItemBonusKey(packet, indexes, "ItemBonusKey");
if ((flags & UpdateFieldFlag.Owner) != UpdateFieldFlag.None)
Expand Down Expand Up @@ -383,7 +383,7 @@ public override IItemData ReadUpdateItemData(Packet packet, params object[] inde
}
if (changesMask[18])
{
data.DynamicFlags2 = packet.ReadUInt32("DynamicFlags2", indexes);
data.DynamicFlags2 = packet.ReadUInt32("ZoneFlags", indexes);
}
if (changesMask[19])
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public override IItemData ReadCreateItemData(Packet packet, UpdateFieldFlag flag
data.Gems.Resize(packet.ReadUInt32());
if ((flags & UpdateFieldFlag.Owner) != UpdateFieldFlag.None)
{
data.DynamicFlags2 = packet.ReadUInt32("DynamicFlags2", indexes);
data.DynamicFlags2 = packet.ReadUInt32("ZoneFlags", indexes);
}
Substructures.ItemHandler.ReadItemBonusKey(packet, indexes, "ItemBonusKey");
if ((flags & UpdateFieldFlag.Owner) != UpdateFieldFlag.None)
Expand Down Expand Up @@ -383,7 +383,7 @@ public override IItemData ReadUpdateItemData(Packet packet, params object[] inde
}
if (changesMask[18])
{
data.DynamicFlags2 = packet.ReadUInt32("DynamicFlags2", indexes);
data.DynamicFlags2 = packet.ReadUInt32("ZoneFlags", indexes);
}
if (changesMask[19])
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ public override IItemData ReadCreateItemData(Packet packet, UpdateFieldFlag flag
data.Gems.Resize(packet.ReadUInt32());
if ((flags & UpdateFieldFlag.Owner) != UpdateFieldFlag.None)
{
data.DynamicFlags2 = packet.ReadUInt32("DynamicFlags2", indexes);
data.ZoneFlags = packet.ReadUInt32("ZoneFlags", indexes);
}
for (var i = 0; i < data.ArtifactPowers.Count; ++i)
{
Expand Down Expand Up @@ -410,7 +410,7 @@ public override IItemData ReadUpdateItemData(Packet packet, params object[] inde
}
if (changesMask[21])
{
data.DynamicFlags2 = packet.ReadUInt32("DynamicFlags2", indexes);
data.ZoneFlags = packet.ReadUInt32("ZoneFlags", indexes);
}
if (changesMask[20])
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ public override IItemData ReadCreateItemData(Packet packet, UpdateFieldFlag flag
data.Gems.Resize(packet.ReadUInt32());
if ((flags & UpdateFieldFlag.Owner) != UpdateFieldFlag.None)
{
data.DynamicFlags2 = packet.ReadUInt32("DynamicFlags2", indexes);
data.DynamicFlags2 = packet.ReadUInt32("ZoneFlags", indexes);
}
for (var i = 0; i < data.ArtifactPowers.Count; ++i)
{
Expand Down Expand Up @@ -400,7 +400,7 @@ public override IItemData ReadUpdateItemData(Packet packet, params object[] inde
}
if (changesMask[21])
{
data.DynamicFlags2 = packet.ReadUInt32("DynamicFlags2", indexes);
data.DynamicFlags2 = packet.ReadUInt32("ZoneFlags", indexes);
}
if (changesMask[20])
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class ItemData : IItemData
public long CreateTime { get; set; }
public ulong ArtifactXP { get; set; }
public byte ItemAppearanceModID { get; set; }
public uint DynamicFlags2 { get; set; }
public uint ZoneFlags { get; set; }
public DynamicUpdateField<IArtifactPower> ArtifactPowers { get; } = new DynamicUpdateField<IArtifactPower>();
public DynamicUpdateField<ISocketedGem> Gems { get; } = new DynamicUpdateField<ISocketedGem>();
public IItemModList Modifiers { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public override IItemData ReadCreateItemData(Packet packet, UpdateFieldFlag flag
data.Gems.Resize(packet.ReadUInt32());
if ((flags & UpdateFieldFlag.Owner) != UpdateFieldFlag.None)
{
data.DynamicFlags2 = packet.ReadUInt32("DynamicFlags2", indexes);
data.DynamicFlags2 = packet.ReadUInt32("ZoneFlags", indexes);
data.DEBUGItemLevel = packet.ReadUInt16("DEBUGItemLevel", indexes);
}
for (var i = 0; i < data.ArtifactPowers.Count; ++i)
Expand Down Expand Up @@ -396,7 +396,7 @@ public override IItemData ReadUpdateItemData(Packet packet, params object[] inde
}
if (changesMask[21])
{
data.DynamicFlags2 = packet.ReadUInt32("DynamicFlags2", indexes);
data.DynamicFlags2 = packet.ReadUInt32("ZoneFlags", indexes);
}
if (changesMask[22])
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ public override IItemData ReadCreateItemData(Packet packet, UpdateFieldFlag flag
data.Gems.Resize(packet.ReadUInt32());
if ((flags & UpdateFieldFlag.Owner) != UpdateFieldFlag.None)
{
data.DynamicFlags2 = packet.ReadUInt32("DynamicFlags2", indexes);
data.DynamicFlags2 = packet.ReadUInt32("ZoneFlags", indexes);
}
Substructures.ItemHandler.ReadItemBonusKey(packet, indexes, "ItemBonusKey");
if ((flags & UpdateFieldFlag.Owner) != UpdateFieldFlag.None)
Expand Down Expand Up @@ -394,7 +394,7 @@ public override IItemData ReadUpdateItemData(Packet packet, params object[] inde
}
if (changesMask[20])
{
data.DynamicFlags2 = packet.ReadUInt32("DynamicFlags2", indexes);
data.DynamicFlags2 = packet.ReadUInt32("ZoneFlags", indexes);
}
if (changesMask[21])
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ public override IItemData ReadCreateItemData(Packet packet, UpdateFieldFlag flag
data.Gems.Resize(packet.ReadUInt32());
if ((flags & UpdateFieldFlag.Owner) != UpdateFieldFlag.None)
{
data.DynamicFlags2 = packet.ReadUInt32("DynamicFlags2", indexes);
data.DynamicFlags2 = packet.ReadUInt32("ZoneFlags", indexes);
data.DEBUGItemLevel = packet.ReadUInt16("DEBUGItemLevel", indexes);
}
for (var i = 0; i < data.ArtifactPowers.Count; ++i)
Expand Down Expand Up @@ -401,7 +401,7 @@ public override IItemData ReadUpdateItemData(Packet packet, params object[] inde
}
if (changesMask[21])
{
data.DynamicFlags2 = packet.ReadUInt32("DynamicFlags2", indexes);
data.DynamicFlags2 = packet.ReadUInt32("ZoneFlags", indexes);
}
if (changesMask[22])
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public override IItemData ReadCreateItemData(Packet packet, UpdateFieldFlag flag
data.Gems.Resize(packet.ReadUInt32());
if ((flags & UpdateFieldFlag.Owner) != UpdateFieldFlag.None)
{
data.DynamicFlags2 = packet.ReadUInt32("DynamicFlags2", indexes);
data.DynamicFlags2 = packet.ReadUInt32("ZoneFlags", indexes);
data.DEBUGItemLevel = packet.ReadUInt16("DEBUGItemLevel", indexes);
}
for (var i = 0; i < data.ArtifactPowers.Count; ++i)
Expand Down Expand Up @@ -396,7 +396,7 @@ public override IItemData ReadUpdateItemData(Packet packet, params object[] inde
}
if (changesMask[21])
{
data.DynamicFlags2 = packet.ReadUInt32("DynamicFlags2", indexes);
data.DynamicFlags2 = packet.ReadUInt32("ZoneFlags", indexes);
}
if (changesMask[22])
{
Expand Down
Loading

0 comments on commit b69c51b

Please sign in to comment.