367 files, from working commit b1a079a. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
41 lines
1.3 KiB
Python
41 lines
1.3 KiB
Python
"""Bounded Source keyring extension of the existing pinned SDK schema adapter.
|
|
|
|
The SDK owns108 inventory fields. Original70334 owns145, with its keyring at
|
|
112..143. Replace only the already-existing37-zero tail; keep all other SDK
|
|
serialization and Classic mask remapping byte-for-byte.
|
|
"""
|
|
|
|
def _one(text, old, new):
|
|
if text.count(old) != 1:
|
|
raise ValueError('Pinned keyring serializer boundary changed')
|
|
return text.replace(old, new)
|
|
|
|
|
|
def create(method):
|
|
return _one(method,
|
|
'for (uint32 i = 108; i < 145; ++i)\n data << ObjectGuid::Empty;',
|
|
'for (uint32 i = 108; i < 145; ++i)\n gateway::keyring_wire::create_tail<ObjectGuid>(data, i);')
|
|
|
|
|
|
def mask_header(helpers):
|
|
return _one(helpers, ' for (auto [group, last] : groups)\n',
|
|
' if constexpr (ClassicBlockCount == 14)\n'
|
|
' gateway::keyring_wire::overlay_mask<ObjectGuid>(classicBlocks);\n'
|
|
' for (auto [group, last] : groups)\n')
|
|
|
|
|
|
def update(method):
|
|
boundary = ''' if (changesMask[163])
|
|
{
|
|
for (uint32 i = 0; i < 108; ++i)
|
|
{
|
|
if (changesMask[164 + i])
|
|
{
|
|
data << InvSlots[i];
|
|
}
|
|
}
|
|
}
|
|
'''
|
|
return _one(method, boundary, boundary+
|
|
' gateway::keyring_wire::update_tail<ObjectGuid>(data);\n')
|