proleak 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- proleak/__init__.py +10 -0
- proleak/_api.py +107 -0
- proleak/_catalog.json +1 -0
- proleak/_catalog.py +86 -0
- proleak/_events.py +173 -0
- proleak/_mods.py +1199 -0
- proleak/_needs.py +243 -0
- proleak/_runtime.py +556 -0
- proleak/actions.py +101 -0
- proleak/advanced.py +85 -0
- proleak/assets.py +1025 -0
- proleak/camera.py +667 -0
- proleak/chat.py +199 -0
- proleak/check.py +266 -0
- proleak/data.py +518 -0
- proleak/errors.py +177 -0
- proleak/game.py +236 -0
- proleak/input.py +152 -0
- proleak/log.py +145 -0
- proleak/modes.py +1710 -0
- proleak/plugins.py +31 -0
- proleak/py.typed +0 -0
- proleak/server.py +67 -0
- proleak/settings.py +299 -0
- proleak/sfx.py +155 -0
- proleak/store.py +175 -0
- proleak/stream.py +237 -0
- proleak/tasks.py +201 -0
- proleak/timers.py +167 -0
- proleak/ui.py +2181 -0
- proleak/world.py +1091 -0
- proleak-0.1.0.dist-info/METADATA +70 -0
- proleak-0.1.0.dist-info/RECORD +34 -0
- proleak-0.1.0.dist-info/WHEEL +4 -0
proleak/__init__.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"""ProLeak plugin API for Legion TD 2.
|
|
2
|
+
|
|
3
|
+
Typical imports:
|
|
4
|
+
|
|
5
|
+
from proleak import on, log, chat, timers, tasks, server, settings
|
|
6
|
+
"""
|
|
7
|
+
from . import actions, advanced, assets, camera, chat, data, errors, game, input, log, plugins, server, settings, sfx, store, tasks, timers, ui, world
|
|
8
|
+
from ._api import off, on
|
|
9
|
+
|
|
10
|
+
__all__ = ["actions", "advanced", "assets", "camera", "chat", "data", "errors", "game", "input", "log", "off", "on", "plugins", "server", "settings", "sfx", "store", "tasks", "timers", "ui", "world"]
|
proleak/_api.py
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from collections.abc import Callable
|
|
4
|
+
|
|
5
|
+
from . import _catalog, _runtime
|
|
6
|
+
from ._events import Event
|
|
7
|
+
from .errors import mapped
|
|
8
|
+
|
|
9
|
+
Handler = Callable[[Event], None]
|
|
10
|
+
"""A function that handles one dispatch of an event."""
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _filtered(fn, event, fields, server=False):
|
|
14
|
+
"""`fn`, or a handler calling it only for dispatches whose fields hold the values in
|
|
15
|
+
`fields`. A field the event lacks, or a value it never holds, raises `ValueError`."""
|
|
16
|
+
if not fields:
|
|
17
|
+
return fn
|
|
18
|
+
reason = _catalog.refused(event, fields, server)
|
|
19
|
+
if reason is not None:
|
|
20
|
+
raise ValueError(reason)
|
|
21
|
+
wanted = {name: value for name, value in fields.items() if name != "mine"}
|
|
22
|
+
mine = fields.get("mine")
|
|
23
|
+
whose = _catalog.mine_field(_catalog.event(event, server)) if mine is not None else None
|
|
24
|
+
|
|
25
|
+
def handler(ev):
|
|
26
|
+
if mine is not None:
|
|
27
|
+
player = getattr(ev, whose)
|
|
28
|
+
if (player is not None and player.is_me) != mine:
|
|
29
|
+
return
|
|
30
|
+
if all(getattr(ev, name) == value for name, value in wanted.items()):
|
|
31
|
+
fn(ev)
|
|
32
|
+
|
|
33
|
+
handler.__module__ = getattr(fn, "__module__", handler.__module__)
|
|
34
|
+
return handler
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def on(event: str, pre: bool = False, priority: int = 0, **fields: object) -> Callable[[Handler], Handler]:
|
|
38
|
+
"""Decorator: call the function for each dispatch of `event`, or only for those whose fields
|
|
39
|
+
hold the values given.
|
|
40
|
+
|
|
41
|
+
`pre=True` runs before the game acts; the handler may edit fields or `ev.cancel()`.
|
|
42
|
+
Post handlers (the default) run after, see final values, and never run for a cancelled
|
|
43
|
+
event. Higher `priority` runs first; ties go by plugin load order.
|
|
44
|
+
|
|
45
|
+
Args:
|
|
46
|
+
event: The event's name, such as `"wave.started"`, as the Events pages list them.
|
|
47
|
+
pre: True runs the handler before the game acts, where it may edit fields or call
|
|
48
|
+
`ev.cancel()`.
|
|
49
|
+
priority: Higher runs first; ties go by plugin load order.
|
|
50
|
+
fields: Field values a dispatch must hold, such as `phase="build"`; a field that names a
|
|
51
|
+
player or a unit takes the object or its slot or id. `mine=True` keeps the dispatches
|
|
52
|
+
whose `sender`, else `player`, else `owner` is [me][proleak.world.me], the player
|
|
53
|
+
this client controls (`mine=False`: another player). A field the event lacks, or a
|
|
54
|
+
value it never holds, raises `ValueError` here.
|
|
55
|
+
|
|
56
|
+
Example:
|
|
57
|
+
from proleak import on, ui
|
|
58
|
+
|
|
59
|
+
@on("chat.received", pre=True, priority=10)
|
|
60
|
+
def hide_spam(ev):
|
|
61
|
+
if "free gold" in ev.text:
|
|
62
|
+
ev.cancel()
|
|
63
|
+
|
|
64
|
+
@on("wave.started")
|
|
65
|
+
def announce(ev):
|
|
66
|
+
ui.toast(f"{ev.info.name} is coming", header=f"Wave {ev.wave}")
|
|
67
|
+
|
|
68
|
+
@on("phase.changed", phase="build")
|
|
69
|
+
def build(ev):
|
|
70
|
+
ui.toast("Build phase")
|
|
71
|
+
"""
|
|
72
|
+
def deco(fn):
|
|
73
|
+
_runtime.require_main("proleak.on")
|
|
74
|
+
owner = _runtime.owner_of(fn)
|
|
75
|
+
handler = _filtered(fn, str(event), fields)
|
|
76
|
+
with mapped():
|
|
77
|
+
token = _runtime.bridge().Subscribe(owner, str(event), bool(pre), int(priority), handler)
|
|
78
|
+
try:
|
|
79
|
+
fn._proleak_tokens = getattr(fn, "_proleak_tokens", ()) + (token,)
|
|
80
|
+
except AttributeError:
|
|
81
|
+
pass
|
|
82
|
+
return fn
|
|
83
|
+
|
|
84
|
+
return deco
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
def off(fn: Handler) -> None:
|
|
88
|
+
"""Remove every subscription made for `fn` with [on][proleak._api.on].
|
|
89
|
+
|
|
90
|
+
Args:
|
|
91
|
+
fn: A handler given to [on][proleak._api.on].
|
|
92
|
+
|
|
93
|
+
Example:
|
|
94
|
+
from proleak import log, off, on
|
|
95
|
+
|
|
96
|
+
@on("unit.built")
|
|
97
|
+
def first_build(ev):
|
|
98
|
+
log.info(f"first fighter: {ev.info.name}")
|
|
99
|
+
# Only the first one.
|
|
100
|
+
off(first_build)
|
|
101
|
+
"""
|
|
102
|
+
for token in getattr(fn, "_proleak_tokens", ()):
|
|
103
|
+
_runtime.bridge().Release(token)
|
|
104
|
+
try:
|
|
105
|
+
fn._proleak_tokens = ()
|
|
106
|
+
except AttributeError:
|
|
107
|
+
pass
|
proleak/_catalog.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"client":{"ability.using":{"post_only":false,"fields":{"player":["integer","player",[]],"order":["string","",[]],"ability":["string","",[]],"units":["list","unit",[]]}},"chat.received":{"post_only":false,"fields":{"text":["string","",[]],"sender":["integer","player",[]],"sender_name":["string","",[]],"all_chat":["bool","",[]],"channel":["string","",[]],"timestamp":["integer","",[]]}},"chat.send":{"post_only":false,"fields":{"text":["string","",[]],"all_chat":["bool","",[]],"channel":["string","",[]]}},"emote.received":{"post_only":false,"fields":{"player":["integer","player",[]],"emote":["integer","",[]]}},"emote.sending":{"post_only":false,"fields":{"player":["integer","player",[]],"emote":["integer","",[]]}},"fighter.died":{"post_only":true,"fields":{"unit":["integer","unit",[]],"placed":["integer","unit",[]],"player":["integer","player",[]],"wave":["integer","wave",[]]}},"game.ended":{"post_only":false,"fields":{"result":["string","",[]],"wave":["integer","wave",[]],"seconds":["integer","",[]],"game_id":["string","",[]]}},"game.started":{"post_only":false,"fields":{"tick":["integer","",[]],"mission_id":["string","",[]]}},"input.click":{"post_only":true,"fields":{"button":["integer","",[]],"screen_x":["float","",[]],"screen_y":["float","",[]],"world_x":["float","",[]],"world_z":["float","",[]],"unit":["integer","unit",[]]}},"input.hover":{"post_only":true,"fields":{"unit":["integer","unit",[]]}},"input.key":{"post_only":true,"fields":{"key":["string","",[]],"shift":["bool","",[]],"ctrl":["bool","",[]],"alt":["bool","",[]]}},"king.damaged":{"post_only":true,"fields":{"king":["integer","unit",[]],"team":["integer","team",[]],"amount":["float","",[]],"hp":["float","",[]],"max_hp":["float","",[]]}},"king.died":{"post_only":true,"fields":{"king":["integer","unit",[]],"team":["integer","team",[]]}},"king.upgraded":{"post_only":true,"fields":{"player":["integer","player",[]],"team":["integer","team",[]],"upgrade":["string","",[]],"level":["integer","",[]]}},"king.upgrading":{"post_only":false,"fields":{"player":["integer","player",[]],"upgrade":["string","",[]],"research":["string","",[]],"level":["integer","",[]],"queued":["bool","",[]]}},"mastermind.choosing":{"post_only":false,"fields":{"player":["integer","player",[]],"mastermind":["string","mastermind",[]]}},"mastermind.chosen":{"post_only":true,"fields":{"player":["integer","player",[]],"mastermind":["string","mastermind",[]]}},"mercenary.buying":{"post_only":false,"fields":{"player":["integer","player",[]],"type":["string","unit_type",[]],"builder":["integer","unit",[]],"queued":["bool","",[]],"from_queue":["bool","",[]]}},"mercenary.hired":{"post_only":false,"fields":{"player":["integer","player",[]],"unit":["integer","unit",[]],"type":["string","unit_type",[]],"from_queue":["bool","",[]]}},"mercenary.sent":{"post_only":true,"fields":{"sender":["integer","player",[]],"target":["integer","player",[]],"type":["string","unit_type",[]],"wave":["integer","wave",[]]}},"mode.told":{"post_only":true,"fields":{"message":["string","",[]],"data":["string","json",[]]}},"model.clicked":{"post_only":true,"fields":{"model":["string","model",[]],"button":["integer","",[]]}},"model.hovered":{"post_only":true,"fields":{"model":["string","model",[]]}},"model.unhovered":{"post_only":true,"fields":{"model":["string","model",[]]}},"net.in.AbilityMissileBatchMessage":{"post_only":false,"fields":{"keyframes":["object","",[]],"keyframesList":["list","",[]]}},"net.in.AckAckServerTimeMessage":{"post_only":false,"fields":{"currentTime":["integer","",[]],"rtt":["integer","",[]],"isReconnect":["bool","",[]]}},"net.in.AddMatchModifierMessage":{"post_only":false,"fields":{"matchModifier":["object","",[]]}},"net.in.AttachSpecialEffectToUnitMessage":{"post_only":false,"fields":{"unit":["integer","",[]],"effectType":["string","",[]]}},"net.in.AuthenticateAsGameServerMessage":{"post_only":false,"fields":{"secretKey":["string","",[]],"gameId":["string","",[]]}},"net.in.AuthenticateSessionTicketMessage":{"post_only":false,"fields":{"playFabId":["string","",[]],"sessionTicket":["string","",[]],"partyMembers":["list","",[]],"partyJoinTime":["integer","",[]],"savedChatRoomType":["enum","",["Standard","Guild","PostGame","CustomGameRoom","InGame","Party"]],"savedChatRoomName":["string","",[]],"previousGameId":["string","",[]],"previousGameIdHash":["string","",[]],"isSpectate":["bool","",[]]}},"net.in.AuthenticatedMessage":{"post_only":false,"fields":{"authenticated":["bool","",[]]}},"net.in.AuthenticatedWithLobbyMessage":{"post_only":false,"fields":{"authenticated":["bool","",[]],"resetUsername":["bool","",[]],"geoCountryCode":["string","",[]],"totalValueToDateInUsdCents":["integer","",[]]}},"net.in.AutoAttackMissileBatchMessage":{"post_only":false,"fields":{"keyframes":["object","",[]],"keyframesList":["list","",[]]}},"net.in.BeatMissionMessage":{"post_only":false,"fields":{"missionId":["string","",[]],"starsEarned":["list","",[]]}},"net.in.BootedFromCustomGameRoomMessage":{"post_only":false,"fields":{"tick":["integer","",[]]}},"net.in.BrowseGuildsSearchByAbbreviationResultMessage":{"post_only":false,"fields":{"guildAbbreviation":["string","",[]],"guildId":["string","",[]]}},"net.in.CardTraderRerollResultMessage":{"post_only":false,"fields":{"remainingRerolls":["integer","",[]],"itemIds":["list","",[]],"somethingWentWrong":["bool","",[]]}},"net.in.CastInboxVoteResultMessage":{"post_only":false,"fields":{"id":["string","",[]]}},"net.in.ChangeChannelMessage":{"post_only":false,"fields":{"serverHostname":["string","",[]],"tcpPort":["integer","",[]],"udpPort":["integer","",[]],"changeChannelTag":["string","",[]]}},"net.in.ChatRoomChatMessage":{"post_only":false,"fields":{"timestamp":["integer","",[]],"playFabId":["string","",[]],"displayName":["string","",[]],"message":["string","",[]],"type":["enum","",["Standard","Affirmative","Unsure","Alert","StandardLong","Party","Whisper","System","Discord","Guild","GuildNotice","ExpectingSend","ThinkingAboutSending"]]}},"net.in.ClaimQuestResultMessage":{"post_only":false,"fields":{"success":["bool","",[]],"nextClaimQuestIndex":["integer","",[]]}},"net.in.ClientConnectedToLoginMessage":{"post_only":false,"fields":{"connectionId":["integer","",[]]}},"net.in.ClientLoginHandshakeMessage":{"post_only":false,"fields":{"playFabId":["string","",[]]}},"net.in.CollectMasteryRewardResultMessage":{"post_only":false,"fields":{"unitTypes":["list","",[]],"masteryLevelsUnlocked":["list","",[]],"totalEssenceReward":["integer","",[]]}},"net.in.ConfirmGiftAFriendMessage":{"post_only":false,"fields":{"friendPlayFabId":["string","",[]],"friendDisplayName":["string","",[]],"errorMessage":["string","",[]]}},"net.in.ConfirmInitialExperienceLevelMessage":{"post_only":false,"fields":{"initialExperienceLevel":["string","",[]]}},"net.in.ConfirmMoneyLendMessage":{"post_only":false,"fields":{"lendedGold":["integer","",[]],"penalty":["integer","",[]]}},"net.in.ConfirmSkipTutorialMessage":{"post_only":false,"fields":{"tick":["integer","",[]]}},"net.in.ConfirmUnitHiredMessage":{"post_only":false,"fields":{"player":["integer","",[]],"unit":["integer","",[]],"unitType":["string","",[]],"fromQueue":["bool","",[]]}},"net.in.ConfirmUnitTrainedMessage":{"post_only":false,"fields":{"player":["integer","",[]],"unit":["integer","",[]],"unitType":["string","",[]],"canceled":["bool","",[]]}},"net.in.ConsoleLogMessage":{"post_only":false,"fields":{"output":["string","",[]]}},"net.in.ConsumeItemResultMessage":{"post_only":false,"fields":{"itemInstanceId":["string","",[]],"itemType":["string","",[]],"hidePopups":["bool","",[]]}},"net.in.ConvertItemToEssenceResultMessage":{"post_only":false,"fields":{"itemInstanceId":["string","",[]],"itemType":["string","",[]],"newEssence":["integer","",[]]}},"net.in.CreateFloatingTextMessage":{"post_only":false,"fields":{"point":["object","",[]],"sourcePoint":["object","",[]],"message":["string","",[]],"presetStyle":["enum","",["BountyText","HealText","MythiumText","IncomeText","UnitStatsText","DamageText","SpellText","EnemyDamageText","DodgedText","ManaText","BuffText","NonCombatText","SpecialMythiumText"]]}},"net.in.CreateTutorialArrowTextMessage":{"post_only":false,"fields":{"id":["string","",[]],"uiKey":["string","",[]],"point":["object","",[]],"unit":["integer","",[]],"message":["string","",[]],"successTrigger":["enum","",["None","SucceedImmediately","LegionSelected","BuildAimerActivated","BuildAimerCanceled","ConstructionStarted","ContinueButtonPressed","AnyUnitSelected","SpecificUnitSelected","UnitDeselected","UnitUpgraded","UnitHired","UnitTrained","WindshieldOpened","WindshieldClosed","LowGold","ZeroGold","Over40Mythium","WaveTimerClicked"]],"idIfSuccess":["string","",[]],"failTrigger":["enum","",["None","SucceedImmediately","LegionSelected","BuildAimerActivated","BuildAimerCanceled","ConstructionStarted","ContinueButtonPressed","AnyUnitSelected","SpecificUnitSelected","UnitDeselected","UnitUpgraded","UnitHired","UnitTrained","WindshieldOpened","WindshieldClosed","LowGold","ZeroGold","Over40Mythium","WaveTimerClicked"]],"idIfFail":["string","",[]],"flags":["enum","",["None","ShowImmediately","ShowContinueButton","PassThrough","DontHidePrevious","DontShowArrow","Mirror","PanCameraToTarget","DontShowSquare","LockCameraOnTarget","ForceExitCinematicMode","ForceAllowActionsWithContinue"]],"arg1":["string","",[]],"parsedDescriptionId":["string","",[]],"parsedDescriptionStringOverrides":["list","",[]]}},"net.in.CustomEventMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"eventIndex":["integer","",[]]}},"net.in.CustomGameRoomDisbandedMessage":{"post_only":false,"fields":{"tick":["integer","",[]]}},"net.in.CustomGameRoomListingResultMessage":{"post_only":false,"fields":{"lobbyBuildId":["string","",[]],"rooms":["list","",[]]}},"net.in.CustomLogMessage":{"post_only":false,"fields":{"output":["string","",[]]}},"net.in.DiscordChatMessage":{"post_only":false,"fields":{"Id":["integer","",[]],"Timestamp":["integer","",[]],"DisplayName":["string","",[]],"Message":["string","",[]],"ChannelId":["integer","",[]],"IsWebhook":["bool","",[]],"IsStaff":["bool","",[]],"IsMod":["bool","",[]],"IsHelper":["bool","",[]]}},"net.in.DisplayGameTextMessage":{"post_only":false,"fields":{"header":["string","",[]],"content":["string","",[]],"duration":["float","",[]],"image":["string","",[]]}},"net.in.DisplayPickedModeMessage":{"post_only":false,"fields":{"mode1Picked":["bool","",[]],"mode2Picked":["bool","",[]],"mode1Yes":["integer","",[]],"mode1No":["integer","",[]],"mode2Yes":["integer","",[]],"mode2No":["integer","",[]],"hotMode":["integer","",[]]}},"net.in.DisplayPlayerClearedTextMessage":{"post_only":false,"fields":{"header":["string","",[]],"content":["string","",[]],"duration":["float","",[]],"image":["string","",[]],"clearTime":["float","",[]]}},"net.in.DisplayPlayerLeakedTextMessage":{"post_only":false,"fields":{"header":["string","",[]],"content":["string","",[]],"duration":["float","",[]],"image":["string","",[]],"leakTime":["float","",[]],"mercenariesReceived":["list","",[]],"mercenariesReceivedDead":["list","",[]],"shutdownGold":["integer","",[]]}},"net.in.EarnIngameAchievementMessage":{"post_only":false,"fields":{"achievementKey":["string","",[]]}},"net.in.ErrorStartingGame":{"post_only":false,"fields":{"message":["string","",[]]}},"net.in.ForceHideUnitMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"unit":["integer","",[]]}},"net.in.ForceMaintenancePopupMessage":{"post_only":false,"fields":{"debugReason":["string","",[]]}},"net.in.ForcePickLegionMessage":{"post_only":false,"fields":{"legionType":["integer","",[]]}},"net.in.ForceRefreshCurrencyMessage":{"post_only":false,"fields":{"textColor":["string","",[]],"notificationMessage":["string","",[]],"notificationMessageApexId":["string","",[]],"notificationMessageApexCustomValues":["list","",[]],"premiumEssenceReward":["integer","",[]]}},"net.in.ForceRefreshInboxMessage":{"post_only":false,"fields":{"notificationMessage":["string","",[]]}},"net.in.ForceSelectUnitMessage":{"post_only":false,"fields":{"unit":["integer","",[]],"expectCurrentSelectedUnit":["integer","",[]]}},"net.in.ForceSetPlayerIdMessage":{"post_only":false,"fields":{"player":["integer","",[]]}},"net.in.ForceSyncPlayerMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"player":["integer","",[]],"name":["string","",[]],"controller":["string","",[]],"image":["string","",[]],"gold":["integer","",[]],"mythium":["integer","",[]],"foodUsed":["integer","",[]],"foodCap":["integer","",[]],"income":["integer","",[]],"workers":["float","",[]],"value":["integer","",[]],"isConnected":["bool","",[]],"defenderPlayer":["integer","",[]],"attackerPlayer":["integer","",[]],"powerupChoices":["list","",[]],"powerupSelected":["string","",[]],"totalGoldFromIncome":["integer","",[]],"totalGoldFromEnemyLeaks":["integer","",[]],"totalGoldLostToLeaks":["integer","",[]],"totalEnemyTeamGoldFromYourLeaks":["integer","",[]],"mythiumGatherRate":["float","",[]],"totalGoldFromCatchingLeaks":["integer","",[]],"rolls":["list","",[]],"totalMythium":["integer","",[]],"isDualBuilding":["bool","",[]],"extraRecommendedValue":["integer","",[]],"legionUnitType":["string","",[]],"partyMembers":["list","",[]],"megamind":["bool","",[]],"disableBarracksText":["string","",[]],"disableKingUpgradesText":["string","",[]],"doubleDownActive":["bool","",[]]}},"net.in.ForceSyncUnitBatchMessage":{"post_only":false,"fields":{"currentTick":["integer","",[]],"keyframes":["object","",[]],"keyframesList":["list","",[]]}},"net.in.ForwardedOkLetsDualBuildMessage":{"post_only":false,"fields":{"fromPlayer":["integer","",[]]}},"net.in.ForwardedPartyMemberMatchFoundActionMessage":{"post_only":false,"fields":{"action":["enum","",["None","Accepted","Declined"]],"playFabId":["string","",[]]}},"net.in.ForwardedPartyMemberMatchFoundMessage":{"post_only":false,"fields":{"playFabId":["string","",[]],"matchId":["string","",[]],"queueName":["string","",[]]}},"net.in.ForwardedTellPartyCampaignDlcOwnershipMessage":{"post_only":false,"fields":{"campaignDlcsOwned":["list","",[]]}},"net.in.ForwardedTryJoinCustomGameRoomMessage":{"post_only":false,"fields":{"ownerPlayFabId":["string","",[]],"joinerPlayFabId":["string","",[]]}},"net.in.ForwardedWantsToDualBuildMessage":{"post_only":false,"fields":{"fromPlayer":["integer","",[]]}},"net.in.GameAlreadyStartedMessage":{"post_only":false,"fields":{"tick":["integer","",[]]}},"net.in.GameNoLongerExistsMessage":{"post_only":false,"fields":{"tick":["integer","",[]]}},"net.in.GameServerReadyMessage":{"post_only":false,"fields":{"hostname":["string","",[]],"tcpPort":["integer","",[]],"udpPort":["integer","",[]],"websocket":["integer","",[]],"slotIds":["list","",[]],"displayNames":["list","",[]],"totalXps":["list","",[]],"ratings":["list","",[]],"avatars":["list","",[]],"isReconnect":["bool","",[]],"isSpectate":["bool","",[]],"hexGameId":["string","",[]],"debugInfo":["string","",[]],"serverId":["string","",[]],"buildId":["string","",[]],"startedTicks":["integer","",[]]}},"net.in.GameServerWelcomeMessage":{"post_only":false,"fields":{"connectionId":["integer","",[]],"matchInfo":["object","",[]],"LeftTeamEffectiveRating":["float","",[]],"RightTeamEffectiveRating":["float","",[]],"LeftTeamWinDelta":["float","",[]],"RightTeamWinDelta":["float","",[]],"GameStartTime":["integer","",[]],"GameVersionString":["string","",[]],"hostname":["string","",[]],"tcpPort":["integer","",[]],"udpPort":["integer","",[]],"slotIds":["list","",[]],"displayNames":["list","",[]],"totalXps":["list","",[]],"ratings":["list","",[]],"avatars":["list","",[]],"profileModifiers":["list","",[]],"isReconnect":["bool","",[]],"isSpectate":["bool","",[]],"hexGameId":["string","",[]],"debugInfo":["string","",[]],"buildId":["string","",[]],"serverId":["string","",[]],"startedTicks":["integer","",[]],"missionId":["string","",[]],"missionHardMode":["bool","",[]],"missionStarNumber":["integer","",[]],"incomeBonuses":["list","",[]],"earthKingUnitTypeOverride":["string","",[]],"skyKingUnitTypeOverride":["string","",[]]}},"net.in.GameStartedMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"showPregame":["bool","",[]],"missionId":["string","",[]],"settings":["object","",[]]}},"net.in.GenericGameServerRequestedMessage":{"post_only":false,"fields":{"tick":["integer","",[]]}},"net.in.HighRankCalloutMessage":{"post_only":false,"fields":{"message":["string","",[]],"isClassic":["bool","",[]]}},"net.in.InQueueResultMessage":{"post_only":false,"fields":{"requestedQueueType":["enum","",["Normal","Casual","Practice","Custom","Sandbox","CasualNoob","Classic","ClassicNoob","ClassicSortaNoob","Arcade","BeginnerBots","VeryEasyBots","EasyBots","MediumBots","HardBots","InsaneBots","ExpertBots","MasterBots","SeniorMasterBots","GrandmasterBots","QuickMatch","Challenge","None","Pve"]],"partyMembers":["list","",[]],"result":["list","",[]],"autoQueueIfClear":["bool","",[]]}},"net.in.InitMessage":{"post_only":false,"fields":{"gameId":["string","",[]],"connectionId":["integer","",[]],"titleId":["string","",[]]}},"net.in.InvitedToCustomGameRoomMessage":{"post_only":false,"fields":{"ownerPlayFabId":["string","",[]]}},"net.in.InvitedToGuildMessage":{"post_only":false,"fields":{"inviterPlayFabId":["string","",[]],"inviterDisplayName":["string","",[]],"props":["object","",[]]}},"net.in.InvitedToPartyMessage":{"post_only":false,"fields":{"ownerPlayFabId":["string","",[]],"inviterPlayFabId":["string","",[]]}},"net.in.JoinCustomGameRoomMessage":{"post_only":false,"fields":{"owner":["string","",[]],"occupants":["list","",[]]}},"net.in.JoinSoloPartyMessage":{"post_only":false,"fields":{}},"net.in.KickedFromGuildMessage":{"post_only":false,"fields":{"sourcePlayFabId":["string","",[]]}},"net.in.KickedFromPartyMessage":{"post_only":false,"fields":{"tick":["integer","",[]]}},"net.in.LeaveQueueToFormQuickMatchMessage":{"post_only":false,"fields":{"partyOwnerPlayFabId":["string","",[]],"difficulty":["enum","",["SuperEasy","Easy","Medium","Hard"]]}},"net.in.LiveGamesResultMessage":{"post_only":false,"fields":{"games":["list","",[]]}},"net.in.LoadClientNotificationMessage":{"post_only":false,"fields":{"header":["string","",[]],"message":["string","",[]],"duration":["float","",[]],"notificationType":["enum","",["Normal","Warning"]]}},"net.in.LoadOkPopupMessage":{"post_only":false,"fields":{"header":["string","",[]],"message":["string","",[]]}},"net.in.LoadPopupMessage":{"post_only":false,"fields":{"popupName":["string","",[]]}},"net.in.LoadUnclickablePopupMessage":{"post_only":false,"fields":{"header":["string","",[]],"message":["string","",[]]}},"net.in.LoadViewMessage":{"post_only":false,"fields":{"viewName":["string","",[]],"forced":["bool","",[]],"freeze":["bool","",[]]}},"net.in.LobbyCallbackMessage":{"post_only":false,"fields":{"callbackId":["string","",[]],"dataJSON":["string","",[]]}},"net.in.LobbyReadyMessage":{"post_only":false,"fields":{"connectionId":["integer","",[]],"ip":["string","",[]],"tcpPort":["integer","",[]],"udpPort":["integer","",[]],"serverId":["string","",[]]}},"net.in.LoudAnnouncementMessage":{"post_only":false,"fields":{"serializedMessage":["string","",[]],"tag":["string","",[]]}},"net.in.MakeSquaresBuildableMessage":{"post_only":false,"fields":{"points":["list","",[]],"buildable":["bool","",[]],"enableGrid":["bool","",[]]}},"net.in.MapMessage":{"post_only":false,"fields":{"mapName":["string","",[]],"hash64":["string","",[]],"player":["integer","",[]]}},"net.in.MapPingMessage":{"post_only":false,"fields":{"player":["integer","",[]],"pingType":["enum","",["None","Regular","OnMyWay","Target","Warning","Question","Help","RegularGround","Checkmark","ReachedKing","LeakedThem"]],"point":["object","",[]]}},"net.in.MaphackEnabledMessage":{"post_only":false,"fields":{"tick":["integer","",[]]}},"net.in.MatchFoundCanceledMessage":{"post_only":false,"fields":{"tick":["integer","",[]]}},"net.in.MatchFoundMessage":{"post_only":false,"fields":{"match":["object","",[]]}},"net.in.MatchmadeGameServerRequestedMessage":{"post_only":false,"fields":{"queueType":["enum","",["Normal","Casual","Practice","Custom","Sandbox","CasualNoob","Classic","ClassicNoob","ClassicSortaNoob","Arcade","BeginnerBots","VeryEasyBots","EasyBots","MediumBots","HardBots","InsaneBots","ExpertBots","MasterBots","SeniorMasterBots","GrandmasterBots","QuickMatch","Challenge","None","Pve"]],"estimatedTime":["float","",[]],"fromPlayFabId":["string","",[]],"ticketId":["string","",[]],"messageNumber":["integer","",[]],"timestamp":["integer","",[]]}},"net.in.MatchmakingForbiddenMessage":{"post_only":false,"fields":{"playFabId":["string","",[]],"suspendedUntilTicks":["integer","",[]],"gameStartedTicks":["integer","",[]],"gameId":["string","",[]],"recentlyDodged":["bool","",[]]}},"net.in.MatchmakingPlayerAllReadyMessage":{"post_only":false,"fields":{"expectedPlayers":["integer","",[]]}},"net.in.MatchmakingPlayerReadyFailedMessage":{"post_only":false,"fields":{"queueType":["enum","",["Normal","Casual","Practice","Custom","Sandbox","CasualNoob","Classic","ClassicNoob","ClassicSortaNoob","Arcade","BeginnerBots","VeryEasyBots","EasyBots","MediumBots","HardBots","InsaneBots","ExpertBots","MasterBots","SeniorMasterBots","GrandmasterBots","QuickMatch","Challenge","None","Pve"]]}},"net.in.MatchmakingPlayerReadyMessage":{"post_only":false,"fields":{"readyPlayers":["integer","",[]],"expectedPlayers":["integer","",[]]}},"net.in.MatchmakingRequestCanceledMessage":{"post_only":false,"fields":{"sourcePlayFabId":["string","",[]],"cancellationReason":["enum","",["Voluntary","LeaveForQuickMatch","MatchmakingError","QuitApplication","FailedValidationOnLobby","FailedValidationOnClient","ClientInternalOrTimeoutError","ClientUnknownApiError","PartyMemberLeftOrDisconnected","PartyMemberJoined"]]}},"net.in.MatchmakingV1RequestFailedMessage":{"post_only":false,"fields":{"debugReason":["string","",[]]}},"net.in.NetworkErrorMessage":{"post_only":false,"fields":{"message":["string","",[]]}},"net.in.PartyIsAvailableForQuickMatchMessage":{"post_only":false,"fields":{"sourcePlayFabId":["string","",[]],"estimatedQueueTime":["integer","",[]]}},"net.in.PartyMembersChangedMessage":{"post_only":false,"fields":{"owner":["string","",[]],"timestamp":["float","",[]]}},"net.in.PartyRecoveryFailedMessage":{"post_only":false,"fields":{"queueType":["enum","",["Normal","Casual","Practice","Custom","Sandbox","CasualNoob","Classic","ClassicNoob","ClassicSortaNoob","Arcade","BeginnerBots","VeryEasyBots","EasyBots","MediumBots","HardBots","InsaneBots","ExpertBots","MasterBots","SeniorMasterBots","GrandmasterBots","QuickMatch","Challenge","None","Pve"]]}},"net.in.PlayGlobalSoundMessage":{"post_only":false,"fields":{"sfxPath":["string","",[]],"announcer":["bool","",[]],"ui":["bool","",[]]}},"net.in.PlayGlobalWhatSoundMessage":{"post_only":false,"fields":{"unitType":["string","",[]]}},"net.in.PlaySoundAtPointMessage":{"post_only":false,"fields":{"sfxPath":["string","",[]],"point":["object","",[]]}},"net.in.PlaySoundFromUnitMessage":{"post_only":false,"fields":{"unit":["integer","",[]],"soundType":["enum","",["What","Death"]]}},"net.in.PlaySpecialThemeMessage":{"post_only":false,"fields":{"sfxPath":["string","",[]]}},"net.in.PostGameStatsMessage":{"post_only":false,"fields":{"localPlayer":["integer","",[]],"queueType":["enum","",["Normal","Casual","Practice","Custom","Sandbox","CasualNoob","Classic","ClassicNoob","ClassicSortaNoob","Arcade","BeginnerBots","VeryEasyBots","EasyBots","MediumBots","HardBots","InsaneBots","ExpertBots","MasterBots","SeniorMasterBots","GrandmasterBots","QuickMatch","Challenge","None","Pve"]],"postGameResult":["enum","",["LeftTeamWon","RightTeamWon","Tie","MissionComplete","MissionIncomplete"]],"gameResult":["enum","",["Won","Lost","Tied"]],"wave":["integer","",[]],"gameTimeSeconds":["integer","",[]],"currentRating":["integer","",[]],"xpGained":["integer","",[]],"currencyEarned":["integer","",[]],"eloDelta":["integer","",[]],"guildXpGained":["integer","",[]],"guildVpGained":["integer","",[]],"eventPoints":["integer","",[]],"eventPointsGained":["integer","",[]],"lp":["integer","",[]],"lpGained":["integer","",[]],"lpGamesThisWeek":["integer","",[]],"mp":["integer","",[]],"mpGained":["integer","",[]],"openingUnitType":["string","",[]],"ratingModifierTexts":["list","",[]],"currencyModifierTexts":["list","",[]],"guildXpModifierTexts":["list","",[]],"mpModifierTexts":["list","",[]],"causedMatchCanceled":["bool","",[]],"dateTimeUtcTicks":["integer","",[]],"gameId":["string","",[]],"gameCoachMistake":["object","",[]],"leftTeamRows":["list","",[]],"rightTeamRows":["list","",[]],"waveDatas":["list","",[]],"buildData":["object","",[]],"graphData":["object","",[]],"suspiciousPlayerNames":["list","",[]],"fairPlayToxicityInfo":["object","",[]],"starsEarned":["list","",[]],"missionId":["string","",[]],"missionHardMode":["bool","",[]],"missionStarNumber":["integer","",[]],"achievementsEarned":["list","",[]],"goalsEarned":["list","",[]],"itemsEarned":["list","",[]],"usedDoubleDown":["bool","",[]],"peGained":["integer","",[]]}},"net.in.PromptLockInMessage":{"post_only":false,"fields":{"isReconnect":["bool","",[]],"numChoices":["integer","",[]]}},"net.in.ReadyForMatchmakingV2Message":{"post_only":false,"fields":{"queueType":["enum","",["Normal","Casual","Practice","Custom","Sandbox","CasualNoob","Classic","ClassicNoob","ClassicSortaNoob","Arcade","BeginnerBots","VeryEasyBots","EasyBots","MediumBots","HardBots","InsaneBots","ExpertBots","MasterBots","SeniorMasterBots","GrandmasterBots","QuickMatch","Challenge","None","Pve"]]}},"net.in.ReceiveEmoteMessage":{"post_only":false,"fields":{"emoteIndex":["integer","",[]],"player":["integer","",[]],"animationType":["string","",[]],"point":["object","",[]]}},"net.in.ReceiveMysteriousCardMessage":{"post_only":false,"fields":{"itemType":["string","",[]],"triggerItemType":["string","",[]]}},"net.in.ReceiveMysteriousMultiCardsMessage":{"post_only":false,"fields":{"itemType":["string","",[]],"cards":["list","",[]]}},"net.in.RefreshAutoSendMercsMessage":{"post_only":false,"fields":{"player":["integer","",[]],"sendDecision":["integer","",[]],"sendPreview":["list","",[]]}},"net.in.RefreshAutosendStatusMessage":{"post_only":false,"fields":{"enabled":["bool","",[]],"player":["integer","",[]],"decision":["enum","",["None","Save","Income","Power"]]}},"net.in.RefreshBuilderInfoMessage":{"post_only":false,"fields":{"masterminds":["list","",[]],"legions":["list","",[]],"builderChoosen":["list","",[]]}},"net.in.RefreshChatRoomHistoryMessage":{"post_only":false,"fields":{"messages":["list","",[]]}},"net.in.RefreshChatRoomSubscribersMessage":{"post_only":false,"fields":{"channelName":["string","",[]],"subscribers":["list","",[]],"subscribersDisplayNames":["list","",[]],"avatars":["list","",[]],"ingame":["list","",[]],"isCachedResult":["bool","",[]]}},"net.in.RefreshClassicModeEnabledMessage":{"post_only":false,"fields":{"incomeAndChillEnabled":["bool","",[]],"modeIndex":["integer","",[]]}},"net.in.RefreshCustomGameRoomsMessage":{"post_only":false,"fields":{"rooms":["list","",[]]}},"net.in.RefreshCustomGameSettingsMessage":{"post_only":false,"fields":{"settings":["object","",[]]}},"net.in.RefreshDataReportsMessage":{"post_only":false,"fields":{"dailyActiveUsers":["string","",[]],"currentPlayerCount":["integer","",[]],"totalAccounts":["integer","",[]],"matchmakingRatingCap":["integer","",[]],"smurfRatingCap":["integer","",[]]}},"net.in.RefreshDeltaMultiplierMessage":{"post_only":false,"fields":{"deltaMultiplier":["float","",[]],"deltaBonus":["integer","",[]],"player":["integer","",[]]}},"net.in.RefreshDeployStacksMessage":{"post_only":false,"fields":{"StacksTable":["list","",[]]}},"net.in.RefreshExtraGoldCountersMessage":{"post_only":false,"fields":{"player":["integer","",[]],"fiestaGold":["integer","",[]],"dwarfBankerGold":["integer","",[]],"chloropixieMythium":["integer","",[]],"redrawGold":["integer","",[]],"vaultGold":["integer","",[]],"vaultUsedOnWave":["integer","",[]],"executionerGold":["integer","",[]],"hybridGold":["integer","",[]],"riftTraderGold":["integer","",[]]}},"net.in.RefreshGoldBountyRemainingMessage":{"post_only":false,"fields":{"goldBountyRemaining":["integer","",[]],"leakGoldRemaining":["integer","",[]],"cartelGold":["integer","",[]],"castleGold":["integer","",[]]}},"net.in.RefreshInGameCoachMessage":{"post_only":false,"fields":{"tipType":["string","",[]],"message":["string","",[]],"flags":["enum","",["None","Autoshow","Autohide","AutohideAfterShortDelay","AutohideAfterLongDelay"]]}},"net.in.RefreshLeakRatioMessage":{"post_only":false,"fields":{"player":["integer","",[]],"leakRatioFirstNumber":["integer","",[]],"leakRatioSecondNumber":["integer","",[]]}},"net.in.RefreshLoadingProgressMessage":{"post_only":false,"fields":{"player":["integer","",[]],"progress":["float","",[]]}},"net.in.RefreshLoadingStickerExtrasMessage":{"post_only":false,"fields":{"avatarStacks":["list","",[]],"guildAvatars":["list","",[]],"guildAvatarStacks":["list","",[]],"guildWarActive":["bool","",[]],"classicElosToUse":["list","",[]],"isClassic":["bool","",[]],"countries":["list","",[]],"hasBigWigPass":["list","",[]]}},"net.in.RefreshLoadingStickerSuffixMessage":{"post_only":false,"fields":{"player":["integer","",[]],"suffix":["string","",[]]}},"net.in.RefreshMegamindEnabledMessage":{"post_only":false,"fields":{"player":["integer","",[]],"enabled":["bool","",[]]}},"net.in.RefreshMercenariesReceivedMessage":{"post_only":false,"fields":{"mythiumReceived":["list","",[]],"mythiumSent":["list","",[]],"mercenariesReceived":["list","",[]],"hideNotifications":["bool","",[]],"kingUpgrades":["list","",[]],"opponentKingUpgrades":["list","",[]],"opponentKingUpgradesValue":["list","",[]],"opponentExtraIcons":["list","",[]]}},"net.in.RefreshMonumentsMessage":{"post_only":false,"fields":{"player":["integer","",[]],"monuments":["list","",[]]}},"net.in.RefreshObjectivesMessage":{"post_only":false,"fields":{"objectives":["list","",[]]}},"net.in.RefreshPartyMembersMessage":{"post_only":false,"fields":{"playFabIds":["list","",[]],"ownerPlayFabId":["string","",[]],"messageNumber":["integer","",[]],"operationType":["enum","",["Overwrite","Leave","Join","SyncToClientOnly"]],"autoJoin":["bool","",[]]}},"net.in.RefreshPiggybankGoldMessage":{"post_only":false,"fields":{"piggybankGold":["integer","",[]],"piggybankGoldNextWave":["integer","",[]],"piggybankGoldNextWaveIfLeaked":["integer","",[]],"piggybankGoldCollected":["integer","",[]]}},"net.in.RefreshPlaybackRateMessage":{"post_only":false,"fields":{"playbackRate":["float","",[]]}},"net.in.RefreshPlayerDamageTrackerMessage":{"post_only":false,"fields":{"tracker":["object","",[]]}},"net.in.RefreshPlayerOpeningsMessage":{"post_only":false,"fields":{"player":["integer","",[]],"unitTypes":["list","",[]]}},"net.in.RefreshPlayerRerollsMessage":{"post_only":false,"fields":{"player":["integer","",[]],"rerollsRemaining":["integer","",[]],"rerollsMax":["integer","",[]]}},"net.in.RefreshPlayerStackrankMessage":{"post_only":false,"fields":{"stackrankProperties":["list","",[]]}},"net.in.RefreshSpectatorWinProbabilitiesMessage":{"post_only":false,"fields":{"westWinProbability":["integer","",[]],"eastWinProbability":["integer","",[]]}},"net.in.RefreshSuddenDeathCountMessage":{"post_only":false,"fields":{"suddenDeathCount":["integer","",[]]}},"net.in.RequestAvatarResultMessage":{"post_only":false,"fields":{"playFabId":["string","",[]],"steamId":["integer","",[]],"avatarImage":["string","",[]],"avatarStacks":["integer","",[]]}},"net.in.RequestBackendDataResultMessage":{"post_only":false,"fields":{"callbackNumber":["integer","",[]],"requestType":["enum","",["FullPlayerProfile","MiniPlayerProfile"]],"rawResults":["list","",[]]}},"net.in.RequestCustomGameListingMessage":{"post_only":false,"fields":{"channelLobbyId":["string","",[]],"lobbyBuildId":["string","",[]]}},"net.in.RequestGameServerWelcomeMessage":{"post_only":false,"fields":{"tick":["integer","",[]]}},"net.in.RequestGuildUpdateResultMessage":{"post_only":false,"fields":{"updateType":["enum","",["SetAbbreviation","SetName","SetTagline","SetNotice","LeaveGuild","DisbandGuild","KickMember","InviteMember","RevokeInvitation","RejectInvitation","AcceptApplication","RejectApplication","SubmitApplication","ChangeRole","SetTitle","DonateCard","SetAvatar","SetEmblem","SetDiscord"]],"value":["string","",[]],"result":["enum","",["Success","AlreadyTaken","WrongLength","UnknownError","MissingItem","WrongPermissions","FailedSanitizationCheck","InvalidCharacters","AlreadyInGuild","InvalidRole","AlreadyInvited","TargetNotEnoughCurrency","GuildIsFull","FailedLevelRequirement","NoLongerInGuild"]],"errorDebugMessage":["string","",[]],"customReturnValue1":["string","",[]],"customReturnValue2":["string","",[]],"cards":["list","",[]]}},"net.in.RequestLinkedAccountsResultMessage":{"post_only":false,"fields":{"epicId":["string","",[]],"steamId":["string","",[]],"displayName":["string","",[]],"playFabId":["string","",[]],"addAsFriend":["bool","",[]],"sendInboxMessage":["bool","",[]]}},"net.in.RequestOpeningsLeaderboardResultMessage":{"post_only":false,"fields":{"leaderboard":["object","",[]]}},"net.in.RequestOpeningsMatchHistoryResultMessage":{"post_only":false,"fields":{"m":["object","",[]]}},"net.in.RequestReportPlayerResultMessage":{"post_only":false,"fields":{"targetPlayFabId":["string","",[]],"errorMessage":["string","",[]],"category":["enum","",["Griefing","VerbalAbuse","OffensiveName","Leaving","Other"]],"comment":["string","",[]]}},"net.in.RequestSteamIdResultMessage":{"post_only":false,"fields":{"steamId":["integer","",[]],"pchDialog":["string","",[]],"displayName":["string","",[]],"playFabId":["string","",[]]}},"net.in.RequestTaglineResultMessage":{"post_only":false,"fields":{"playFabId":["string","",[]],"steamId":["integer","",[]],"tagline":["string","",[]]}},"net.in.RequestTryJoinCustomGameRoomMessage":{"post_only":false,"fields":{"ownerPlayFabId":["string","",[]],"joinerPlayFabId":["string","",[]]}},"net.in.RequestTwitchResultMessage":{"post_only":false,"fields":{"payload":["string","",[]]}},"net.in.RerollQuestResultMessage":{"post_only":false,"fields":{"success":["bool","",[]],"remainingRerolls":["integer","",[]],"quests":["list","",[]]}},"net.in.SavedTowerBuildMessage":{"post_only":false,"fields":{"serializedBuild":["string","",[]]}},"net.in.SendServerTimeMessage":{"post_only":false,"fields":{"currentTime":["integer","",[]]}},"net.in.ServerToClientKeepAliveMessage":{"post_only":false,"fields":{"tick":["integer","",[]]}},"net.in.SetBarracksEnabledMessage":{"post_only":false,"fields":{"barracksEnabled":["bool","",[]],"kingUpgradesEnabled":["bool","",[]],"barracksDisabledDescription":["string","",[]],"kingUpgradesDisabledDescription":["string","",[]]}},"net.in.SetCameraPositionMessage":{"post_only":false,"fields":{"point":["object","",[]],"unit":["integer","",[]],"locked":["bool","",[]],"instant":["bool","",[]]}},"net.in.SetChatRoomPropertiesMessage":{"post_only":false,"fields":{"chatRoomType":["enum","",["Standard","Guild","PostGame","CustomGameRoom","InGame","Party"]],"chatRoomName":["string","",[]]}},"net.in.SetDisplayNameResultMessage":{"post_only":false,"fields":{"success":["bool","",[]],"isConfirmed":["bool","",[]],"displayName":["string","",[]]}},"net.in.SetEastEnemiesRemainingTextMessage":{"post_only":false,"fields":{"amount":["integer","",[]],"messageNumber":["integer","",[]]}},"net.in.SetHudEnabledMessage":{"post_only":false,"fields":{"enabled":["bool","",[]]}},"net.in.SetHudInfoMessage":{"post_only":false,"fields":{"hudTheme":["string","",[]]}},"net.in.SetHudSourceMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"section":["enum","",["None","Dashboard","Windshield","Glovebox","LeftKing","RightKing","Target","Scoreboard","Console","Leftbox"]],"unit":["integer","",[]]}},"net.in.SetMatchModifiersMessage":{"post_only":false,"fields":{"matchModifiers":["list","",[]]}},"net.in.SetMinimapImageMessage":{"post_only":false,"fields":{"minimapPath":["string","",[]]}},"net.in.SetObjectFailedMessage":{"post_only":false,"fields":{"queueType":["enum","",["Normal","Casual","Practice","Custom","Sandbox","CasualNoob","Classic","ClassicNoob","ClassicSortaNoob","Arcade","BeginnerBots","VeryEasyBots","EasyBots","MediumBots","HardBots","InsaneBots","ExpertBots","MasterBots","SeniorMasterBots","GrandmasterBots","QuickMatch","Challenge","None","Pve"]]}},"net.in.SetPickedMastermind":{"post_only":false,"fields":{"variant":["enum","",["None","LockIn","Greed","Redraw","Yolo","Chaos","Hybrid","Fiesta","CashOut","Castle","Cartel","Champion","Kingsguard","Scrapper","Megamind","Saboteur","Stash","Miner","Aristocrat","Moneylender","Shepherd","Evolution","Swarm","Ace"]]}},"net.in.SetRegionHiddenMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"player":["integer","",[]],"shape":["object","",[]]}},"net.in.SetRegionVisibleMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"player":["integer","",[]],"shape":["object","",[]]}},"net.in.SetResearchLevelsMessage":{"post_only":false,"fields":{"researchTypes":["list","",[]],"levels":["list","",[]]}},"net.in.SetSpectatorHudMessage":{"post_only":false,"fields":{"tick":["integer","",[]]}},"net.in.SetWaveNumberMessage":{"post_only":false,"fields":{"waveNumber":["integer","",[]]}},"net.in.SetWaveTimeMessage":{"post_only":false,"fields":{"endTick":["integer","",[]],"isPaused":["bool","",[]]}},"net.in.SetWaveTimerPausedMessage":{"post_only":false,"fields":{"paused":["bool","",[]]}},"net.in.SetWestEnemiesRemainingTextMessage":{"post_only":false,"fields":{"amount":["integer","",[]],"messageNumber":["integer","",[]]}},"net.in.ShowChallengeVictoryWindowMessage":{"post_only":false,"fields":{"challengeBuild":["object","",[]],"myBuild":["object","",[]],"challengeScore":["float","",[]],"myLeakPercent":["float","",[]],"myGold":["integer","",[]],"myScore":["integer","",[]],"myRating":["integer","",[]],"firstTimeBeatingGoal":["bool","",[]],"message":["string","",[]],"playSound":["bool","",[]]}},"net.in.ShowExtraGoldVariantMenuMessage":{"post_only":false,"fields":{"tick":["integer","",[]]}},"net.in.ShowLockInRaffleMessage":{"post_only":false,"fields":{"unitType":["string","",[]]}},"net.in.ShowMastermindVariantWindowMessage":{"post_only":false,"fields":{"mastermindPlaystyleStatuses":["list","",[]],"classicSpecialModeIndex":["integer","",[]]}},"net.in.ShowModeVotingMenuMessage":{"post_only":false,"fields":{"specialModeIndex":["integer","",[]]}},"net.in.ShowPowerupsWindowMessage":{"post_only":false,"fields":{"powerupTypes":["list","",[]],"forced":["bool","",[]]}},"net.in.ShowRerollWindowMessage":{"post_only":false,"fields":{"unitTypes":["list","",[]],"guaranteedUnitTypes":["list","",[]],"mulligansRemaining":["integer","",[]],"enableAutopick":["bool","",[]],"isAristocrat":["bool","",[]],"isLockIn":["bool","",[]],"isSwarm":["bool","",[]]}},"net.in.ShowStrategistRaffleMessage":{"post_only":false,"fields":{"chosenVariant":["enum","",["None","LockIn","Greed","Redraw","Yolo","Chaos","Hybrid","Fiesta","CashOut","Castle","Cartel","Champion","Kingsguard","Scrapper","Megamind","Saboteur","Stash","Miner","Aristocrat","Moneylender","Shepherd","Evolution","Swarm","Ace"]]}},"net.in.ShowVersusOverlayMessage":{"post_only":false,"fields":{"versusInfos":["list","",[]]}},"net.in.SpecialCouponResultMessage":{"post_only":false,"fields":{"couponCode":["string","",[]],"itemTypeToGrant":["string","",[]],"error":["string","",[]]}},"net.in.SpecialEffectBatchMessage":{"post_only":false,"fields":{"keyframes":["object","",[]],"keyframesList":["list","",[]]}},"net.in.SyncGuildEmblemMessage":{"post_only":false,"fields":{"player":["integer","",[]],"chunkNumber":["integer","",[]],"totalChunks":["integer","",[]],"guildEmblemChunk":["string","",[]]}},"net.in.SyncMoneyLendMessage":{"post_only":false,"fields":{"enabled":["bool","",[]]}},"net.in.SyncPlayerControllerMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"player":["integer","",[]],"controller":["string","",[]],"name":["string","",[]],"muted":["bool","",[]],"customizationIds":["list","",[]]}},"net.in.SyncQueueStateMessage":{"post_only":false,"fields":{"player":["integer","",[]],"sourceUnit":["integer","",[]],"queueActionType":["enum","",["QueueMercenary","QueueWorker","QueueKingUpgrade"]],"ids":["list","",[]],"queueAmounts":["list","",[]],"messageNumber":["integer","",[]]}},"net.in.SyncTimeHeartbeatMessage":{"post_only":false,"fields":{"currentTime":["integer","",[]],"forced":["bool","",[]]}},"net.in.SyncUnitGarrisonMessage":{"post_only":false,"fields":{"unit":["integer","",[]],"supplierTypes":["list","",[]],"supplierCounts":["list","",[]],"supplierProgresses":["list","",[]]}},"net.in.TitleDataChangedMessage":{"post_only":false,"fields":{"tick":["integer","",[]]}},"net.in.TryJoinGuildResultMessage":{"post_only":false,"fields":{"success":["bool","",[]],"props":["object","",[]],"oldEssenceBalance":["integer","",[]],"newEssenceBalance":["integer","",[]],"senderDisplayName":["string","",[]],"alreadyHasGroup":["bool","",[]],"showWelcomePopup":["bool","",[]]}},"net.in.UnitKeyframesBatchMessage":{"post_only":false,"fields":{"keyframes":["object","",[]],"keyframesList":["list","",[]],"batchNumber":["integer","",[]]}},"net.in.UnitKilledEventMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"unit":["integer","",[]],"killer":["integer","",[]],"bounty":["integer","",[]],"bountyReceiver":["integer","",[]]}},"net.in.UnitSpecialEffectBatchMessage":{"post_only":false,"fields":{"keyframes":["object","",[]],"keyframesList":["list","",[]]}},"net.in.UpdateAutopauseTimerMessage":{"post_only":false,"fields":{"disconnectedPlayers":["list","",[]],"secondsRemaining":["integer","",[]],"canSkip":["bool","",[]]}},"net.in.UpdateBuildCursorMessage":{"post_only":false,"fields":{"sourcePlayer":["integer","",[]],"shortUnitType":["integer","",[]],"point":["object","",[]]}},"net.in.UpdateChatTimelineMessage":{"post_only":false,"fields":{"timestamp":["integer","",[]],"player":["integer","",[]],"message":["string","",[]],"allChat":["bool","",[]],"messageType":["enum","",["Standard","Affirmative","Unsure","Alert","StandardLong","Party","Whisper","System","Discord","Guild","GuildNotice","ExpectingSend","ThinkingAboutSending"]]}},"net.in.UpdateCustomGameRoomSlotMessage":{"post_only":false,"fields":{"slot":["integer","",[]],"controller":["string","",[]]}},"net.in.UpdateKingStacksMessage":{"post_only":false,"fields":{"triggeringPlayer":["integer","",[]]}},"net.in.UpdateLoginQueuePositionMessage":{"post_only":false,"fields":{"position":["integer","",[]]}},"net.in.UpdateModeVotingPlayersMessage":{"post_only":false,"fields":{"readyPlayers":["list","",[]]}},"net.in.UpdatePlayerAfkStatusTimelineMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"player":["integer","",[]],"value":["bool","",[]],"messageNumber":["integer","",[]]}},"net.in.UpdatePlayerAttackerPlayerTimelineMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"player":["integer","",[]],"value":["integer","",[]],"messageNumber":["integer","",[]]}},"net.in.UpdatePlayerConnectedTimelineMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"player":["integer","",[]],"value":["bool","",[]],"messageNumber":["integer","",[]]}},"net.in.UpdatePlayerControllerTimelineMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"player":["integer","",[]],"value":["string","",[]],"messageNumber":["integer","",[]]}},"net.in.UpdatePlayerDefenderPlayerTimelineMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"player":["integer","",[]],"value":["integer","",[]],"messageNumber":["integer","",[]]}},"net.in.UpdatePlayerDualBuildingMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"player":["integer","",[]],"value":["bool","",[]],"messageNumber":["integer","",[]]}},"net.in.UpdatePlayerExtraRecommendedValueMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"player":["integer","",[]],"value":["integer","",[]],"messageNumber":["integer","",[]]}},"net.in.UpdatePlayerFoodCapTimelineMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"player":["integer","",[]],"value":["integer","",[]],"messageNumber":["integer","",[]]}},"net.in.UpdatePlayerFoodUsedTimelineMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"player":["integer","",[]],"value":["integer","",[]],"messageNumber":["integer","",[]]}},"net.in.UpdatePlayerGoldTimelineMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"player":["integer","",[]],"value":["integer","",[]],"messageNumber":["integer","",[]]}},"net.in.UpdatePlayerImageTimelineMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"player":["integer","",[]],"value":["string","",[]],"messageNumber":["integer","",[]]}},"net.in.UpdatePlayerIncomeTimelineMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"player":["integer","",[]],"value":["integer","",[]],"messageNumber":["integer","",[]]}},"net.in.UpdatePlayerLaneSkinMessage":{"post_only":false,"fields":{"player":["integer","",[]],"modId":["string","",[]]}},"net.in.UpdatePlayerLeakedPercentOnWaveMessage":{"post_only":false,"fields":{"player":["integer","",[]],"waveNumber":["integer","",[]],"percent":["float","",[]],"messageNumber":["integer","",[]]}},"net.in.UpdatePlayerLegionUnitTypeMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"player":["integer","",[]],"value":["string","",[]],"messageNumber":["integer","",[]]}},"net.in.UpdatePlayerMythiumGatherRateMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"player":["integer","",[]],"value":["float","",[]],"messageNumber":["integer","",[]]}},"net.in.UpdatePlayerMythiumTimelineMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"player":["integer","",[]],"value":["integer","",[]],"messageNumber":["integer","",[]]}},"net.in.UpdatePlayerNameTimelineMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"player":["integer","",[]],"value":["string","",[]],"messageNumber":["integer","",[]]}},"net.in.UpdatePlayerPartyMembersTimelineMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"player":["integer","",[]],"value":["list","",[]],"messageNumber":["integer","",[]]}},"net.in.UpdatePlayerPowerupChoicesTimelineMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"player":["integer","",[]],"value":["list","",[]],"messageNumber":["integer","",[]]}},"net.in.UpdatePlayerPowerupSelectedTimelineMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"player":["integer","",[]],"value":["string","",[]],"messageNumber":["integer","",[]]}},"net.in.UpdatePlayerRollsTimelineMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"player":["integer","",[]],"value":["list","",[]],"messageNumber":["integer","",[]]}},"net.in.UpdatePlayerTotalEnemyTeamGoldFromYourLeaksMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"player":["integer","",[]],"value":["integer","",[]],"messageNumber":["integer","",[]]}},"net.in.UpdatePlayerTotalGoldFromCatchingLeaksMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"player":["integer","",[]],"value":["integer","",[]],"messageNumber":["integer","",[]]}},"net.in.UpdatePlayerTotalGoldFromEnemyLeaksMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"player":["integer","",[]],"value":["integer","",[]],"messageNumber":["integer","",[]]}},"net.in.UpdatePlayerTotalGoldFromIncomeMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"player":["integer","",[]],"value":["integer","",[]],"messageNumber":["integer","",[]]}},"net.in.UpdatePlayerTotalGoldLostToLeaksMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"player":["integer","",[]],"value":["integer","",[]],"messageNumber":["integer","",[]]}},"net.in.UpdatePlayerTotalMythiumTimelineMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"player":["integer","",[]],"value":["integer","",[]],"messageNumber":["integer","",[]]}},"net.in.UpdatePlayerValueTimelineMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"player":["integer","",[]],"value":["integer","",[]],"messageNumber":["integer","",[]]}},"net.in.UpdatePlayerWorkersTimelineMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"player":["integer","",[]],"value":["float","",[]],"messageNumber":["integer","",[]]}},"net.in.UpdateReadyPlayersMessage":{"post_only":false,"fields":{"active":["bool","",[]],"message":["string","",[]],"readyPlayers":["integer","",[]],"totalPlayers":["integer","",[]]}},"net.in.UpdateResearchLevelMessage":{"post_only":false,"fields":{"researchType":["string","",[]],"level":["integer","",[]]}},"net.in.UpdateSquareOccupyTimelineMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"player":["integer","",[]],"constructionInfo":["object","",[]]}},"net.in.UpdateTowerScoreboardMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"player":["integer","",[]],"constructionInfos":["list","",[]]}},"net.in.UpdatedPlayerMutedTimelineMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"player":["integer","",[]],"value":["bool","",[]],"messageNumber":["integer","",[]]}},"net.in.UsedQueuedKingUpgradeMessage":{"post_only":false,"fields":{"wave":["integer","",[]]}},"net.out.AbilityCommandMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"orderString":["enum","",["None","Attack","Move","AttackMove","AttackMoveApproachTarget","TowerAutoAttack","HoldPosition","Build","Sell","Cancel","CancelUpgrade","Harvest","Deliver","AcceptMythium","AcceptGold","SimpleAura","Bash","BounceAttack","EmpoweredAttack","SplashAttack","VioletWind","NaturesTouch","SummonChaosHound","ConjureDragon","RaiseImp","SkullStew","BloodRush","ManaShield","Overheat","Fatality","Necromancy","MagneticAccelerator","Anaphylaxis","Frenzy","CrushingBlow","StoneForm","Mindwarp","Shrapnel","Hotblood","RangedDamageReduction","SpellDamageReduction","AutoAttackDamageReduction","KillingSpree","Wither","GiantSlayer","Thorns","RampingDamage","Sacrifice","Hero","Ambush","Oracle","JuiceUp","Generator","IonicForce","CellRegrowth","Icewind","SearingArrows","GiantSlayerCurrentHealth","Delicacy","ExplodeOnAttackTargetDeath","Adapt","FishermanTraining","ManaTransferOnUpgrade","EliteFisherman","BigGameHunter","Intellect","Incubation","SplitOnDeath","BurstAttack","SearchForTreasure","SearchForTreasureEffect","LevelUp","Acrobatics","SearchForTreasureUndo","Dominion","ChainHeal","GaiaShield","Immolation","Stampede","LightningHammer","ExplodeOnDeath","AncientPower","SilentScream","Bipolar","SpiritOffering","ArmWithShuriken","ManaTransferOnBecomesFighter","ResetManaOnBecomesTower","ThrowShuriken","Evasion","BloodPrice","DimensionalRift","ActivateRageMode","ManaBlessing","Plunder","ManaBurn","DisableManaRegen","Aegis","FullThrottle","SplashAttackAroundMe","MetalForm","EarlyHarvest","Superbloom","SimpleBuff","MythiumOnAttack","Shadowbreeder","Tenacity","Exuberance","Devotion","ForbiddenFruit","EMP","CompoundInterest","ShortSelling","PotOHoney","SecretStash","Champion","UndoSpiritOffering","ExecutionerExecute","DivineBlessing","Executioner","GlacialTouch","Magician","Protector","Pulverizer","Sorcerer","Titan","Vampire","Villain","Wolverine","Artillery","AtomicAcceleration","RadiantShielding","TriumOfPower","Rage","Reposition","Evolve","UndoSpell","RotatingPotions","RotatingPotionHeal","RotatingPotionMana","RotatingPotionAtkSpd","Sniper","PortalOfTrash","Buzzinator","EternalFlame"]],"units":["list","",[]],"target":["integer","",[]],"point":["object","",[]],"abilityType":["string","",[]]}},"net.out.AcceptInviteToGuildMessage":{"post_only":false,"fields":{"guildId":["string","",[]],"inboxMessageId":["string","",[]],"senderDisplayName":["string","",[]]}},"net.out.AcceptPartyInviteMessage":{"post_only":false,"fields":{"inviterPlayFabId":["string","",[]]}},"net.out.AckServerTimeMessage":{"post_only":false,"fields":{"tick":["integer","",[]]}},"net.out.AuthenticateAsGameServerMessage":{"post_only":false,"fields":{"secretKey":["string","",[]],"gameId":["string","",[]]}},"net.out.AuthenticateSessionTicketMessage":{"post_only":false,"fields":{"playFabId":["string","",[]],"sessionTicket":["string","",[]],"partyMembers":["list","",[]],"partyJoinTime":["integer","",[]],"savedChatRoomType":["enum","",["Standard","Guild","PostGame","CustomGameRoom","InGame","Party"]],"savedChatRoomName":["string","",[]],"previousGameId":["string","",[]],"previousGameIdHash":["string","",[]],"isSpectate":["bool","",[]]}},"net.out.AvailableForQuickMatchMessage":{"post_only":false,"fields":{"timeInQueue":["float","",[]]}},"net.out.BrowseGuildsSearchByAbbreviationMessage":{"post_only":false,"fields":{"guildAbbreviation":["string","",[]]}},"net.out.BuildMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"builder":["integer","",[]],"unitType":["string","",[]],"point":["object","",[]],"facing":["object","",[]]}},"net.out.CancelMatchmakingRequestMessage":{"post_only":false,"fields":{"queueType":["enum","",["Normal","Casual","Practice","Custom","Sandbox","CasualNoob","Classic","ClassicNoob","ClassicSortaNoob","Arcade","BeginnerBots","VeryEasyBots","EasyBots","MediumBots","HardBots","InsaneBots","ExpertBots","MasterBots","SeniorMasterBots","GrandmasterBots","QuickMatch","Challenge","None","Pve"]],"cancellationReason":["enum","",["Voluntary","LeaveForQuickMatch","MatchmakingError","QuitApplication","FailedValidationOnLobby","FailedValidationOnClient","ClientInternalOrTimeoutError","ClientUnknownApiError","PartyMemberLeftOrDisconnected","PartyMemberJoined"]],"debugReason":["string","",[]]}},"net.out.CancelTrainMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"unit":["integer","",[]]}},"net.out.CastInboxVoteMessage":{"post_only":false,"fields":{"id":["string","",[]],"question":["string","",[]],"selectedOptionId":["integer","",[]],"selectedOptionLabel":["string","",[]],"senderDisplayName":["string","",[]],"senderPlayFabId":["string","",[]],"senderCountryCode":["string","",[]],"senderLevel":["integer","",[]],"senderRankedElo":["integer","",[]],"senderRankedGames":["integer","",[]],"senderClassicElo":["integer","",[]],"senderClassicGames":["integer","",[]],"senderTotalValueUsd":["float","",[]],"senderBehaviorScorePercentage":["float","",[]]}},"net.out.ChatRoomCommandMessage":{"post_only":false,"fields":{"command":["string","",[]],"argument":["string","",[]]}},"net.out.ChooseExtraGoldVariantMessage":{"post_only":false,"fields":{"variantNumber":["integer","",[]]}},"net.out.ChooseInitialExperienceLevelMessage":{"post_only":false,"fields":{"initialExperienceLevel":["string","",[]]}},"net.out.ChooseMastermindVariantMessage":{"post_only":false,"fields":{"variant":["enum","",["None","LockIn","Greed","Redraw","Yolo","Chaos","Hybrid","Fiesta","CashOut","Castle","Cartel","Champion","Kingsguard","Scrapper","Megamind","Saboteur","Stash","Miner","Aristocrat","Moneylender","Shepherd","Evolution","Swarm","Ace"]],"unitTypes":["list","",[]]}},"net.out.ChooseMissionMessage":{"post_only":false,"fields":{"missionId":["string","",[]],"hardMode":["bool","",[]],"starNumber":["integer","",[]]}},"net.out.ChoosePowerupMessage":{"post_only":false,"fields":{"powerupType":["string","",[]],"isSubpowerup":["bool","",[]]}},"net.out.ClaimQuestMessage":{"post_only":false,"fields":{"claimQuestIndex":["integer","",[]]}},"net.out.ClientConnectedToLoginMessage":{"post_only":false,"fields":{"connectionId":["integer","",[]]}},"net.out.ClientLoginHandshakeMessage":{"post_only":false,"fields":{"playFabId":["string","",[]]}},"net.out.ClientTimeSyncedGameLoadMessage":{"post_only":false,"fields":{"currentTime":["integer","",[]]}},"net.out.ClientToServerKeepAliveMessage":{"post_only":false,"fields":{"tick":["integer","",[]]}},"net.out.CollectMasteryRewardMessage":{"post_only":false,"fields":{"unitType":["string","",[]]}},"net.out.CollectPiggybankMessage":{"post_only":false,"fields":{"expectedGold":["integer","",[]]}},"net.out.ConsumeItemMessage":{"post_only":false,"fields":{"itemInstanceId":["string","",[]]}},"net.out.ConvertItemToEssenceMessage":{"post_only":false,"fields":{"itemType":["string","",[]]}},"net.out.DoneLoadingGameMessage":{"post_only":false,"fields":{"playerName":["string","",[]]}},"net.out.EquipItemViaPassMessage":{"post_only":false,"fields":{"itemId":["string","",[]],"itemClass":["string","",[]],"currentSkin":["string","",[]]}},"net.out.FinishedLoadingScreenMessage":{"post_only":false,"fields":{"hash64":["string","",[]]}},"net.out.ForceRefreshAnotherPlayerInbox":{"post_only":false,"fields":{"targetPlayFabId":["string","",[]]}},"net.out.ForwardedCreatePartyMessage":{"post_only":false,"fields":{"leaderPlayFabId":["string","",[]],"partyPlayFabIds":["list","",[]]}},"net.out.ForwardedEnteredOrLeftMatchmakingV2Message":{"post_only":false,"fields":{"playFabId":["string","",[]],"entering":["bool","",[]]}},"net.out.ForwardedJoinPartyMessage":{"post_only":false,"fields":{"inviteePlayFabId":["string","",[]],"autoJoin":["bool","",[]]}},"net.out.ForwardedLeavePartyMessage":{"post_only":false,"fields":{"leaverPlayFabId":["string","",[]],"partyMembers":["list","",[]],"flags":["enum","",["None","DontSync","DontFormRemainderParty","DontFormSoloParty","VoluntaryLeave","AutoJoin"]]}},"net.out.GameServerWelcomeMessage":{"post_only":false,"fields":{"connectionId":["integer","",[]],"matchInfo":["object","",[]],"LeftTeamEffectiveRating":["float","",[]],"RightTeamEffectiveRating":["float","",[]],"LeftTeamWinDelta":["float","",[]],"RightTeamWinDelta":["float","",[]],"GameStartTime":["integer","",[]],"GameVersionString":["string","",[]],"hostname":["string","",[]],"tcpPort":["integer","",[]],"udpPort":["integer","",[]],"slotIds":["list","",[]],"displayNames":["list","",[]],"totalXps":["list","",[]],"ratings":["list","",[]],"avatars":["list","",[]],"profileModifiers":["list","",[]],"isReconnect":["bool","",[]],"isSpectate":["bool","",[]],"hexGameId":["string","",[]],"debugInfo":["string","",[]],"buildId":["string","",[]],"serverId":["string","",[]],"startedTicks":["integer","",[]],"missionId":["string","",[]],"missionHardMode":["bool","",[]],"missionStarNumber":["integer","",[]],"incomeBonuses":["list","",[]],"earthKingUnitTypeOverride":["string","",[]],"skyKingUnitTypeOverride":["string","",[]]}},"net.out.GiftAFriendMessage":{"post_only":false,"fields":{"friendPlayFabId":["string","",[]],"friendDisplayName":["string","",[]]}},"net.out.GiftPEMessage":{"post_only":false,"fields":{"gifteePlayFabId":["string","",[]],"gifteeMessage":["string","",[]],"itemInstanceId":["string","",[]]}},"net.out.GuildClientActionMessage":{"post_only":false,"fields":{"guildClientAction":["enum","",["CreateGuild"]]}},"net.out.HireMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"builder":["integer","",[]],"unitType":["string","",[]],"sentFromQueue":["bool","",[]]}},"net.out.InQueueRequestMessage":{"post_only":false,"fields":{"requestedQueueType":["enum","",["Normal","Casual","Practice","Custom","Sandbox","CasualNoob","Classic","ClassicNoob","ClassicSortaNoob","Arcade","BeginnerBots","VeryEasyBots","EasyBots","MediumBots","HardBots","InsaneBots","ExpertBots","MasterBots","SeniorMasterBots","GrandmasterBots","QuickMatch","Challenge","None","Pve"]],"partyMembers":["list","",[]],"autoQueueIfClear":["bool","",[]]}},"net.out.InitMessage":{"post_only":false,"fields":{"gameId":["string","",[]],"connectionId":["integer","",[]],"titleId":["string","",[]]}},"net.out.KickFromPartyMessage":{"post_only":false,"fields":{"targetPlayFabId":["string","",[]]}},"net.out.LeavePartyMessage":{"post_only":false,"fields":{"tick":["integer","",[]]}},"net.out.LendMoneyMessage":{"post_only":false,"fields":{"expectedGold":["integer","",[]]}},"net.out.LoadSavedTowerBuildMessage":{"post_only":false,"fields":{"serializedBuild":["string","",[]]}},"net.out.LobbyReadyMessage":{"post_only":false,"fields":{"connectionId":["integer","",[]],"ip":["string","",[]],"tcpPort":["integer","",[]],"udpPort":["integer","",[]],"serverId":["string","",[]]}},"net.out.LogToServerMessage":{"post_only":false,"fields":{"message":["string","",[]],"customTag":["string","",[]]}},"net.out.MatchFoundActionPropagationMessage":{"post_only":false,"fields":{"action":["enum","",["None","Accepted","Declined"]]}},"net.out.OkLetsDualBuildMessage":{"post_only":false,"fields":{"player":["integer","",[]],"crossPartner":["integer","",[]]}},"net.out.PartyMemberMatchFoundMessage":{"post_only":false,"fields":{"playFabId":["string","",[]],"matchId":["string","",[]],"queueName":["string","",[]]}},"net.out.PowerSendMessage":{"post_only":false,"fields":{"tick":["integer","",[]]}},"net.out.QueueActionMessage":{"post_only":false,"fields":{"sourceUnit":["integer","",[]],"queueActionType":["enum","",["QueueMercenary","QueueWorker","QueueKingUpgrade"]],"id":["string","",[]],"isCancel":["bool","",[]],"forceSendMercenariesImmediately":["bool","",[]]}},"net.out.ReadyForQuickMatchMessage":{"post_only":false,"fields":{"playFabId":["string","",[]],"partyOwnerPlayFabId":["string","",[]],"difficulty":["enum","",["SuperEasy","Easy","Medium","Hard"]]}},"net.out.RefreshAreaOfInterestMessage":{"post_only":false,"fields":{"area":["object","",[]],"cameraHeight":["float","",[]]}},"net.out.RefreshAutosendEnabledMessage":{"post_only":false,"fields":{"enabled":["bool","",[]],"decision":["enum","",["None","Save","Income","Power"]]}},"net.out.RefreshBuildCursorMessage":{"post_only":false,"fields":{"shortUnitType":["integer","",[]],"point":["object","",[]],"tick":["integer","",[]],"messageNumber":["integer","",[]]}},"net.out.RejectInviteToPartyMessage":{"post_only":false,"fields":{"displayName":["string","",[]]}},"net.out.RequestAcceptPartyInviteMessage":{"post_only":false,"fields":{"targetPlayFabId":["string","",[]]}},"net.out.RequestAutomaticItemUnlockMessage":{"post_only":false,"fields":{"sourceItemType":["string","",[]]}},"net.out.RequestAvatarMessage":{"post_only":false,"fields":{"avatarImage":["string","",[]],"friendsToUpdate":["list","",[]]}},"net.out.RequestBackendDataMessage":{"post_only":false,"fields":{"callbackNumber":["integer","",[]],"keys":["list","",[]],"requestType":["enum","",["FullPlayerProfile","MiniPlayerProfile"]]}},"net.out.RequestChatRoomSubscribersMessage":{"post_only":false,"fields":{"channelName":["string","",[]],"playFabIds":["list","",[]],"includeGrayNames":["bool","",[]]}},"net.out.RequestClassicInHouseGameServerMessage":{"post_only":false,"fields":{"partyMemberPlayFabIds":["list","",[]],"queueType":["enum","",["Normal","Casual","Practice","Custom","Sandbox","CasualNoob","Classic","ClassicNoob","ClassicSortaNoob","Arcade","BeginnerBots","VeryEasyBots","EasyBots","MediumBots","HardBots","InsaneBots","ExpertBots","MasterBots","SeniorMasterBots","GrandmasterBots","QuickMatch","Challenge","None","Pve"]]}},"net.out.RequestCustomGameRoomMessage":{"post_only":false,"fields":{"queueType":["enum","",["Normal","Casual","Practice","Custom","Sandbox","CasualNoob","Classic","ClassicNoob","ClassicSortaNoob","Arcade","BeginnerBots","VeryEasyBots","EasyBots","MediumBots","HardBots","InsaneBots","ExpertBots","MasterBots","SeniorMasterBots","GrandmasterBots","QuickMatch","Challenge","None","Pve"]]}},"net.out.RequestCustomGameServerMessage":{"post_only":false,"fields":{"tick":["integer","",[]]}},"net.out.RequestDiscordChatHistory":{"post_only":false,"fields":{"tick":["integer","",[]]}},"net.out.RequestDisplayNameMessage":{"post_only":false,"fields":{"displayName":["string","",[]],"isConfirmed":["bool","",[]]}},"net.out.RequestGameServerWelcomeMessage":{"post_only":false,"fields":{"tick":["integer","",[]]}},"net.out.RequestGuildUpdateMessage":{"post_only":false,"fields":{"updateType":["enum","",["SetAbbreviation","SetName","SetTagline","SetNotice","LeaveGuild","DisbandGuild","KickMember","InviteMember","RevokeInvitation","RejectInvitation","AcceptApplication","RejectApplication","SubmitApplication","ChangeRole","SetTitle","DonateCard","SetAvatar","SetEmblem","SetDiscord"]],"value":["string","",[]],"arg1":["string","",[]],"senderDisplayName":["string","",[]],"targetDisplayName":["string","",[]],"debugSenderPlayFabId":["string","",[]],"silent":["bool","",[]],"cards":["list","",[]]}},"net.out.RequestLinkedAccountsMessage":{"post_only":false,"fields":{"playFabId":["string","",[]],"addAsFriend":["bool","",[]],"sendInboxMessage":["bool","",[]]}},"net.out.RequestLiveGamesMessage":{"post_only":false,"fields":{}},"net.out.RequestLoadingProgressesMessage":{"post_only":false,"fields":{"tick":["integer","",[]]}},"net.out.RequestLobbyCallbackMessage":{"post_only":false,"fields":{"callbackId":["string","",[]],"functionType":["enum","",["RequestPlayerProfile"]],"dataJSON":["string","",[]]}},"net.out.RequestMapFileMessage":{"post_only":false,"fields":{"mapName":["string","",[]]}},"net.out.RequestMatchmadeGameServerMessage":{"post_only":false,"fields":{"queueType":["enum","",["Normal","Casual","Practice","Custom","Sandbox","CasualNoob","Classic","ClassicNoob","ClassicSortaNoob","Arcade","BeginnerBots","VeryEasyBots","EasyBots","MediumBots","HardBots","InsaneBots","ExpertBots","MasterBots","SeniorMasterBots","GrandmasterBots","QuickMatch","Challenge","None","Pve"]]}},"net.out.RequestMatchmakingRadarUpdateMessage":{"post_only":false,"fields":{"radar":["object","",[]]}},"net.out.RequestMatchmakingTweakMessage":{"post_only":false,"fields":{"hurryUp":["bool","",[]]}},"net.out.RequestMatchmakingV2Message":{"post_only":false,"fields":{"queueType":["enum","",["Normal","Casual","Practice","Custom","Sandbox","CasualNoob","Classic","ClassicNoob","ClassicSortaNoob","Arcade","BeginnerBots","VeryEasyBots","EasyBots","MediumBots","HardBots","InsaneBots","ExpertBots","MasterBots","SeniorMasterBots","GrandmasterBots","QuickMatch","Challenge","None","Pve"]],"partyMembers":["list","",[]]}},"net.out.RequestOpeningsLeaderboardMessage":{"post_only":false,"fields":{"tick":["integer","",[]]}},"net.out.RequestOpeningsMatchHistoryMessage":{"post_only":false,"fields":{"unitType":["string","",[]]}},"net.out.RequestPlayVsAIGameServerMessage":{"post_only":false,"fields":{"partyMemberPlayFabIds":["list","",[]],"queueType":["enum","",["Normal","Casual","Practice","Custom","Sandbox","CasualNoob","Classic","ClassicNoob","ClassicSortaNoob","Arcade","BeginnerBots","VeryEasyBots","EasyBots","MediumBots","HardBots","InsaneBots","ExpertBots","MasterBots","SeniorMasterBots","GrandmasterBots","QuickMatch","Challenge","None","Pve"]]}},"net.out.RequestRefreshGameCoachTipMessage":{"post_only":false,"fields":{"tick":["integer","",[]]}},"net.out.RequestReportPlayerMessage":{"post_only":false,"fields":{"targetPlayFabId":["string","",[]],"comment":["string","",[]],"category":["enum","",["Griefing","VerbalAbuse","OffensiveName","Leaving","Other"]],"toxicityInfo":["object","",[]]}},"net.out.RequestSteamIdMessage":{"post_only":false,"fields":{"playFabId":["string","",[]],"displayName":["string","",[]],"pchDialog":["string","",[]]}},"net.out.RequestSyncUnitMessage":{"post_only":false,"fields":{"unit":["integer","",[]]}},"net.out.RequestTaglineMessage":{"post_only":false,"fields":{"tagline":["string","",[]],"friendsToUpdate":["list","",[]]}},"net.out.RequestTwitchMessage":{"post_only":false,"fields":{"tick":["integer","",[]]}},"net.out.RerollQuestMessage":{"post_only":false,"fields":{}},"net.out.ResearchMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"researchType":["string","",[]],"level":["integer","",[]]}},"net.out.SelectMessage":{"post_only":false,"fields":{"unit":["integer","",[]],"tick":["integer","",[]]}},"net.out.SelfMatchFoundActionMessage":{"post_only":false,"fields":{"action":["enum","",["None","Accepted","Declined"]]}},"net.out.SendBotCommandMessage":{"post_only":false,"fields":{"commandType":["enum","",["HireMercenary","TrainWorker","DeployFighter"]],"args":["list","",[]]}},"net.out.SendChatRoomChatMessage":{"post_only":false,"fields":{"message":["string","",[]]}},"net.out.SendDiscordChatMessage":{"post_only":false,"fields":{"message":["string","",[]],"senderName":["string","",[]],"avatar":["string","",[]],"discordMessageType":["enum","",["Rooms","LobbyRestarts","ServerBugs","Tournament","LiskDebug","GuildMonitoring","ShopMonitoring","VipRoom","TheLounge","ClientBugs","GlobalChatTest","MatchmakingDebug","GeneralChat","PressMonitoring","FraudMonitoring","BotCommands","Engineering","NameReports"]]}},"net.out.SendEmoteMessage":{"post_only":false,"fields":{"emoteIndex":["integer","",[]],"animationType":["string","",[]],"point":["object","",[]]}},"net.out.SendEnableDoubleDownMessage":{"post_only":false,"fields":{"enableDoubleDown":["bool","",[]]}},"net.out.SendGameChatMessage":{"post_only":false,"fields":{"allChat":["bool","",[]],"messageType":["enum","",["Standard","Affirmative","Unsure","Alert","StandardLong","Party","Whisper","System","Discord","Guild","GuildNotice","ExpectingSend","ThinkingAboutSending"]],"message":["string","",[]]}},"net.out.SendInviteToCustomGameRoomMessage":{"post_only":false,"fields":{"displayName":["string","",[]],"playFabId":["string","",[]]}},"net.out.SendInviteToPartyMessage":{"post_only":false,"fields":{"playFabId":["string","",[]],"displayName":["string","",[]]}},"net.out.SendLaneSkinMessage":{"post_only":false,"fields":{"modId":["string","",[]]}},"net.out.SendMapPingMessage":{"post_only":false,"fields":{"pingType":["enum","",["None","Regular","OnMyWay","Target","Warning","Question","Help","RegularGround","Checkmark","ReachedKing","LeakedThem"]],"point":["object","",[]]}},"net.out.SendModeVotingVoteMessage":{"post_only":false,"fields":{"ready":["bool","",[]],"vote1":["integer","",[]],"vote2":["integer","",[]]}},"net.out.SendRefreshLoadingProgressMessage":{"post_only":false,"fields":{"progress":["float","",[]]}},"net.out.SetAfkStatusMessage":{"post_only":false,"fields":{"afk":["bool","",[]],"longAfk":["bool","",[]]}},"net.out.SetCustomGamePlayerSettingMessage":{"post_only":false,"fields":{"key":["string","",[]],"player":["integer","",[]],"value":["string","",[]]}},"net.out.SetCustomGameSettingMessage":{"post_only":false,"fields":{"key":["string","",[]],"value":["string","",[]]}},"net.out.SetCustomGameSharedSettingMessage":{"post_only":false,"fields":{"key":["string","",[]],"value":["bool","",[]]}},"net.out.SkipTutorialMessage":{"post_only":false,"fields":{"tick":["integer","",[]]}},"net.out.StartCustomClassicGameMessage":{"post_only":false,"fields":{"queueType":["enum","",["Normal","Casual","Practice","Custom","Sandbox","CasualNoob","Classic","ClassicNoob","ClassicSortaNoob","Arcade","BeginnerBots","VeryEasyBots","EasyBots","MediumBots","HardBots","InsaneBots","ExpertBots","MasterBots","SeniorMasterBots","GrandmasterBots","QuickMatch","Challenge","None","Pve"]],"tick":["integer","",[]]}},"net.out.StayAsTeamMessage":{"post_only":false,"fields":{"gameId":["string","",[]],"isWestTeam":["bool","",[]]}},"net.out.SubmitSpecialCouponMessage":{"post_only":false,"fields":{"couponCode":["string","",[]]}},"net.out.TellPartyMyCampaignDlcOwnershipMessage":{"post_only":false,"fields":{"campaignDlcsOwned":["list","",[]]}},"net.out.TrainMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"builder":["integer","",[]],"unitType":["string","",[]]}},"net.out.TryCancelAutopauseMessage":{"post_only":false,"fields":{"tick":["integer","",[]]}},"net.out.TryCloseSlotMessage":{"post_only":false,"fields":{"slot":["integer","",[]]}},"net.out.TryJoinChatRoomMessage":{"post_only":false,"fields":{"chatRoomType":["enum","",["Standard","Guild","PostGame","CustomGameRoom","InGame","Party"]],"chatRoomName":["string","",[]]}},"net.out.TryJoinCustomGameRoomMessage":{"post_only":false,"fields":{"ownerPlayFabId":["string","",[]]}},"net.out.TryLeaveCustomGameRoomMessage":{"post_only":false,"fields":{"tick":["integer","",[]]}},"net.out.TryMoveSlotMessage":{"post_only":false,"fields":{"toSlot":["integer","",[]]}},"net.out.TryOpenSlotMessage":{"post_only":false,"fields":{"slot":["integer","",[]]}},"net.out.TryPauseGameMessage":{"post_only":false,"fields":{"attemptNumber":["integer","",[]]}},"net.out.TryQueueUpAsPartyMessage":{"post_only":false,"fields":{"ticketId":["string","",[]],"party":["object","",[]],"queueType":["enum","",["Normal","Casual","Practice","Custom","Sandbox","CasualNoob","Classic","ClassicNoob","ClassicSortaNoob","Arcade","BeginnerBots","VeryEasyBots","EasyBots","MediumBots","HardBots","InsaneBots","ExpertBots","MasterBots","SeniorMasterBots","GrandmasterBots","QuickMatch","Challenge","None","Pve"]]}},"net.out.TryRefreshCustomGameRoomsMessage":{"post_only":false,"fields":{"tick":["integer","",[]]}},"net.out.TryRerollCardTraderMessage":{"post_only":false,"fields":{"myRerollsRemaining":["integer","",[]]}},"net.out.TrySetBotSlotMessage":{"post_only":false,"fields":{"slot":["integer","",[]]}},"net.out.UnequipItemViaPassMessage":{"post_only":false,"fields":{"itemId":["string","",[]],"itemClass":["string","",[]]}},"net.out.UpdateLastActivityMessage":{"post_only":false,"fields":{"reason":["string","",[]],"time":["float","",[]]}},"net.out.UpdateLoginQueuePositionMessage":{"post_only":false,"fields":{"position":["integer","",[]]}},"net.out.UpdateOwnedDLCMessage":{"post_only":false,"fields":{"dlcString":["string","",[]],"isFreeAccount":["bool","",[]]}},"net.out.UpgradeBatchMessage":{"post_only":false,"fields":{"tick":["integer","",[]],"unitType":["string","",[]],"units":["list","",[]]}},"net.out.ViewCameraBookmarkMessage":{"post_only":false,"fields":{"player":["integer","",[]]}},"net.out.VoluntarilyQuitMessage":{"post_only":false,"fields":{"tick":["integer","",[]]}},"net.out.WantsToDualBuildMessage":{"post_only":false,"fields":{"player":["integer","",[]],"crossPartner":["integer","",[]]}},"phase.changed":{"post_only":true,"fields":{"phase":["string","",[]],"wave":["integer","wave",[]]}},"ping.received":{"post_only":false,"fields":{"sender":["integer","player",[]],"kind":["string","",[]],"x":["float","",[]],"z":["float","",[]]}},"ping.sending":{"post_only":false,"fields":{"player":["integer","player",[]],"kind":["string","",[]],"x":["float","",[]],"z":["float","",[]]}},"player.afk":{"post_only":true,"fields":{"player":["integer","player",[]]}},"player.disconnected":{"post_only":true,"fields":{"player":["integer","player",[]]}},"player.leaked":{"post_only":false,"fields":{"player":["integer","player",[]],"wave":["integer","wave",[]],"percent":["float","",[]]}},"player.reconnected":{"post_only":true,"fields":{"player":["integer","player",[]]}},"purchase.cancelled":{"post_only":false,"fields":{"player":["integer","player",[]],"kind":["string","",[]],"type":["string","unit_type",[]],"research":["string","",[]],"builder":["integer","unit",[]]}},"purchase.failed":{"post_only":true,"fields":{"player":["integer","player",[]],"kind":["string","",[]],"type":["string","unit_type",[]],"research":["string","",[]],"reason":["string","",[]]}},"roll.rerolled":{"post_only":true,"fields":{"player":["integer","player",[]],"old":["list","",[]],"new":["list","",[]]}},"roll.rerolling":{"post_only":false,"fields":{"player":["integer","player",[]],"research":["string","",[]],"level":["integer","",[]]}},"send_mode.changed":{"post_only":false,"fields":{"player":["integer","player",[]],"mode":["string","",[]],"preview":["list","",[]]}},"send_mode.changing":{"post_only":false,"fields":{"player":["integer","player",[]],"mode":["string","",[]]}},"signal.received":{"post_only":false,"fields":{"player":["integer","player",[]],"key":["string","",[]],"type":["string","unit_type",[]],"research":["string","",[]],"amount":["integer","",[]],"args":["list","",[]]}},"signal.sending":{"post_only":false,"fields":{"player":["integer","player",[]],"key":["string","",[]],"type":["string","unit_type",[]],"research":["string","",[]],"amount":["integer","",[]],"args":["list","",[]]}},"spell.choosing":{"post_only":false,"fields":{"player":["integer","player",[]],"spell":["string","spell",[]],"sub_spell":["bool","",[]]}},"spell.chosen":{"post_only":true,"fields":{"player":["integer","player",[]],"spell":["string","spell",[]]}},"spell.placed":{"post_only":true,"fields":{"player":["integer","player",[]],"spell":["string","spell",[]],"unit":["integer","unit",[]]}},"spell.placing":{"post_only":false,"fields":{"player":["integer","player",[]],"spell":["string","spell",[]],"unit":["integer","unit",[]]}},"spell.removed":{"post_only":true,"fields":{"player":["integer","player",[]],"spell":["string","spell",[]],"unit":["integer","unit",[]]}},"spell.undoing":{"post_only":false,"fields":{"player":["integer","player",[]],"spell":["string","spell",[]],"unit":["integer","unit",[]]}},"team.leaked":{"post_only":true,"fields":{"team":["integer","team",[]],"wave":["integer","wave",[]],"percent":["float","",[]],"players":["list","player",[]]}},"tooltip.hidden":{"post_only":true,"fields":{"action":["integer","",[]]}},"tooltip.shown":{"post_only":true,"fields":{"action":["integer","",[]],"header":["string","",[]],"subheader":["string","",[]],"text":["string","",[]],"long_text":["string","",[]]}},"unit.built":{"post_only":true,"fields":{"player":["integer","player",[]],"unit":["integer","unit",[]],"type":["string","unit_type",[]],"x":["float","",[]],"z":["float","",[]]}},"unit.died":{"post_only":true,"fields":{"unit":["integer","unit",[]],"killer":["integer","unit",[]],"bounty":["integer","",[]],"bounty_receiver":["integer","player",[]],"placed":["integer","unit",[]]}},"unit.downgraded":{"post_only":true,"fields":{"player":["integer","player",[]],"unit":["integer","unit",[]],"old_type":["string","unit_type",[]],"new_type":["string","unit_type",[]]}},"unit.downgrading":{"post_only":false,"fields":{"player":["integer","player",[]],"units":["list","unit",[]]}},"unit.selling":{"post_only":false,"fields":{"player":["integer","player",[]],"units":["list","unit",[]]}},"unit.sold":{"post_only":true,"fields":{"player":["integer","player",[]],"unit":["integer","unit",[]],"type":["string","unit_type",[]]}},"unit.spawned":{"post_only":true,"fields":{"unit":["integer","unit",[]],"type":["string","unit_type",[]],"owner":["integer","player",[]],"x":["float","",[]],"z":["float","",[]]}},"unit.trained":{"post_only":false,"fields":{"player":["integer","player",[]],"unit":["integer","unit",[]],"type":["string","unit_type",[]],"canceled":["bool","",[]]}},"unit.upgraded":{"post_only":true,"fields":{"player":["integer","player",[]],"unit":["integer","unit",[]],"old_type":["string","unit_type",[]],"new_type":["string","unit_type",[]]}},"upgrade.buying":{"post_only":false,"fields":{"player":["integer","player",[]],"research":["string","",[]],"level":["integer","",[]]}},"wave.ended":{"post_only":true,"fields":{"wave":["integer","wave",[]]}},"wave.started":{"post_only":false,"fields":{"wave":["integer","wave",[]]}},"worker.buying":{"post_only":false,"fields":{"player":["integer","player",[]],"type":["string","unit_type",[]],"builder":["integer","unit",[]],"queued":["bool","",[]]}}},"server":{"game.ended":{"post_only":true,"fields":{"won_side":["string","",[]],"reason":["string","",[]]}},"game.started":{"post_only":true,"fields":{}},"game.tick":{"post_only":true,"fields":{"tick":["integer","",[]]}},"gate.damaged":{"post_only":true,"fields":{"side":["string","",[]],"life":["float","",[]]}},"gate.opened":{"post_only":true,"fields":{"side":["string","",[]],"reason":["string","",[]]}},"lane.cleared":{"post_only":true,"fields":{"lane":["integer","",[]],"wave":["integer","",[]]}},"lane.leaked":{"post_only":true,"fields":{"lane":["integer","",[]],"wave":["integer","",[]],"percent":["float","",[]]}},"mode.message":{"post_only":true,"fields":{"message":["string","",[]],"data":["string","json",[]],"sender":["integer","player",[]]}},"player.income":{"post_only":false,"fields":{"player":["integer","player",[]],"amount":["integer","",[]]}},"unit.attacking":{"post_only":false,"fields":{"unit":["integer","unit",[]],"target":["integer","unit",[]]}},"unit.damaged":{"post_only":false,"fields":{"unit":["integer","unit",[]],"source":["integer","unit",[]],"damage":["float","",[]]}},"unit.died":{"post_only":true,"fields":{"unit":["integer","unit",[]],"killer":["integer","unit",[]]}},"unit.order_done":{"post_only":true,"fields":{"unit":["integer","unit",[]],"order":["string","",[]]}},"unit.spawned":{"post_only":true,"fields":{"unit":["integer","unit",[]],"type":["string","",[]],"owner":["integer","",[]],"lane":["integer","",[]]}},"wave.ended":{"post_only":true,"fields":{"wave":["integer","",[]]}},"wave.leaked":{"post_only":true,"fields":{"lane":["integer","",[]],"wave":["integer","",[]],"unit":["integer","unit",[]],"percent":["float","",[]]}},"wave.started":{"post_only":true,"fields":{"wave":["integer","",[]]}}}}
|
proleak/_catalog.py
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"""The events ProLeak was built with, their fields and what each field holds, read from
|
|
2
|
+
_catalog.json (tools/gen_python_catalog.py writes it). Checks event filters at registration and
|
|
3
|
+
plugin source in proleak.check."""
|
|
4
|
+
from __future__ import annotations
|
|
5
|
+
|
|
6
|
+
import json
|
|
7
|
+
import math
|
|
8
|
+
import os
|
|
9
|
+
|
|
10
|
+
_data = None
|
|
11
|
+
|
|
12
|
+
# What a filter value may be for each field type: the Python types that can compare equal to the
|
|
13
|
+
# field's value once ProLeak hands it to the handler.
|
|
14
|
+
_NUMBERS = (int, float)
|
|
15
|
+
# How a refusal names what a field holds.
|
|
16
|
+
_KINDS = {"integer": "a whole number", "float": "a number", "string": "text", "enum": "text", "bool": "True or False",
|
|
17
|
+
"player": "a player or a slot", "unit": "a unit or an id", "team": "a team"}
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def _load():
|
|
21
|
+
global _data
|
|
22
|
+
if _data is None:
|
|
23
|
+
with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), "_catalog.json"), encoding="utf-8") as f:
|
|
24
|
+
_data = json.load(f)
|
|
25
|
+
return _data
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def event(name, server=False):
|
|
29
|
+
"""{"post_only": bool, "fields": {name: [type, refers, enum]}} for an event, or None."""
|
|
30
|
+
return _load()["server" if server else "client"].get(name)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def names(server=False):
|
|
34
|
+
"""Every event's name, client or server."""
|
|
35
|
+
return sorted(_load()["server" if server else "client"])
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
# The field `mine=True` reads: who sent it, else whose it is.
|
|
39
|
+
_MINE = ("sender", "player", "owner")
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def mine_field(spec):
|
|
43
|
+
"""The field an event's `mine` filter reads, or None when it names no player."""
|
|
44
|
+
return next((f for f in _MINE if f in spec["fields"] and spec["fields"][f][1] == "player"), None)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def _fits(kind, refers, enum, value):
|
|
48
|
+
"""Whether a filter value can ever equal the field's value as a handler gets it."""
|
|
49
|
+
if refers in ("player", "unit", "team"):
|
|
50
|
+
return value is None or isinstance(value, int) or hasattr(value, "__index__")
|
|
51
|
+
if refers in ("json", "model"):
|
|
52
|
+
return True
|
|
53
|
+
if kind == "bool":
|
|
54
|
+
return isinstance(value, bool)
|
|
55
|
+
if kind == "integer":
|
|
56
|
+
return isinstance(value, int) and not isinstance(value, bool)
|
|
57
|
+
if kind == "float":
|
|
58
|
+
return isinstance(value, _NUMBERS) and not isinstance(value, bool) and math.isfinite(value)
|
|
59
|
+
if kind in ("string", "enum"):
|
|
60
|
+
return isinstance(value, str) and (not enum or value in enum)
|
|
61
|
+
return False
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
def refused(name, filters, server=False):
|
|
65
|
+
"""Why filtering event `name` on `filters` ({field: value}) can never work, or None when it
|
|
66
|
+
can: an unknown event, a field it does not have, or a value no dispatch can hold."""
|
|
67
|
+
spec = event(name, server)
|
|
68
|
+
if spec is None:
|
|
69
|
+
return f"there is no {'server ' if server else ''}event {name!r}"
|
|
70
|
+
for field, value in filters.items():
|
|
71
|
+
if field == "mine":
|
|
72
|
+
if server:
|
|
73
|
+
return "mine: a server event has no me; filter on a slot (player=1)"
|
|
74
|
+
if mine_field(spec) is None:
|
|
75
|
+
return f"mine: {name} names no player (mine reads sender, player or owner)"
|
|
76
|
+
if not isinstance(value, bool):
|
|
77
|
+
return f"mine is True or False, never {value!r}"
|
|
78
|
+
continue
|
|
79
|
+
if field not in spec["fields"]:
|
|
80
|
+
known = ", ".join(spec["fields"]) or "none"
|
|
81
|
+
return f"{name} has no field {field!r} (its fields: {known})"
|
|
82
|
+
kind, refers, enum = spec["fields"][field]
|
|
83
|
+
if not _fits(kind, refers, enum, value):
|
|
84
|
+
wanted = f"one of {', '.join(map(repr, enum))}" if enum else _KINDS.get(refers or kind, kind)
|
|
85
|
+
return f"{name}.{field} is {wanted}, never {value!r}"
|
|
86
|
+
return None
|