1
0
mirror of https://github.com/Rogiel/star-replay synced 2025-12-06 06:32:46 +00:00

Add information about lobby slots to the replay structure

This commit is contained in:
2016-07-21 22:51:46 -03:00
parent ad91463b8e
commit a7f59cbb1a
63 changed files with 4545 additions and 60 deletions

View File

@@ -58,9 +58,11 @@ def detect_class_types(protocol):
for r in protocol.typeinfos[t[1]][1][0]:
if r[0] == "m_gameOptions":
mapping[r[1]] = 'Rogiel\StarReplay\Metadata\Init\GameOptions'
if t[0] == "m_lobbyState":
mapping[t[1]] = 'Rogiel\StarReplay\Metadata\Init\LobbyState'
for s in protocol.typeinfos[t[1]][1][0]:
if s[0] == "m_slots":
mapping[protocol.typeinfos[s[1]][1][1]] = 'Rogiel\StarReplay\Metadata\Init\LobbySlot'
for index, type in enumerate(protocol.typeinfos):
if type[0] == '_struct':