Type out snap items for libtw2 json

This commit is contained in:
ChillerDragon 2023-05-13 10:23:23 +02:00
parent 0794cbe0a6
commit 08f71f60a2

View file

@ -88,12 +88,23 @@ class NetConnlessJson(TypedDict):
name: list[str]
members: list[NetConnlessMemberJson]
class SnapObjMemberJson(TypedDict):
name: list[str]
type: NetMessageMemberTypeJson
class SnapObjJson(TypedDict):
id: int
name: list[str]
members: list[SnapObjMemberJson]
attributes: list[str]
class SpecJson(TypedDict):
constants: list[ConstantJson]
game_enumerations: list[GameEnumJson]
game_messages: list[NetMessageJson]
system_messages: list[NetMessageJson]
connless_messages: list[NetConnlessJson]
snapshot_objects: list[SnapObjJson]
def gen_match_file_connless7(
messages: list[NetConnlessJson]