Skip to content

Commit 30d0870

Browse files
committed
Add PlayerInitiativeComponent fragment handler
1 parent a5d92b8 commit 30d0870

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

WowPacketParser/Enums/WowCSEntityFragments.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public enum WowCSEntityFragments : int
5252
PlayerHouseInfoComponent_C,
5353
FHousingStorage_C,
5454
FHousingFixture_C,
55+
PlayerInitiativeComponent_C,
5556
End
5657
}
5758

@@ -109,6 +110,7 @@ public enum WowCSEntityFragments1127 : int
109110
PlayerHouseInfoComponent_C = 32,
110111
FHousingStorage_C = 33,
111112
FHousingFixture_C = 34,
113+
PlayerInitiativeComponent_C = 37,
112114
Tag_Item = 200,
113115
Tag_Container = 201,
114116
Tag_AzeriteEmpoweredItem = 202,
@@ -156,6 +158,7 @@ public static bool IsUpdateable(WowCSEntityFragments fragment)
156158
case WowCSEntityFragments.PlayerHouseInfoComponent_C:
157159
case WowCSEntityFragments.FHousingStorage_C:
158160
case WowCSEntityFragments.FHousingFixture_C:
161+
case WowCSEntityFragments.PlayerInitiativeComponent_C:
159162
return true;
160163
default:
161164
return false;
@@ -170,6 +173,7 @@ public static bool IsIndirect(WowCSEntityFragments fragment)
170173
case WowCSEntityFragments.CActor:
171174
case WowCSEntityFragments.FPlayerOwnershipLink:
172175
case WowCSEntityFragments.PlayerHouseInfoComponent_C:
176+
case WowCSEntityFragments.PlayerInitiativeComponent_C:
173177
return true;
174178
case WowCSEntityFragments.FVendor_C:
175179
return (ClientVersion.AddedInVersion(ClientBranch.Retail, ClientVersionBuild.V11_0_7_58630) && ClientVersion.RemovedInVersion(ClientBranch.Retail, ClientVersionBuild.V11_2_7_64632)) ||
@@ -262,6 +266,7 @@ public static WowCSEntityFragments ToUniversal(WowCSEntityFragments1127 fragment
262266
WowCSEntityFragments1127.PlayerHouseInfoComponent_C => WowCSEntityFragments.PlayerHouseInfoComponent_C,
263267
WowCSEntityFragments1127.FHousingStorage_C => WowCSEntityFragments.FHousingStorage_C,
264268
WowCSEntityFragments1127.FHousingFixture_C => WowCSEntityFragments.FHousingFixture_C,
269+
WowCSEntityFragments1127.PlayerInitiativeComponent_C => WowCSEntityFragments.PlayerInitiativeComponent_C,
265270
WowCSEntityFragments1127.Tag_Item => WowCSEntityFragments.Tag_Item,
266271
WowCSEntityFragments1127.Tag_Container => WowCSEntityFragments.Tag_Container,
267272
WowCSEntityFragments1127.Tag_AzeriteEmpoweredItem => WowCSEntityFragments.Tag_AzeriteEmpoweredItem,

WowPacketParser/Parsing/Parsers/UpdateFieldsHandlerBase.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,5 +275,15 @@ public virtual IHousingFixtureData ReadUpdateHousingFixtureData(Packet packet, p
275275
{
276276
return null;
277277
}
278+
279+
public virtual IPlayerInitiativeComponentData ReadCreatePlayerInitiativeComponentData(Packet packet, UpdateFieldFlag flags, params object[] indexes)
280+
{
281+
return null;
282+
}
283+
284+
public virtual IPlayerInitiativeComponentData ReadUpdatePlayerInitiativeComponentData(Packet packet, params object[] indexes)
285+
{
286+
return null;
287+
}
278288
}
279289
}

WowPacketParserModule.V11_0_0_55666/Parsers/UpdateHandler.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ private static void ReadCreateEntityFragmentData(WoWObject obj, CreateObject cre
219219
case WowCSEntityFragments.PlayerHouseInfoComponent_C: handler.ReadCreatePlayerHouseInfoComponentData(fieldsData, flags, index); break;
220220
case WowCSEntityFragments.FHousingStorage_C: handler.ReadCreateHousingStorageData(fieldsData, flags, index); break;
221221
case WowCSEntityFragments.FHousingFixture_C: handler.ReadCreateHousingFixtureData(fieldsData, flags, index); break;
222+
case WowCSEntityFragments.PlayerInitiativeComponent_C: handler.ReadCreatePlayerInitiativeComponentData(fieldsData, flags, index); break;
222223
}
223224
}
224225
}
@@ -339,6 +340,7 @@ private static void ReadUpdateEntityFragmentData(WoWObject obj, List<WowCSEntity
339340
case WowCSEntityFragments.PlayerHouseInfoComponent_C: handler.ReadUpdatePlayerHouseInfoComponentData(fieldsData, index); break;
340341
case WowCSEntityFragments.FHousingStorage_C: handler.ReadUpdateHousingStorageData(fieldsData, index); break;
341342
case WowCSEntityFragments.FHousingFixture_C: handler.ReadUpdateHousingFixtureData(fieldsData, index); break;
343+
case WowCSEntityFragments.PlayerInitiativeComponent_C: handler.ReadUpdatePlayerInitiativeComponentData(fieldsData, index); break;
342344
}
343345
}
344346
}

0 commit comments

Comments
 (0)