astandy 0.2.4__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.
- Astandy/__init__.py +42 -0
- Astandy/cipher.py +58 -0
- Astandy/client.py +355 -0
- Astandy/dispatcher.py +19 -0
- Astandy/enums/__init__.py +0 -0
- Astandy/enums/events.py +9 -0
- Astandy/errors.py +1 -0
- Astandy/events/__init__.py +10 -0
- Astandy/events/onConnect.py +16 -0
- Astandy/generated/__init__.py +41 -0
- Astandy/generated/listeners.py +1534 -0
- Astandy/generated/schemes_pb2.py +1354 -0
- Astandy/generated/schemes_pb2.pyi +5194 -0
- Astandy/generated/services.py +3322 -0
- Astandy/listener.py +12 -0
- Astandy/listeners/__init__.py +1 -0
- Astandy/listeners/onConnect.py +6 -0
- Astandy/logging.py +20 -0
- Astandy/parser.py +20 -0
- Astandy/schemes/messages_pb2.py +52 -0
- Astandy/schemes/messages_pb2.pyi +87 -0
- Astandy/services/__init__.py +18 -0
- Astandy/services/bolt.py +24 -0
- Astandy/services/handshake.py +23 -0
- Astandy/services/hello.py +50 -0
- Astandy/services/player.py +21 -0
- Astandy/types/__init__.py +4 -0
- Astandy/types/extras.py +14 -0
- Astandy/types/gmessage.py +4 -0
- Astandy/types/service.py +3 -0
- Astandy/types/update.py +10 -0
- Astandy/updates/__init__.py +1 -0
- Astandy/updates/connect.py +5 -0
- Astandy/utils.py +26 -0
- astandy-0.2.4.dist-info/METADATA +16 -0
- astandy-0.2.4.dist-info/RECORD +38 -0
- astandy-0.2.4.dist-info/WHEEL +5 -0
- astandy-0.2.4.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,1534 @@
|
|
|
1
|
+
#This file was automatically generated!
|
|
2
|
+
|
|
3
|
+
from collections.abc import Callable
|
|
4
|
+
from functools import lru_cache
|
|
5
|
+
|
|
6
|
+
from google.protobuf.message import Message
|
|
7
|
+
|
|
8
|
+
import Astandy
|
|
9
|
+
from Astandy.listener import Listener
|
|
10
|
+
from Astandy.types.update import Update
|
|
11
|
+
from Astandy.enums.events import Event
|
|
12
|
+
from .schemes_pb2 import *
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class GeneratedUpdate(Update):
|
|
16
|
+
def __init__(self):
|
|
17
|
+
super().__init__()
|
|
18
|
+
self.data: Message = None
|
|
19
|
+
|
|
20
|
+
def __str__(self):
|
|
21
|
+
return f'{self.__class__.__name__}(event={self.event.name},data={self.data})'
|
|
22
|
+
|
|
23
|
+
class GeneratedEvent(Event):
|
|
24
|
+
MARKETPLACE_REMOTE_EVENT_LISTENER_ON_PLAYER_REQUEST_OPENED = 5
|
|
25
|
+
MARKETPLACE_REMOTE_EVENT_LISTENER_ON_TRADE_UPDATED = 1
|
|
26
|
+
MARKETPLACE_REMOTE_EVENT_LISTENER_ON_TRADE_REQUEST_OPENED = 3
|
|
27
|
+
MARKETPLACE_REMOTE_EVENT_LISTENER_ON_PLAYER_REQUEST_CLOSED = 4
|
|
28
|
+
MARKETPLACE_REMOTE_EVENT_LISTENER_ON_TRADE_REQUEST_CLOSED = 2
|
|
29
|
+
SYSTEM_MESSAGES_REMOTE_EVENT_LISTENER_ON_SYSTEM_MESSAGE_RECEIVED = 126
|
|
30
|
+
MATCHMAKING_REMOTE_EVENT_LISTENER_ON_REVOKE_INVITE_TO_LOBBY_EVENT = 72
|
|
31
|
+
MATCHMAKING_REMOTE_EVENT_LISTENER_ON_NEW_SPECTATOR_INVITED_TO_LOBBY_EVENT = 77
|
|
32
|
+
MATCHMAKING_REMOTE_EVENT_LISTENER_ON_LOBBY_PHOTON_GAME_CHANGED_EVENT = 68
|
|
33
|
+
MATCHMAKING_REMOTE_EVENT_LISTENER_ON_LOBBY_MAX_MEMBERS_CHANGED_EVENT = 67
|
|
34
|
+
MATCHMAKING_REMOTE_EVENT_LISTENER_ON_LOBBY_DATA_CHANGED_EVENT = 61
|
|
35
|
+
MATCHMAKING_REMOTE_EVENT_LISTENER_ON_LOBBY_TYPE_CHANGED_EVENT = 70
|
|
36
|
+
MATCHMAKING_REMOTE_EVENT_LISTENER_ON_RECEIVED_INVITE_TO_LOBBY_EVENT = 65
|
|
37
|
+
MATCHMAKING_REMOTE_EVENT_LISTENER_ON_LOBBY_JOINABLE_CHANGED_EVENT = 62
|
|
38
|
+
MATCHMAKING_REMOTE_EVENT_LISTENER_ON_NEW_PLAYER_JOINED_LOBBY_EVENT = 66
|
|
39
|
+
MATCHMAKING_REMOTE_EVENT_LISTENER_ON_REFUSE_INVITE_TO_LOBBY_EVENT = 75
|
|
40
|
+
MATCHMAKING_REMOTE_EVENT_LISTENER_ON_LOBBY_CHAT_MESSAGE_EVENT = 64
|
|
41
|
+
MATCHMAKING_REMOTE_EVENT_LISTENER_ON_PLAYER_KICKED_FROM_LOBBY_EVENT = 74
|
|
42
|
+
MATCHMAKING_REMOTE_EVENT_LISTENER_ON_LOBBY_PLAYER_TYPE_CHANGED_EVENT = 78
|
|
43
|
+
MATCHMAKING_REMOTE_EVENT_LISTENER_ON_RECEIVED_SPECTATOR_INVITE_TO_LOBBY_EVENT = 79
|
|
44
|
+
MATCHMAKING_REMOTE_EVENT_LISTENER_ON_LOBBY_OWNER_CHANGED_EVENT = 73
|
|
45
|
+
MATCHMAKING_REMOTE_EVENT_LISTENER_ON_NEW_PLAYER_INVITED_TO_LOBBY_EVENT = 63
|
|
46
|
+
MATCHMAKING_REMOTE_EVENT_LISTENER_ON_LOBBY_GAME_SERVER_CHANGED_EVENT = 80
|
|
47
|
+
MATCHMAKING_REMOTE_EVENT_LISTENER_ON_LOBBY_NAME_CHANGED_EVENT = 81
|
|
48
|
+
MATCHMAKING_REMOTE_EVENT_LISTENER_ON_PLAYER_LEFT_LOBBY_EVENT = 69
|
|
49
|
+
MATCHMAKING_REMOTE_EVENT_LISTENER_ON_NEW_SPECTATOR_JOINED_LOBBY_EVENT = 76
|
|
50
|
+
MATCHMAKING_REMOTE_EVENT_LISTENER_ON_LOBBY_MAX_SPECTATORS_CHANGED_EVENT = 71
|
|
51
|
+
IN_APPS_REMOTE_EVENT_LISTENER_ON_IN_APP_EVENT = 119
|
|
52
|
+
CLANS_REMOTE_EVENT_LISTENER_ON_CLAN_MEMBERS_COUNT_INCREASED = 53
|
|
53
|
+
CLANS_REMOTE_EVENT_LISTENER_ON_READ_CLOSED_INVITE_REQUEST_EVENT = 38
|
|
54
|
+
CLANS_REMOTE_EVENT_LISTENER_ON_JOIN_REQUEST_DECLINED_EVENT = 45
|
|
55
|
+
CLANS_REMOTE_EVENT_LISTENER_ON_KICKED_MEMBER = 42
|
|
56
|
+
CLANS_REMOTE_EVENT_LISTENER_ON_JOIN_REQUEST_CANCELLED_EVENT = 37
|
|
57
|
+
CLANS_REMOTE_EVENT_LISTENER_ON_CLAN_TYPE_CHANGED = 48
|
|
58
|
+
CLANS_REMOTE_EVENT_LISTENER_ON_ASSIGNED_LEADER_ROLE_EVENT = 47
|
|
59
|
+
CLANS_REMOTE_EVENT_LISTENER_ON_CLAN_TAG_AND_NAME_CHANGED = 52
|
|
60
|
+
CLANS_REMOTE_EVENT_LISTENER_ON_LEFT_FROM_CLAN = 46
|
|
61
|
+
CLANS_REMOTE_EVENT_LISTENER_ON_CLAN_MEMBER_DECLINED_REQUEST_EVENT = 41
|
|
62
|
+
CLANS_REMOTE_EVENT_LISTENER_ON_MEMBER_JOINED_TO_CLAN = 35
|
|
63
|
+
CLANS_REMOTE_EVENT_LISTENER_ON_JOIN_REQUEST_TAKEN = 33
|
|
64
|
+
CLANS_REMOTE_EVENT_LISTENER_ON_INVITE_REQUEST_DECLINED_EVENT = 40
|
|
65
|
+
CLANS_REMOTE_EVENT_LISTENER_ON_INVITE_REQUEST_CANCELLED_EVENT = 51
|
|
66
|
+
CLANS_REMOTE_EVENT_LISTENER_ON_ASSIGNED_ROLE_EVENT = 43
|
|
67
|
+
CLANS_REMOTE_EVENT_LISTENER_ON_PLAYER_AVATAR_CHANGED_EVENT = 32
|
|
68
|
+
CLANS_REMOTE_EVENT_LISTENER_ON_ONLINE_STATUS_CHANGED_EVENT = 31
|
|
69
|
+
CLANS_REMOTE_EVENT_LISTENER_ON_PLAYER_NAME_CHANGED_EVENT = 34
|
|
70
|
+
CLANS_REMOTE_EVENT_LISTENER_ON_KICKED_EVENT = 50
|
|
71
|
+
CLANS_REMOTE_EVENT_LISTENER_ON_CLAN_DESCRIPTION_CHANGED_EVENT = 54
|
|
72
|
+
CLANS_REMOTE_EVENT_LISTENER_ON_PLAYER_ATTRIBUTES_CHANGED = 36
|
|
73
|
+
CLANS_REMOTE_EVENT_LISTENER_ON_CLAN_AVATAR_CHANGED_EVENT = 49
|
|
74
|
+
CLANS_REMOTE_EVENT_LISTENER_ON_INVITED_TO_CLAN_EVENT = 44
|
|
75
|
+
CLANS_REMOTE_EVENT_LISTENER_ON_JOINED_TO_CLAN = 39
|
|
76
|
+
INVENTORY_REMOTE_EVENT_LISTENER_ON_INVENTORY_CHANGED = 111
|
|
77
|
+
INVENTORY_REMOTE_EVENT_LISTENER_ON_COUPON_ACTIVATED = 112
|
|
78
|
+
MATCHES_REMOTE_EVENT_LISTENER_ON_MATCH_FINISHED = 95
|
|
79
|
+
FRIENDS_REMOTE_EVENT_LISTENER_ON_FRIEND_NAME_CHANGED_EVENT = 14
|
|
80
|
+
FRIENDS_REMOTE_EVENT_LISTENER_ON_PLAYER_STATUS_CHANGED_EVENT = 11
|
|
81
|
+
FRIENDS_REMOTE_EVENT_LISTENER_ON_PLAYER_ATTRIBUTES_CHANGED = 16
|
|
82
|
+
FRIENDS_REMOTE_EVENT_LISTENER_ON_FRIEND_REMOVED_EVENT = 17
|
|
83
|
+
FRIENDS_REMOTE_EVENT_LISTENER_ON_REVOKE_FRIENDSHIP_REQUEST_EVENT = 18
|
|
84
|
+
FRIENDS_REMOTE_EVENT_LISTENER_ON_FRIEND_ADDED_EVENT = 15
|
|
85
|
+
FRIENDS_REMOTE_EVENT_LISTENER_ON_NEW_FRIENDSHIP_REQUEST_EVENT = 13
|
|
86
|
+
FRIENDS_REMOTE_EVENT_LISTENER_ON_FRIEND_AVATAR_CHANGED_EVENT = 12
|
|
87
|
+
MESSAGES_REMOTE_EVENT_LISTENER_ON_MSG_FROM_FRIEND_EVENT = 121
|
|
88
|
+
CLAN_STATS_REMOTE_EVENT_LISTENER_ON_CLAN_STATS_UPDATED = 59
|
|
89
|
+
GAME_EVENT_REMOTE_EVENT_LISTENER_ON_GAME_PASS_CHANGED = 107
|
|
90
|
+
GAME_EVENT_REMOTE_EVENT_LISTENER_ON_PROGRESS_GAME_EVENT = 106
|
|
91
|
+
GAME_EVENT_REMOTE_EVENT_LISTENER_ON_PROGRESS_CHALLENGE_EVENT = 108
|
|
92
|
+
CLAN_MESSAGES_REMOTE_EVENT_LISTENER_ON_INCOMING_CLAN_CHAT_MESSAGE_EVENT = 58
|
|
93
|
+
ADS_REMOTE_EVENT_LISTENER_ON_AD_REWARD_EVENT = 116
|
|
94
|
+
PLAYER_STATS_REMOTE_EVENT_LISTENER_ON_STATS_UPDATED_EVENT = 101
|
|
95
|
+
MATCHMAKING_REMOTE_LISTENER_ON_MATCHMAKING_PROGRESS = 2
|
|
96
|
+
MATCHMAKING_REMOTE_LISTENER_ON_PLAYERS_CONFIRMED = 3
|
|
97
|
+
MATCHMAKING_REMOTE_LISTENER_ON_MATCHMAKING_DONE = 1
|
|
98
|
+
MATCHMAKING_REMOTE_LISTENER_ON_MATCHMAKING_FAIL = 4
|
|
99
|
+
|
|
100
|
+
@staticmethod
|
|
101
|
+
@lru_cache(None)
|
|
102
|
+
def has_value(item):
|
|
103
|
+
return item in [v.value for v in GeneratedEvent.__members__.values()]
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
class MarketplaceRemoteEventListenerOnPlayerRequestOpenedUpdate(GeneratedUpdate):
|
|
107
|
+
event = GeneratedEvent.MARKETPLACE_REMOTE_EVENT_LISTENER_ON_PLAYER_REQUEST_OPENED
|
|
108
|
+
def __init__(self, payload: bytes):
|
|
109
|
+
super().__init__()
|
|
110
|
+
self.data = OnPlayerRequestOpenedEvent()
|
|
111
|
+
self.data.ParseFromString(payload)
|
|
112
|
+
class MarketplaceRemoteEventListenerOnPlayerRequestOpenedListener(Listener):
|
|
113
|
+
event = GeneratedEvent.MARKETPLACE_REMOTE_EVENT_LISTENER_ON_PLAYER_REQUEST_OPENED
|
|
114
|
+
def __init__(self, callback):
|
|
115
|
+
super().__init__(callback)
|
|
116
|
+
async def call(self, client, update: MarketplaceRemoteEventListenerOnPlayerRequestOpenedUpdate):
|
|
117
|
+
await self._callback(client, update)
|
|
118
|
+
class MarketplaceRemoteEventListenerOnPlayerRequestOpened:
|
|
119
|
+
def MarketplaceRemoteEventListenerOnPlayerRequestOpened(self) -> Callable:
|
|
120
|
+
def decorator(func: Callable) -> Callable:
|
|
121
|
+
self._dp.add_listener(MarketplaceRemoteEventListenerOnPlayerRequestOpenedListener(func))
|
|
122
|
+
return func
|
|
123
|
+
return decorator
|
|
124
|
+
|
|
125
|
+
class MarketplaceRemoteEventListenerOnTradeUpdatedUpdate(GeneratedUpdate):
|
|
126
|
+
event = GeneratedEvent.MARKETPLACE_REMOTE_EVENT_LISTENER_ON_TRADE_UPDATED
|
|
127
|
+
def __init__(self, payload: bytes):
|
|
128
|
+
super().__init__()
|
|
129
|
+
self.data = OnTradeUpdatedEvent()
|
|
130
|
+
self.data.ParseFromString(payload)
|
|
131
|
+
class MarketplaceRemoteEventListenerOnTradeUpdatedListener(Listener):
|
|
132
|
+
event = GeneratedEvent.MARKETPLACE_REMOTE_EVENT_LISTENER_ON_TRADE_UPDATED
|
|
133
|
+
def __init__(self, callback):
|
|
134
|
+
super().__init__(callback)
|
|
135
|
+
async def call(self, client, update: MarketplaceRemoteEventListenerOnTradeUpdatedUpdate):
|
|
136
|
+
await self._callback(client, update)
|
|
137
|
+
class MarketplaceRemoteEventListenerOnTradeUpdated:
|
|
138
|
+
def MarketplaceRemoteEventListenerOnTradeUpdated(self) -> Callable:
|
|
139
|
+
def decorator(func: Callable) -> Callable:
|
|
140
|
+
self._dp.add_listener(MarketplaceRemoteEventListenerOnTradeUpdatedListener(func))
|
|
141
|
+
return func
|
|
142
|
+
return decorator
|
|
143
|
+
|
|
144
|
+
class MarketplaceRemoteEventListenerOnTradeRequestOpenedUpdate(GeneratedUpdate):
|
|
145
|
+
event = GeneratedEvent.MARKETPLACE_REMOTE_EVENT_LISTENER_ON_TRADE_REQUEST_OPENED
|
|
146
|
+
def __init__(self, payload: bytes):
|
|
147
|
+
super().__init__()
|
|
148
|
+
self.data = OnTradeRequestOpenedEvent()
|
|
149
|
+
self.data.ParseFromString(payload)
|
|
150
|
+
class MarketplaceRemoteEventListenerOnTradeRequestOpenedListener(Listener):
|
|
151
|
+
event = GeneratedEvent.MARKETPLACE_REMOTE_EVENT_LISTENER_ON_TRADE_REQUEST_OPENED
|
|
152
|
+
def __init__(self, callback):
|
|
153
|
+
super().__init__(callback)
|
|
154
|
+
async def call(self, client, update: MarketplaceRemoteEventListenerOnTradeRequestOpenedUpdate):
|
|
155
|
+
await self._callback(client, update)
|
|
156
|
+
class MarketplaceRemoteEventListenerOnTradeRequestOpened:
|
|
157
|
+
def MarketplaceRemoteEventListenerOnTradeRequestOpened(self) -> Callable:
|
|
158
|
+
def decorator(func: Callable) -> Callable:
|
|
159
|
+
self._dp.add_listener(MarketplaceRemoteEventListenerOnTradeRequestOpenedListener(func))
|
|
160
|
+
return func
|
|
161
|
+
return decorator
|
|
162
|
+
|
|
163
|
+
class MarketplaceRemoteEventListenerOnPlayerRequestClosedUpdate(GeneratedUpdate):
|
|
164
|
+
event = GeneratedEvent.MARKETPLACE_REMOTE_EVENT_LISTENER_ON_PLAYER_REQUEST_CLOSED
|
|
165
|
+
def __init__(self, payload: bytes):
|
|
166
|
+
super().__init__()
|
|
167
|
+
self.data = OnPlayerRequestClosedEvent()
|
|
168
|
+
self.data.ParseFromString(payload)
|
|
169
|
+
class MarketplaceRemoteEventListenerOnPlayerRequestClosedListener(Listener):
|
|
170
|
+
event = GeneratedEvent.MARKETPLACE_REMOTE_EVENT_LISTENER_ON_PLAYER_REQUEST_CLOSED
|
|
171
|
+
def __init__(self, callback):
|
|
172
|
+
super().__init__(callback)
|
|
173
|
+
async def call(self, client, update: MarketplaceRemoteEventListenerOnPlayerRequestClosedUpdate):
|
|
174
|
+
await self._callback(client, update)
|
|
175
|
+
class MarketplaceRemoteEventListenerOnPlayerRequestClosed:
|
|
176
|
+
def MarketplaceRemoteEventListenerOnPlayerRequestClosed(self) -> Callable:
|
|
177
|
+
def decorator(func: Callable) -> Callable:
|
|
178
|
+
self._dp.add_listener(MarketplaceRemoteEventListenerOnPlayerRequestClosedListener(func))
|
|
179
|
+
return func
|
|
180
|
+
return decorator
|
|
181
|
+
|
|
182
|
+
class MarketplaceRemoteEventListenerOnTradeRequestClosedUpdate(GeneratedUpdate):
|
|
183
|
+
event = GeneratedEvent.MARKETPLACE_REMOTE_EVENT_LISTENER_ON_TRADE_REQUEST_CLOSED
|
|
184
|
+
def __init__(self, payload: bytes):
|
|
185
|
+
super().__init__()
|
|
186
|
+
self.data = OnTradeRequestClosedEvent()
|
|
187
|
+
self.data.ParseFromString(payload)
|
|
188
|
+
class MarketplaceRemoteEventListenerOnTradeRequestClosedListener(Listener):
|
|
189
|
+
event = GeneratedEvent.MARKETPLACE_REMOTE_EVENT_LISTENER_ON_TRADE_REQUEST_CLOSED
|
|
190
|
+
def __init__(self, callback):
|
|
191
|
+
super().__init__(callback)
|
|
192
|
+
async def call(self, client, update: MarketplaceRemoteEventListenerOnTradeRequestClosedUpdate):
|
|
193
|
+
await self._callback(client, update)
|
|
194
|
+
class MarketplaceRemoteEventListenerOnTradeRequestClosed:
|
|
195
|
+
def MarketplaceRemoteEventListenerOnTradeRequestClosed(self) -> Callable:
|
|
196
|
+
def decorator(func: Callable) -> Callable:
|
|
197
|
+
self._dp.add_listener(MarketplaceRemoteEventListenerOnTradeRequestClosedListener(func))
|
|
198
|
+
return func
|
|
199
|
+
return decorator
|
|
200
|
+
|
|
201
|
+
class SystemMessagesRemoteEventListenerOnSystemMessageReceivedUpdate(GeneratedUpdate):
|
|
202
|
+
event = GeneratedEvent.SYSTEM_MESSAGES_REMOTE_EVENT_LISTENER_ON_SYSTEM_MESSAGE_RECEIVED
|
|
203
|
+
def __init__(self, payload: bytes):
|
|
204
|
+
super().__init__()
|
|
205
|
+
self.data = OnSystemMessageReceivedEvent()
|
|
206
|
+
self.data.ParseFromString(payload)
|
|
207
|
+
class SystemMessagesRemoteEventListenerOnSystemMessageReceivedListener(Listener):
|
|
208
|
+
event = GeneratedEvent.SYSTEM_MESSAGES_REMOTE_EVENT_LISTENER_ON_SYSTEM_MESSAGE_RECEIVED
|
|
209
|
+
def __init__(self, callback):
|
|
210
|
+
super().__init__(callback)
|
|
211
|
+
async def call(self, client, update: SystemMessagesRemoteEventListenerOnSystemMessageReceivedUpdate):
|
|
212
|
+
await self._callback(client, update)
|
|
213
|
+
class SystemMessagesRemoteEventListenerOnSystemMessageReceived:
|
|
214
|
+
def SystemMessagesRemoteEventListenerOnSystemMessageReceived(self) -> Callable:
|
|
215
|
+
def decorator(func: Callable) -> Callable:
|
|
216
|
+
self._dp.add_listener(SystemMessagesRemoteEventListenerOnSystemMessageReceivedListener(func))
|
|
217
|
+
return func
|
|
218
|
+
return decorator
|
|
219
|
+
|
|
220
|
+
class MatchmakingRemoteEventListenerOnRevokeInviteToLobbyEventUpdate(GeneratedUpdate):
|
|
221
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_REVOKE_INVITE_TO_LOBBY_EVENT
|
|
222
|
+
def __init__(self, payload: bytes):
|
|
223
|
+
super().__init__()
|
|
224
|
+
self.data = OnRevokeInviteToLobbyEvent()
|
|
225
|
+
self.data.ParseFromString(payload)
|
|
226
|
+
class MatchmakingRemoteEventListenerOnRevokeInviteToLobbyEventListener(Listener):
|
|
227
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_REVOKE_INVITE_TO_LOBBY_EVENT
|
|
228
|
+
def __init__(self, callback):
|
|
229
|
+
super().__init__(callback)
|
|
230
|
+
async def call(self, client, update: MatchmakingRemoteEventListenerOnRevokeInviteToLobbyEventUpdate):
|
|
231
|
+
await self._callback(client, update)
|
|
232
|
+
class MatchmakingRemoteEventListenerOnRevokeInviteToLobbyEvent:
|
|
233
|
+
def MatchmakingRemoteEventListenerOnRevokeInviteToLobbyEvent(self) -> Callable:
|
|
234
|
+
def decorator(func: Callable) -> Callable:
|
|
235
|
+
self._dp.add_listener(MatchmakingRemoteEventListenerOnRevokeInviteToLobbyEventListener(func))
|
|
236
|
+
return func
|
|
237
|
+
return decorator
|
|
238
|
+
|
|
239
|
+
class MatchmakingRemoteEventListenerOnNewSpectatorInvitedToLobbyEventUpdate(GeneratedUpdate):
|
|
240
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_NEW_SPECTATOR_INVITED_TO_LOBBY_EVENT
|
|
241
|
+
def __init__(self, payload: bytes):
|
|
242
|
+
super().__init__()
|
|
243
|
+
self.data = OnNewSpectatorInvitedToLobbyEvent()
|
|
244
|
+
self.data.ParseFromString(payload)
|
|
245
|
+
class MatchmakingRemoteEventListenerOnNewSpectatorInvitedToLobbyEventListener(Listener):
|
|
246
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_NEW_SPECTATOR_INVITED_TO_LOBBY_EVENT
|
|
247
|
+
def __init__(self, callback):
|
|
248
|
+
super().__init__(callback)
|
|
249
|
+
async def call(self, client, update: MatchmakingRemoteEventListenerOnNewSpectatorInvitedToLobbyEventUpdate):
|
|
250
|
+
await self._callback(client, update)
|
|
251
|
+
class MatchmakingRemoteEventListenerOnNewSpectatorInvitedToLobbyEvent:
|
|
252
|
+
def MatchmakingRemoteEventListenerOnNewSpectatorInvitedToLobbyEvent(self) -> Callable:
|
|
253
|
+
def decorator(func: Callable) -> Callable:
|
|
254
|
+
self._dp.add_listener(MatchmakingRemoteEventListenerOnNewSpectatorInvitedToLobbyEventListener(func))
|
|
255
|
+
return func
|
|
256
|
+
return decorator
|
|
257
|
+
|
|
258
|
+
class MatchmakingRemoteEventListenerOnLobbyPhotonGameChangedEventUpdate(GeneratedUpdate):
|
|
259
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_LOBBY_PHOTON_GAME_CHANGED_EVENT
|
|
260
|
+
def __init__(self, payload: bytes):
|
|
261
|
+
super().__init__()
|
|
262
|
+
self.data = OnLobbyPhotonGameChangedEvent()
|
|
263
|
+
self.data.ParseFromString(payload)
|
|
264
|
+
class MatchmakingRemoteEventListenerOnLobbyPhotonGameChangedEventListener(Listener):
|
|
265
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_LOBBY_PHOTON_GAME_CHANGED_EVENT
|
|
266
|
+
def __init__(self, callback):
|
|
267
|
+
super().__init__(callback)
|
|
268
|
+
async def call(self, client, update: MatchmakingRemoteEventListenerOnLobbyPhotonGameChangedEventUpdate):
|
|
269
|
+
await self._callback(client, update)
|
|
270
|
+
class MatchmakingRemoteEventListenerOnLobbyPhotonGameChangedEvent:
|
|
271
|
+
def MatchmakingRemoteEventListenerOnLobbyPhotonGameChangedEvent(self) -> Callable:
|
|
272
|
+
def decorator(func: Callable) -> Callable:
|
|
273
|
+
self._dp.add_listener(MatchmakingRemoteEventListenerOnLobbyPhotonGameChangedEventListener(func))
|
|
274
|
+
return func
|
|
275
|
+
return decorator
|
|
276
|
+
|
|
277
|
+
class MatchmakingRemoteEventListenerOnLobbyMaxMembersChangedEventUpdate(GeneratedUpdate):
|
|
278
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_LOBBY_MAX_MEMBERS_CHANGED_EVENT
|
|
279
|
+
def __init__(self, payload: bytes):
|
|
280
|
+
super().__init__()
|
|
281
|
+
self.data = OnLobbyMaxMembersChangedEvent()
|
|
282
|
+
self.data.ParseFromString(payload)
|
|
283
|
+
class MatchmakingRemoteEventListenerOnLobbyMaxMembersChangedEventListener(Listener):
|
|
284
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_LOBBY_MAX_MEMBERS_CHANGED_EVENT
|
|
285
|
+
def __init__(self, callback):
|
|
286
|
+
super().__init__(callback)
|
|
287
|
+
async def call(self, client, update: MatchmakingRemoteEventListenerOnLobbyMaxMembersChangedEventUpdate):
|
|
288
|
+
await self._callback(client, update)
|
|
289
|
+
class MatchmakingRemoteEventListenerOnLobbyMaxMembersChangedEvent:
|
|
290
|
+
def MatchmakingRemoteEventListenerOnLobbyMaxMembersChangedEvent(self) -> Callable:
|
|
291
|
+
def decorator(func: Callable) -> Callable:
|
|
292
|
+
self._dp.add_listener(MatchmakingRemoteEventListenerOnLobbyMaxMembersChangedEventListener(func))
|
|
293
|
+
return func
|
|
294
|
+
return decorator
|
|
295
|
+
|
|
296
|
+
class MatchmakingRemoteEventListenerOnLobbyDataChangedEventUpdate(GeneratedUpdate):
|
|
297
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_LOBBY_DATA_CHANGED_EVENT
|
|
298
|
+
def __init__(self, payload: bytes):
|
|
299
|
+
super().__init__()
|
|
300
|
+
self.data = OnLobbyDataChangedEvent()
|
|
301
|
+
self.data.ParseFromString(payload)
|
|
302
|
+
class MatchmakingRemoteEventListenerOnLobbyDataChangedEventListener(Listener):
|
|
303
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_LOBBY_DATA_CHANGED_EVENT
|
|
304
|
+
def __init__(self, callback):
|
|
305
|
+
super().__init__(callback)
|
|
306
|
+
async def call(self, client, update: MatchmakingRemoteEventListenerOnLobbyDataChangedEventUpdate):
|
|
307
|
+
await self._callback(client, update)
|
|
308
|
+
class MatchmakingRemoteEventListenerOnLobbyDataChangedEvent:
|
|
309
|
+
def MatchmakingRemoteEventListenerOnLobbyDataChangedEvent(self) -> Callable:
|
|
310
|
+
def decorator(func: Callable) -> Callable:
|
|
311
|
+
self._dp.add_listener(MatchmakingRemoteEventListenerOnLobbyDataChangedEventListener(func))
|
|
312
|
+
return func
|
|
313
|
+
return decorator
|
|
314
|
+
|
|
315
|
+
class MatchmakingRemoteEventListenerOnLobbyTypeChangedEventUpdate(GeneratedUpdate):
|
|
316
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_LOBBY_TYPE_CHANGED_EVENT
|
|
317
|
+
def __init__(self, payload: bytes):
|
|
318
|
+
super().__init__()
|
|
319
|
+
self.data = OnLobbyTypeChangedEvent()
|
|
320
|
+
self.data.ParseFromString(payload)
|
|
321
|
+
class MatchmakingRemoteEventListenerOnLobbyTypeChangedEventListener(Listener):
|
|
322
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_LOBBY_TYPE_CHANGED_EVENT
|
|
323
|
+
def __init__(self, callback):
|
|
324
|
+
super().__init__(callback)
|
|
325
|
+
async def call(self, client, update: MatchmakingRemoteEventListenerOnLobbyTypeChangedEventUpdate):
|
|
326
|
+
await self._callback(client, update)
|
|
327
|
+
class MatchmakingRemoteEventListenerOnLobbyTypeChangedEvent:
|
|
328
|
+
def MatchmakingRemoteEventListenerOnLobbyTypeChangedEvent(self) -> Callable:
|
|
329
|
+
def decorator(func: Callable) -> Callable:
|
|
330
|
+
self._dp.add_listener(MatchmakingRemoteEventListenerOnLobbyTypeChangedEventListener(func))
|
|
331
|
+
return func
|
|
332
|
+
return decorator
|
|
333
|
+
|
|
334
|
+
class MatchmakingRemoteEventListenerOnReceivedInviteToLobbyEventUpdate(GeneratedUpdate):
|
|
335
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_RECEIVED_INVITE_TO_LOBBY_EVENT
|
|
336
|
+
def __init__(self, payload: bytes):
|
|
337
|
+
super().__init__()
|
|
338
|
+
self.data = OnReceivedInviteToLobbyEvent()
|
|
339
|
+
self.data.ParseFromString(payload)
|
|
340
|
+
class MatchmakingRemoteEventListenerOnReceivedInviteToLobbyEventListener(Listener):
|
|
341
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_RECEIVED_INVITE_TO_LOBBY_EVENT
|
|
342
|
+
def __init__(self, callback):
|
|
343
|
+
super().__init__(callback)
|
|
344
|
+
async def call(self, client, update: MatchmakingRemoteEventListenerOnReceivedInviteToLobbyEventUpdate):
|
|
345
|
+
await self._callback(client, update)
|
|
346
|
+
class MatchmakingRemoteEventListenerOnReceivedInviteToLobbyEvent:
|
|
347
|
+
def MatchmakingRemoteEventListenerOnReceivedInviteToLobbyEvent(self) -> Callable:
|
|
348
|
+
def decorator(func: Callable) -> Callable:
|
|
349
|
+
self._dp.add_listener(MatchmakingRemoteEventListenerOnReceivedInviteToLobbyEventListener(func))
|
|
350
|
+
return func
|
|
351
|
+
return decorator
|
|
352
|
+
|
|
353
|
+
class MatchmakingRemoteEventListenerOnLobbyJoinableChangedEventUpdate(GeneratedUpdate):
|
|
354
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_LOBBY_JOINABLE_CHANGED_EVENT
|
|
355
|
+
def __init__(self, payload: bytes):
|
|
356
|
+
super().__init__()
|
|
357
|
+
self.data = OnLobbyJoinableChangedEvent()
|
|
358
|
+
self.data.ParseFromString(payload)
|
|
359
|
+
class MatchmakingRemoteEventListenerOnLobbyJoinableChangedEventListener(Listener):
|
|
360
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_LOBBY_JOINABLE_CHANGED_EVENT
|
|
361
|
+
def __init__(self, callback):
|
|
362
|
+
super().__init__(callback)
|
|
363
|
+
async def call(self, client, update: MatchmakingRemoteEventListenerOnLobbyJoinableChangedEventUpdate):
|
|
364
|
+
await self._callback(client, update)
|
|
365
|
+
class MatchmakingRemoteEventListenerOnLobbyJoinableChangedEvent:
|
|
366
|
+
def MatchmakingRemoteEventListenerOnLobbyJoinableChangedEvent(self) -> Callable:
|
|
367
|
+
def decorator(func: Callable) -> Callable:
|
|
368
|
+
self._dp.add_listener(MatchmakingRemoteEventListenerOnLobbyJoinableChangedEventListener(func))
|
|
369
|
+
return func
|
|
370
|
+
return decorator
|
|
371
|
+
|
|
372
|
+
class MatchmakingRemoteEventListenerOnNewPlayerJoinedLobbyEventUpdate(GeneratedUpdate):
|
|
373
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_NEW_PLAYER_JOINED_LOBBY_EVENT
|
|
374
|
+
def __init__(self, payload: bytes):
|
|
375
|
+
super().__init__()
|
|
376
|
+
self.data = OnNewPlayerJoinedLobbyEvent()
|
|
377
|
+
self.data.ParseFromString(payload)
|
|
378
|
+
class MatchmakingRemoteEventListenerOnNewPlayerJoinedLobbyEventListener(Listener):
|
|
379
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_NEW_PLAYER_JOINED_LOBBY_EVENT
|
|
380
|
+
def __init__(self, callback):
|
|
381
|
+
super().__init__(callback)
|
|
382
|
+
async def call(self, client, update: MatchmakingRemoteEventListenerOnNewPlayerJoinedLobbyEventUpdate):
|
|
383
|
+
await self._callback(client, update)
|
|
384
|
+
class MatchmakingRemoteEventListenerOnNewPlayerJoinedLobbyEvent:
|
|
385
|
+
def MatchmakingRemoteEventListenerOnNewPlayerJoinedLobbyEvent(self) -> Callable:
|
|
386
|
+
def decorator(func: Callable) -> Callable:
|
|
387
|
+
self._dp.add_listener(MatchmakingRemoteEventListenerOnNewPlayerJoinedLobbyEventListener(func))
|
|
388
|
+
return func
|
|
389
|
+
return decorator
|
|
390
|
+
|
|
391
|
+
class MatchmakingRemoteEventListenerOnRefuseInviteToLobbyEventUpdate(GeneratedUpdate):
|
|
392
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_REFUSE_INVITE_TO_LOBBY_EVENT
|
|
393
|
+
def __init__(self, payload: bytes):
|
|
394
|
+
super().__init__()
|
|
395
|
+
self.data = OnRefuseInviteToLobbyEvent()
|
|
396
|
+
self.data.ParseFromString(payload)
|
|
397
|
+
class MatchmakingRemoteEventListenerOnRefuseInviteToLobbyEventListener(Listener):
|
|
398
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_REFUSE_INVITE_TO_LOBBY_EVENT
|
|
399
|
+
def __init__(self, callback):
|
|
400
|
+
super().__init__(callback)
|
|
401
|
+
async def call(self, client, update: MatchmakingRemoteEventListenerOnRefuseInviteToLobbyEventUpdate):
|
|
402
|
+
await self._callback(client, update)
|
|
403
|
+
class MatchmakingRemoteEventListenerOnRefuseInviteToLobbyEvent:
|
|
404
|
+
def MatchmakingRemoteEventListenerOnRefuseInviteToLobbyEvent(self) -> Callable:
|
|
405
|
+
def decorator(func: Callable) -> Callable:
|
|
406
|
+
self._dp.add_listener(MatchmakingRemoteEventListenerOnRefuseInviteToLobbyEventListener(func))
|
|
407
|
+
return func
|
|
408
|
+
return decorator
|
|
409
|
+
|
|
410
|
+
class MatchmakingRemoteEventListenerOnLobbyChatMessageEventUpdate(GeneratedUpdate):
|
|
411
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_LOBBY_CHAT_MESSAGE_EVENT
|
|
412
|
+
def __init__(self, payload: bytes):
|
|
413
|
+
super().__init__()
|
|
414
|
+
self.data = OnLobbyChatMessageEvent()
|
|
415
|
+
self.data.ParseFromString(payload)
|
|
416
|
+
class MatchmakingRemoteEventListenerOnLobbyChatMessageEventListener(Listener):
|
|
417
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_LOBBY_CHAT_MESSAGE_EVENT
|
|
418
|
+
def __init__(self, callback):
|
|
419
|
+
super().__init__(callback)
|
|
420
|
+
async def call(self, client, update: MatchmakingRemoteEventListenerOnLobbyChatMessageEventUpdate):
|
|
421
|
+
await self._callback(client, update)
|
|
422
|
+
class MatchmakingRemoteEventListenerOnLobbyChatMessageEvent:
|
|
423
|
+
def MatchmakingRemoteEventListenerOnLobbyChatMessageEvent(self) -> Callable:
|
|
424
|
+
def decorator(func: Callable) -> Callable:
|
|
425
|
+
self._dp.add_listener(MatchmakingRemoteEventListenerOnLobbyChatMessageEventListener(func))
|
|
426
|
+
return func
|
|
427
|
+
return decorator
|
|
428
|
+
|
|
429
|
+
class MatchmakingRemoteEventListenerOnPlayerKickedFromLobbyEventUpdate(GeneratedUpdate):
|
|
430
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_PLAYER_KICKED_FROM_LOBBY_EVENT
|
|
431
|
+
def __init__(self, payload: bytes):
|
|
432
|
+
super().__init__()
|
|
433
|
+
self.data = OnPlayerKickedFromLobbyEvent()
|
|
434
|
+
self.data.ParseFromString(payload)
|
|
435
|
+
class MatchmakingRemoteEventListenerOnPlayerKickedFromLobbyEventListener(Listener):
|
|
436
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_PLAYER_KICKED_FROM_LOBBY_EVENT
|
|
437
|
+
def __init__(self, callback):
|
|
438
|
+
super().__init__(callback)
|
|
439
|
+
async def call(self, client, update: MatchmakingRemoteEventListenerOnPlayerKickedFromLobbyEventUpdate):
|
|
440
|
+
await self._callback(client, update)
|
|
441
|
+
class MatchmakingRemoteEventListenerOnPlayerKickedFromLobbyEvent:
|
|
442
|
+
def MatchmakingRemoteEventListenerOnPlayerKickedFromLobbyEvent(self) -> Callable:
|
|
443
|
+
def decorator(func: Callable) -> Callable:
|
|
444
|
+
self._dp.add_listener(MatchmakingRemoteEventListenerOnPlayerKickedFromLobbyEventListener(func))
|
|
445
|
+
return func
|
|
446
|
+
return decorator
|
|
447
|
+
|
|
448
|
+
class MatchmakingRemoteEventListenerOnLobbyPlayerTypeChangedEventUpdate(GeneratedUpdate):
|
|
449
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_LOBBY_PLAYER_TYPE_CHANGED_EVENT
|
|
450
|
+
def __init__(self, payload: bytes):
|
|
451
|
+
super().__init__()
|
|
452
|
+
self.data = OnLobbyPlayerTypeChangedEvent()
|
|
453
|
+
self.data.ParseFromString(payload)
|
|
454
|
+
class MatchmakingRemoteEventListenerOnLobbyPlayerTypeChangedEventListener(Listener):
|
|
455
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_LOBBY_PLAYER_TYPE_CHANGED_EVENT
|
|
456
|
+
def __init__(self, callback):
|
|
457
|
+
super().__init__(callback)
|
|
458
|
+
async def call(self, client, update: MatchmakingRemoteEventListenerOnLobbyPlayerTypeChangedEventUpdate):
|
|
459
|
+
await self._callback(client, update)
|
|
460
|
+
class MatchmakingRemoteEventListenerOnLobbyPlayerTypeChangedEvent:
|
|
461
|
+
def MatchmakingRemoteEventListenerOnLobbyPlayerTypeChangedEvent(self) -> Callable:
|
|
462
|
+
def decorator(func: Callable) -> Callable:
|
|
463
|
+
self._dp.add_listener(MatchmakingRemoteEventListenerOnLobbyPlayerTypeChangedEventListener(func))
|
|
464
|
+
return func
|
|
465
|
+
return decorator
|
|
466
|
+
|
|
467
|
+
class MatchmakingRemoteEventListenerOnReceivedSpectatorInviteToLobbyEventUpdate(GeneratedUpdate):
|
|
468
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_RECEIVED_SPECTATOR_INVITE_TO_LOBBY_EVENT
|
|
469
|
+
def __init__(self, payload: bytes):
|
|
470
|
+
super().__init__()
|
|
471
|
+
self.data = OnReceivedSpectatorInviteToLobbyEvent()
|
|
472
|
+
self.data.ParseFromString(payload)
|
|
473
|
+
class MatchmakingRemoteEventListenerOnReceivedSpectatorInviteToLobbyEventListener(Listener):
|
|
474
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_RECEIVED_SPECTATOR_INVITE_TO_LOBBY_EVENT
|
|
475
|
+
def __init__(self, callback):
|
|
476
|
+
super().__init__(callback)
|
|
477
|
+
async def call(self, client, update: MatchmakingRemoteEventListenerOnReceivedSpectatorInviteToLobbyEventUpdate):
|
|
478
|
+
await self._callback(client, update)
|
|
479
|
+
class MatchmakingRemoteEventListenerOnReceivedSpectatorInviteToLobbyEvent:
|
|
480
|
+
def MatchmakingRemoteEventListenerOnReceivedSpectatorInviteToLobbyEvent(self) -> Callable:
|
|
481
|
+
def decorator(func: Callable) -> Callable:
|
|
482
|
+
self._dp.add_listener(MatchmakingRemoteEventListenerOnReceivedSpectatorInviteToLobbyEventListener(func))
|
|
483
|
+
return func
|
|
484
|
+
return decorator
|
|
485
|
+
|
|
486
|
+
class MatchmakingRemoteEventListenerOnLobbyOwnerChangedEventUpdate(GeneratedUpdate):
|
|
487
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_LOBBY_OWNER_CHANGED_EVENT
|
|
488
|
+
def __init__(self, payload: bytes):
|
|
489
|
+
super().__init__()
|
|
490
|
+
self.data = OnLobbyOwnerChangedEvent()
|
|
491
|
+
self.data.ParseFromString(payload)
|
|
492
|
+
class MatchmakingRemoteEventListenerOnLobbyOwnerChangedEventListener(Listener):
|
|
493
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_LOBBY_OWNER_CHANGED_EVENT
|
|
494
|
+
def __init__(self, callback):
|
|
495
|
+
super().__init__(callback)
|
|
496
|
+
async def call(self, client, update: MatchmakingRemoteEventListenerOnLobbyOwnerChangedEventUpdate):
|
|
497
|
+
await self._callback(client, update)
|
|
498
|
+
class MatchmakingRemoteEventListenerOnLobbyOwnerChangedEvent:
|
|
499
|
+
def MatchmakingRemoteEventListenerOnLobbyOwnerChangedEvent(self) -> Callable:
|
|
500
|
+
def decorator(func: Callable) -> Callable:
|
|
501
|
+
self._dp.add_listener(MatchmakingRemoteEventListenerOnLobbyOwnerChangedEventListener(func))
|
|
502
|
+
return func
|
|
503
|
+
return decorator
|
|
504
|
+
|
|
505
|
+
class MatchmakingRemoteEventListenerOnNewPlayerInvitedToLobbyEventUpdate(GeneratedUpdate):
|
|
506
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_NEW_PLAYER_INVITED_TO_LOBBY_EVENT
|
|
507
|
+
def __init__(self, payload: bytes):
|
|
508
|
+
super().__init__()
|
|
509
|
+
self.data = OnNewPlayerInvitedToLobbyEvent()
|
|
510
|
+
self.data.ParseFromString(payload)
|
|
511
|
+
class MatchmakingRemoteEventListenerOnNewPlayerInvitedToLobbyEventListener(Listener):
|
|
512
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_NEW_PLAYER_INVITED_TO_LOBBY_EVENT
|
|
513
|
+
def __init__(self, callback):
|
|
514
|
+
super().__init__(callback)
|
|
515
|
+
async def call(self, client, update: MatchmakingRemoteEventListenerOnNewPlayerInvitedToLobbyEventUpdate):
|
|
516
|
+
await self._callback(client, update)
|
|
517
|
+
class MatchmakingRemoteEventListenerOnNewPlayerInvitedToLobbyEvent:
|
|
518
|
+
def MatchmakingRemoteEventListenerOnNewPlayerInvitedToLobbyEvent(self) -> Callable:
|
|
519
|
+
def decorator(func: Callable) -> Callable:
|
|
520
|
+
self._dp.add_listener(MatchmakingRemoteEventListenerOnNewPlayerInvitedToLobbyEventListener(func))
|
|
521
|
+
return func
|
|
522
|
+
return decorator
|
|
523
|
+
|
|
524
|
+
class MatchmakingRemoteEventListenerOnLobbyGameServerChangedEventUpdate(GeneratedUpdate):
|
|
525
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_LOBBY_GAME_SERVER_CHANGED_EVENT
|
|
526
|
+
def __init__(self, payload: bytes):
|
|
527
|
+
super().__init__()
|
|
528
|
+
self.data = OnLobbyGameServerChangedEvent()
|
|
529
|
+
self.data.ParseFromString(payload)
|
|
530
|
+
class MatchmakingRemoteEventListenerOnLobbyGameServerChangedEventListener(Listener):
|
|
531
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_LOBBY_GAME_SERVER_CHANGED_EVENT
|
|
532
|
+
def __init__(self, callback):
|
|
533
|
+
super().__init__(callback)
|
|
534
|
+
async def call(self, client, update: MatchmakingRemoteEventListenerOnLobbyGameServerChangedEventUpdate):
|
|
535
|
+
await self._callback(client, update)
|
|
536
|
+
class MatchmakingRemoteEventListenerOnLobbyGameServerChangedEvent:
|
|
537
|
+
def MatchmakingRemoteEventListenerOnLobbyGameServerChangedEvent(self) -> Callable:
|
|
538
|
+
def decorator(func: Callable) -> Callable:
|
|
539
|
+
self._dp.add_listener(MatchmakingRemoteEventListenerOnLobbyGameServerChangedEventListener(func))
|
|
540
|
+
return func
|
|
541
|
+
return decorator
|
|
542
|
+
|
|
543
|
+
class MatchmakingRemoteEventListenerOnLobbyNameChangedEventUpdate(GeneratedUpdate):
|
|
544
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_LOBBY_NAME_CHANGED_EVENT
|
|
545
|
+
def __init__(self, payload: bytes):
|
|
546
|
+
super().__init__()
|
|
547
|
+
self.data = OnLobbyNameChangedEvent()
|
|
548
|
+
self.data.ParseFromString(payload)
|
|
549
|
+
class MatchmakingRemoteEventListenerOnLobbyNameChangedEventListener(Listener):
|
|
550
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_LOBBY_NAME_CHANGED_EVENT
|
|
551
|
+
def __init__(self, callback):
|
|
552
|
+
super().__init__(callback)
|
|
553
|
+
async def call(self, client, update: MatchmakingRemoteEventListenerOnLobbyNameChangedEventUpdate):
|
|
554
|
+
await self._callback(client, update)
|
|
555
|
+
class MatchmakingRemoteEventListenerOnLobbyNameChangedEvent:
|
|
556
|
+
def MatchmakingRemoteEventListenerOnLobbyNameChangedEvent(self) -> Callable:
|
|
557
|
+
def decorator(func: Callable) -> Callable:
|
|
558
|
+
self._dp.add_listener(MatchmakingRemoteEventListenerOnLobbyNameChangedEventListener(func))
|
|
559
|
+
return func
|
|
560
|
+
return decorator
|
|
561
|
+
|
|
562
|
+
class MatchmakingRemoteEventListenerOnPlayerLeftLobbyEventUpdate(GeneratedUpdate):
|
|
563
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_PLAYER_LEFT_LOBBY_EVENT
|
|
564
|
+
def __init__(self, payload: bytes):
|
|
565
|
+
super().__init__()
|
|
566
|
+
self.data = OnPlayerLeftLobbyEvent()
|
|
567
|
+
self.data.ParseFromString(payload)
|
|
568
|
+
class MatchmakingRemoteEventListenerOnPlayerLeftLobbyEventListener(Listener):
|
|
569
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_PLAYER_LEFT_LOBBY_EVENT
|
|
570
|
+
def __init__(self, callback):
|
|
571
|
+
super().__init__(callback)
|
|
572
|
+
async def call(self, client, update: MatchmakingRemoteEventListenerOnPlayerLeftLobbyEventUpdate):
|
|
573
|
+
await self._callback(client, update)
|
|
574
|
+
class MatchmakingRemoteEventListenerOnPlayerLeftLobbyEvent:
|
|
575
|
+
def MatchmakingRemoteEventListenerOnPlayerLeftLobbyEvent(self) -> Callable:
|
|
576
|
+
def decorator(func: Callable) -> Callable:
|
|
577
|
+
self._dp.add_listener(MatchmakingRemoteEventListenerOnPlayerLeftLobbyEventListener(func))
|
|
578
|
+
return func
|
|
579
|
+
return decorator
|
|
580
|
+
|
|
581
|
+
class MatchmakingRemoteEventListenerOnNewSpectatorJoinedLobbyEventUpdate(GeneratedUpdate):
|
|
582
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_NEW_SPECTATOR_JOINED_LOBBY_EVENT
|
|
583
|
+
def __init__(self, payload: bytes):
|
|
584
|
+
super().__init__()
|
|
585
|
+
self.data = OnNewSpectatorJoinedLobbyEvent()
|
|
586
|
+
self.data.ParseFromString(payload)
|
|
587
|
+
class MatchmakingRemoteEventListenerOnNewSpectatorJoinedLobbyEventListener(Listener):
|
|
588
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_NEW_SPECTATOR_JOINED_LOBBY_EVENT
|
|
589
|
+
def __init__(self, callback):
|
|
590
|
+
super().__init__(callback)
|
|
591
|
+
async def call(self, client, update: MatchmakingRemoteEventListenerOnNewSpectatorJoinedLobbyEventUpdate):
|
|
592
|
+
await self._callback(client, update)
|
|
593
|
+
class MatchmakingRemoteEventListenerOnNewSpectatorJoinedLobbyEvent:
|
|
594
|
+
def MatchmakingRemoteEventListenerOnNewSpectatorJoinedLobbyEvent(self) -> Callable:
|
|
595
|
+
def decorator(func: Callable) -> Callable:
|
|
596
|
+
self._dp.add_listener(MatchmakingRemoteEventListenerOnNewSpectatorJoinedLobbyEventListener(func))
|
|
597
|
+
return func
|
|
598
|
+
return decorator
|
|
599
|
+
|
|
600
|
+
class MatchmakingRemoteEventListenerOnLobbyMaxSpectatorsChangedEventUpdate(GeneratedUpdate):
|
|
601
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_LOBBY_MAX_SPECTATORS_CHANGED_EVENT
|
|
602
|
+
def __init__(self, payload: bytes):
|
|
603
|
+
super().__init__()
|
|
604
|
+
self.data = OnLobbyMaxSpectatorsChangedEvent()
|
|
605
|
+
self.data.ParseFromString(payload)
|
|
606
|
+
class MatchmakingRemoteEventListenerOnLobbyMaxSpectatorsChangedEventListener(Listener):
|
|
607
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_EVENT_LISTENER_ON_LOBBY_MAX_SPECTATORS_CHANGED_EVENT
|
|
608
|
+
def __init__(self, callback):
|
|
609
|
+
super().__init__(callback)
|
|
610
|
+
async def call(self, client, update: MatchmakingRemoteEventListenerOnLobbyMaxSpectatorsChangedEventUpdate):
|
|
611
|
+
await self._callback(client, update)
|
|
612
|
+
class MatchmakingRemoteEventListenerOnLobbyMaxSpectatorsChangedEvent:
|
|
613
|
+
def MatchmakingRemoteEventListenerOnLobbyMaxSpectatorsChangedEvent(self) -> Callable:
|
|
614
|
+
def decorator(func: Callable) -> Callable:
|
|
615
|
+
self._dp.add_listener(MatchmakingRemoteEventListenerOnLobbyMaxSpectatorsChangedEventListener(func))
|
|
616
|
+
return func
|
|
617
|
+
return decorator
|
|
618
|
+
|
|
619
|
+
class InAppsRemoteEventListenerOnInAppEventUpdate(GeneratedUpdate):
|
|
620
|
+
event = GeneratedEvent.IN_APPS_REMOTE_EVENT_LISTENER_ON_IN_APP_EVENT
|
|
621
|
+
def __init__(self, payload: bytes):
|
|
622
|
+
super().__init__()
|
|
623
|
+
self.data = OnInAppEvent()
|
|
624
|
+
self.data.ParseFromString(payload)
|
|
625
|
+
class InAppsRemoteEventListenerOnInAppEventListener(Listener):
|
|
626
|
+
event = GeneratedEvent.IN_APPS_REMOTE_EVENT_LISTENER_ON_IN_APP_EVENT
|
|
627
|
+
def __init__(self, callback):
|
|
628
|
+
super().__init__(callback)
|
|
629
|
+
async def call(self, client, update: InAppsRemoteEventListenerOnInAppEventUpdate):
|
|
630
|
+
await self._callback(client, update)
|
|
631
|
+
class InAppsRemoteEventListenerOnInAppEvent:
|
|
632
|
+
def InAppsRemoteEventListenerOnInAppEvent(self) -> Callable:
|
|
633
|
+
def decorator(func: Callable) -> Callable:
|
|
634
|
+
self._dp.add_listener(InAppsRemoteEventListenerOnInAppEventListener(func))
|
|
635
|
+
return func
|
|
636
|
+
return decorator
|
|
637
|
+
|
|
638
|
+
class ClansRemoteEventListenerOnClanMembersCountIncreasedUpdate(GeneratedUpdate):
|
|
639
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_CLAN_MEMBERS_COUNT_INCREASED
|
|
640
|
+
def __init__(self, payload: bytes):
|
|
641
|
+
super().__init__()
|
|
642
|
+
self.data = OnClanMaxMembersCountIncreased()
|
|
643
|
+
self.data.ParseFromString(payload)
|
|
644
|
+
class ClansRemoteEventListenerOnClanMembersCountIncreasedListener(Listener):
|
|
645
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_CLAN_MEMBERS_COUNT_INCREASED
|
|
646
|
+
def __init__(self, callback):
|
|
647
|
+
super().__init__(callback)
|
|
648
|
+
async def call(self, client, update: ClansRemoteEventListenerOnClanMembersCountIncreasedUpdate):
|
|
649
|
+
await self._callback(client, update)
|
|
650
|
+
class ClansRemoteEventListenerOnClanMembersCountIncreased:
|
|
651
|
+
def ClansRemoteEventListenerOnClanMembersCountIncreased(self) -> Callable:
|
|
652
|
+
def decorator(func: Callable) -> Callable:
|
|
653
|
+
self._dp.add_listener(ClansRemoteEventListenerOnClanMembersCountIncreasedListener(func))
|
|
654
|
+
return func
|
|
655
|
+
return decorator
|
|
656
|
+
|
|
657
|
+
class ClansRemoteEventListenerOnReadClosedInviteRequestEventUpdate(GeneratedUpdate):
|
|
658
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_READ_CLOSED_INVITE_REQUEST_EVENT
|
|
659
|
+
def __init__(self, payload: bytes):
|
|
660
|
+
super().__init__()
|
|
661
|
+
self.data = OnReadClosedInviteRequestEvent()
|
|
662
|
+
self.data.ParseFromString(payload)
|
|
663
|
+
class ClansRemoteEventListenerOnReadClosedInviteRequestEventListener(Listener):
|
|
664
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_READ_CLOSED_INVITE_REQUEST_EVENT
|
|
665
|
+
def __init__(self, callback):
|
|
666
|
+
super().__init__(callback)
|
|
667
|
+
async def call(self, client, update: ClansRemoteEventListenerOnReadClosedInviteRequestEventUpdate):
|
|
668
|
+
await self._callback(client, update)
|
|
669
|
+
class ClansRemoteEventListenerOnReadClosedInviteRequestEvent:
|
|
670
|
+
def ClansRemoteEventListenerOnReadClosedInviteRequestEvent(self) -> Callable:
|
|
671
|
+
def decorator(func: Callable) -> Callable:
|
|
672
|
+
self._dp.add_listener(ClansRemoteEventListenerOnReadClosedInviteRequestEventListener(func))
|
|
673
|
+
return func
|
|
674
|
+
return decorator
|
|
675
|
+
|
|
676
|
+
class ClansRemoteEventListenerOnJoinRequestDeclinedEventUpdate(GeneratedUpdate):
|
|
677
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_JOIN_REQUEST_DECLINED_EVENT
|
|
678
|
+
def __init__(self, payload: bytes):
|
|
679
|
+
super().__init__()
|
|
680
|
+
self.data = OnJoinRequestDeclinedEvent()
|
|
681
|
+
self.data.ParseFromString(payload)
|
|
682
|
+
class ClansRemoteEventListenerOnJoinRequestDeclinedEventListener(Listener):
|
|
683
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_JOIN_REQUEST_DECLINED_EVENT
|
|
684
|
+
def __init__(self, callback):
|
|
685
|
+
super().__init__(callback)
|
|
686
|
+
async def call(self, client, update: ClansRemoteEventListenerOnJoinRequestDeclinedEventUpdate):
|
|
687
|
+
await self._callback(client, update)
|
|
688
|
+
class ClansRemoteEventListenerOnJoinRequestDeclinedEvent:
|
|
689
|
+
def ClansRemoteEventListenerOnJoinRequestDeclinedEvent(self) -> Callable:
|
|
690
|
+
def decorator(func: Callable) -> Callable:
|
|
691
|
+
self._dp.add_listener(ClansRemoteEventListenerOnJoinRequestDeclinedEventListener(func))
|
|
692
|
+
return func
|
|
693
|
+
return decorator
|
|
694
|
+
|
|
695
|
+
class ClansRemoteEventListenerOnKickedMemberUpdate(GeneratedUpdate):
|
|
696
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_KICKED_MEMBER
|
|
697
|
+
def __init__(self, payload: bytes):
|
|
698
|
+
super().__init__()
|
|
699
|
+
self.data = OnKickedMemberEvent()
|
|
700
|
+
self.data.ParseFromString(payload)
|
|
701
|
+
class ClansRemoteEventListenerOnKickedMemberListener(Listener):
|
|
702
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_KICKED_MEMBER
|
|
703
|
+
def __init__(self, callback):
|
|
704
|
+
super().__init__(callback)
|
|
705
|
+
async def call(self, client, update: ClansRemoteEventListenerOnKickedMemberUpdate):
|
|
706
|
+
await self._callback(client, update)
|
|
707
|
+
class ClansRemoteEventListenerOnKickedMember:
|
|
708
|
+
def ClansRemoteEventListenerOnKickedMember(self) -> Callable:
|
|
709
|
+
def decorator(func: Callable) -> Callable:
|
|
710
|
+
self._dp.add_listener(ClansRemoteEventListenerOnKickedMemberListener(func))
|
|
711
|
+
return func
|
|
712
|
+
return decorator
|
|
713
|
+
|
|
714
|
+
class ClansRemoteEventListenerOnJoinRequestCancelledEventUpdate(GeneratedUpdate):
|
|
715
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_JOIN_REQUEST_CANCELLED_EVENT
|
|
716
|
+
def __init__(self, payload: bytes):
|
|
717
|
+
super().__init__()
|
|
718
|
+
self.data = OnJoinRequestCancelledEvent()
|
|
719
|
+
self.data.ParseFromString(payload)
|
|
720
|
+
class ClansRemoteEventListenerOnJoinRequestCancelledEventListener(Listener):
|
|
721
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_JOIN_REQUEST_CANCELLED_EVENT
|
|
722
|
+
def __init__(self, callback):
|
|
723
|
+
super().__init__(callback)
|
|
724
|
+
async def call(self, client, update: ClansRemoteEventListenerOnJoinRequestCancelledEventUpdate):
|
|
725
|
+
await self._callback(client, update)
|
|
726
|
+
class ClansRemoteEventListenerOnJoinRequestCancelledEvent:
|
|
727
|
+
def ClansRemoteEventListenerOnJoinRequestCancelledEvent(self) -> Callable:
|
|
728
|
+
def decorator(func: Callable) -> Callable:
|
|
729
|
+
self._dp.add_listener(ClansRemoteEventListenerOnJoinRequestCancelledEventListener(func))
|
|
730
|
+
return func
|
|
731
|
+
return decorator
|
|
732
|
+
|
|
733
|
+
class ClansRemoteEventListenerOnClanTypeChangedUpdate(GeneratedUpdate):
|
|
734
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_CLAN_TYPE_CHANGED
|
|
735
|
+
def __init__(self, payload: bytes):
|
|
736
|
+
super().__init__()
|
|
737
|
+
self.data = OnClanTypeChanged()
|
|
738
|
+
self.data.ParseFromString(payload)
|
|
739
|
+
class ClansRemoteEventListenerOnClanTypeChangedListener(Listener):
|
|
740
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_CLAN_TYPE_CHANGED
|
|
741
|
+
def __init__(self, callback):
|
|
742
|
+
super().__init__(callback)
|
|
743
|
+
async def call(self, client, update: ClansRemoteEventListenerOnClanTypeChangedUpdate):
|
|
744
|
+
await self._callback(client, update)
|
|
745
|
+
class ClansRemoteEventListenerOnClanTypeChanged:
|
|
746
|
+
def ClansRemoteEventListenerOnClanTypeChanged(self) -> Callable:
|
|
747
|
+
def decorator(func: Callable) -> Callable:
|
|
748
|
+
self._dp.add_listener(ClansRemoteEventListenerOnClanTypeChangedListener(func))
|
|
749
|
+
return func
|
|
750
|
+
return decorator
|
|
751
|
+
|
|
752
|
+
class ClansRemoteEventListenerOnAssignedLeaderRoleEventUpdate(GeneratedUpdate):
|
|
753
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_ASSIGNED_LEADER_ROLE_EVENT
|
|
754
|
+
def __init__(self, payload: bytes):
|
|
755
|
+
super().__init__()
|
|
756
|
+
self.data = OnAssignedLeaderRoleEvent()
|
|
757
|
+
self.data.ParseFromString(payload)
|
|
758
|
+
class ClansRemoteEventListenerOnAssignedLeaderRoleEventListener(Listener):
|
|
759
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_ASSIGNED_LEADER_ROLE_EVENT
|
|
760
|
+
def __init__(self, callback):
|
|
761
|
+
super().__init__(callback)
|
|
762
|
+
async def call(self, client, update: ClansRemoteEventListenerOnAssignedLeaderRoleEventUpdate):
|
|
763
|
+
await self._callback(client, update)
|
|
764
|
+
class ClansRemoteEventListenerOnAssignedLeaderRoleEvent:
|
|
765
|
+
def ClansRemoteEventListenerOnAssignedLeaderRoleEvent(self) -> Callable:
|
|
766
|
+
def decorator(func: Callable) -> Callable:
|
|
767
|
+
self._dp.add_listener(ClansRemoteEventListenerOnAssignedLeaderRoleEventListener(func))
|
|
768
|
+
return func
|
|
769
|
+
return decorator
|
|
770
|
+
|
|
771
|
+
class ClansRemoteEventListenerOnClanTagAndNameChangedUpdate(GeneratedUpdate):
|
|
772
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_CLAN_TAG_AND_NAME_CHANGED
|
|
773
|
+
def __init__(self, payload: bytes):
|
|
774
|
+
super().__init__()
|
|
775
|
+
self.data = OnClanTagAndNameChanged()
|
|
776
|
+
self.data.ParseFromString(payload)
|
|
777
|
+
class ClansRemoteEventListenerOnClanTagAndNameChangedListener(Listener):
|
|
778
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_CLAN_TAG_AND_NAME_CHANGED
|
|
779
|
+
def __init__(self, callback):
|
|
780
|
+
super().__init__(callback)
|
|
781
|
+
async def call(self, client, update: ClansRemoteEventListenerOnClanTagAndNameChangedUpdate):
|
|
782
|
+
await self._callback(client, update)
|
|
783
|
+
class ClansRemoteEventListenerOnClanTagAndNameChanged:
|
|
784
|
+
def ClansRemoteEventListenerOnClanTagAndNameChanged(self) -> Callable:
|
|
785
|
+
def decorator(func: Callable) -> Callable:
|
|
786
|
+
self._dp.add_listener(ClansRemoteEventListenerOnClanTagAndNameChangedListener(func))
|
|
787
|
+
return func
|
|
788
|
+
return decorator
|
|
789
|
+
|
|
790
|
+
class ClansRemoteEventListenerOnLeftFromClanUpdate(GeneratedUpdate):
|
|
791
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_LEFT_FROM_CLAN
|
|
792
|
+
def __init__(self, payload: bytes):
|
|
793
|
+
super().__init__()
|
|
794
|
+
self.data = OnLeftFromClan()
|
|
795
|
+
self.data.ParseFromString(payload)
|
|
796
|
+
class ClansRemoteEventListenerOnLeftFromClanListener(Listener):
|
|
797
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_LEFT_FROM_CLAN
|
|
798
|
+
def __init__(self, callback):
|
|
799
|
+
super().__init__(callback)
|
|
800
|
+
async def call(self, client, update: ClansRemoteEventListenerOnLeftFromClanUpdate):
|
|
801
|
+
await self._callback(client, update)
|
|
802
|
+
class ClansRemoteEventListenerOnLeftFromClan:
|
|
803
|
+
def ClansRemoteEventListenerOnLeftFromClan(self) -> Callable:
|
|
804
|
+
def decorator(func: Callable) -> Callable:
|
|
805
|
+
self._dp.add_listener(ClansRemoteEventListenerOnLeftFromClanListener(func))
|
|
806
|
+
return func
|
|
807
|
+
return decorator
|
|
808
|
+
|
|
809
|
+
class ClansRemoteEventListenerOnClanMemberDeclinedRequestEventUpdate(GeneratedUpdate):
|
|
810
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_CLAN_MEMBER_DECLINED_REQUEST_EVENT
|
|
811
|
+
def __init__(self, payload: bytes):
|
|
812
|
+
super().__init__()
|
|
813
|
+
self.data = OnClanMemberDeclinedRequestEvent()
|
|
814
|
+
self.data.ParseFromString(payload)
|
|
815
|
+
class ClansRemoteEventListenerOnClanMemberDeclinedRequestEventListener(Listener):
|
|
816
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_CLAN_MEMBER_DECLINED_REQUEST_EVENT
|
|
817
|
+
def __init__(self, callback):
|
|
818
|
+
super().__init__(callback)
|
|
819
|
+
async def call(self, client, update: ClansRemoteEventListenerOnClanMemberDeclinedRequestEventUpdate):
|
|
820
|
+
await self._callback(client, update)
|
|
821
|
+
class ClansRemoteEventListenerOnClanMemberDeclinedRequestEvent:
|
|
822
|
+
def ClansRemoteEventListenerOnClanMemberDeclinedRequestEvent(self) -> Callable:
|
|
823
|
+
def decorator(func: Callable) -> Callable:
|
|
824
|
+
self._dp.add_listener(ClansRemoteEventListenerOnClanMemberDeclinedRequestEventListener(func))
|
|
825
|
+
return func
|
|
826
|
+
return decorator
|
|
827
|
+
|
|
828
|
+
class ClansRemoteEventListenerOnMemberJoinedToClanUpdate(GeneratedUpdate):
|
|
829
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_MEMBER_JOINED_TO_CLAN
|
|
830
|
+
def __init__(self, payload: bytes):
|
|
831
|
+
super().__init__()
|
|
832
|
+
self.data = OnMemberJoinedToClanEvent()
|
|
833
|
+
self.data.ParseFromString(payload)
|
|
834
|
+
class ClansRemoteEventListenerOnMemberJoinedToClanListener(Listener):
|
|
835
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_MEMBER_JOINED_TO_CLAN
|
|
836
|
+
def __init__(self, callback):
|
|
837
|
+
super().__init__(callback)
|
|
838
|
+
async def call(self, client, update: ClansRemoteEventListenerOnMemberJoinedToClanUpdate):
|
|
839
|
+
await self._callback(client, update)
|
|
840
|
+
class ClansRemoteEventListenerOnMemberJoinedToClan:
|
|
841
|
+
def ClansRemoteEventListenerOnMemberJoinedToClan(self) -> Callable:
|
|
842
|
+
def decorator(func: Callable) -> Callable:
|
|
843
|
+
self._dp.add_listener(ClansRemoteEventListenerOnMemberJoinedToClanListener(func))
|
|
844
|
+
return func
|
|
845
|
+
return decorator
|
|
846
|
+
|
|
847
|
+
class ClansRemoteEventListenerOnJoinRequestTakenUpdate(GeneratedUpdate):
|
|
848
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_JOIN_REQUEST_TAKEN
|
|
849
|
+
def __init__(self, payload: bytes):
|
|
850
|
+
super().__init__()
|
|
851
|
+
self.data = OnJoinRequestTakenEvent()
|
|
852
|
+
self.data.ParseFromString(payload)
|
|
853
|
+
class ClansRemoteEventListenerOnJoinRequestTakenListener(Listener):
|
|
854
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_JOIN_REQUEST_TAKEN
|
|
855
|
+
def __init__(self, callback):
|
|
856
|
+
super().__init__(callback)
|
|
857
|
+
async def call(self, client, update: ClansRemoteEventListenerOnJoinRequestTakenUpdate):
|
|
858
|
+
await self._callback(client, update)
|
|
859
|
+
class ClansRemoteEventListenerOnJoinRequestTaken:
|
|
860
|
+
def ClansRemoteEventListenerOnJoinRequestTaken(self) -> Callable:
|
|
861
|
+
def decorator(func: Callable) -> Callable:
|
|
862
|
+
self._dp.add_listener(ClansRemoteEventListenerOnJoinRequestTakenListener(func))
|
|
863
|
+
return func
|
|
864
|
+
return decorator
|
|
865
|
+
|
|
866
|
+
class ClansRemoteEventListenerOnInviteRequestDeclinedEventUpdate(GeneratedUpdate):
|
|
867
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_INVITE_REQUEST_DECLINED_EVENT
|
|
868
|
+
def __init__(self, payload: bytes):
|
|
869
|
+
super().__init__()
|
|
870
|
+
self.data = OnInviteRequestDeclinedEvent()
|
|
871
|
+
self.data.ParseFromString(payload)
|
|
872
|
+
class ClansRemoteEventListenerOnInviteRequestDeclinedEventListener(Listener):
|
|
873
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_INVITE_REQUEST_DECLINED_EVENT
|
|
874
|
+
def __init__(self, callback):
|
|
875
|
+
super().__init__(callback)
|
|
876
|
+
async def call(self, client, update: ClansRemoteEventListenerOnInviteRequestDeclinedEventUpdate):
|
|
877
|
+
await self._callback(client, update)
|
|
878
|
+
class ClansRemoteEventListenerOnInviteRequestDeclinedEvent:
|
|
879
|
+
def ClansRemoteEventListenerOnInviteRequestDeclinedEvent(self) -> Callable:
|
|
880
|
+
def decorator(func: Callable) -> Callable:
|
|
881
|
+
self._dp.add_listener(ClansRemoteEventListenerOnInviteRequestDeclinedEventListener(func))
|
|
882
|
+
return func
|
|
883
|
+
return decorator
|
|
884
|
+
|
|
885
|
+
class ClansRemoteEventListenerOnInviteRequestCancelledEventUpdate(GeneratedUpdate):
|
|
886
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_INVITE_REQUEST_CANCELLED_EVENT
|
|
887
|
+
def __init__(self, payload: bytes):
|
|
888
|
+
super().__init__()
|
|
889
|
+
self.data = OnInviteRequestCancelledEvent()
|
|
890
|
+
self.data.ParseFromString(payload)
|
|
891
|
+
class ClansRemoteEventListenerOnInviteRequestCancelledEventListener(Listener):
|
|
892
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_INVITE_REQUEST_CANCELLED_EVENT
|
|
893
|
+
def __init__(self, callback):
|
|
894
|
+
super().__init__(callback)
|
|
895
|
+
async def call(self, client, update: ClansRemoteEventListenerOnInviteRequestCancelledEventUpdate):
|
|
896
|
+
await self._callback(client, update)
|
|
897
|
+
class ClansRemoteEventListenerOnInviteRequestCancelledEvent:
|
|
898
|
+
def ClansRemoteEventListenerOnInviteRequestCancelledEvent(self) -> Callable:
|
|
899
|
+
def decorator(func: Callable) -> Callable:
|
|
900
|
+
self._dp.add_listener(ClansRemoteEventListenerOnInviteRequestCancelledEventListener(func))
|
|
901
|
+
return func
|
|
902
|
+
return decorator
|
|
903
|
+
|
|
904
|
+
class ClansRemoteEventListenerOnAssignedRoleEventUpdate(GeneratedUpdate):
|
|
905
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_ASSIGNED_ROLE_EVENT
|
|
906
|
+
def __init__(self, payload: bytes):
|
|
907
|
+
super().__init__()
|
|
908
|
+
self.data = OnAssignedRoleEvent()
|
|
909
|
+
self.data.ParseFromString(payload)
|
|
910
|
+
class ClansRemoteEventListenerOnAssignedRoleEventListener(Listener):
|
|
911
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_ASSIGNED_ROLE_EVENT
|
|
912
|
+
def __init__(self, callback):
|
|
913
|
+
super().__init__(callback)
|
|
914
|
+
async def call(self, client, update: ClansRemoteEventListenerOnAssignedRoleEventUpdate):
|
|
915
|
+
await self._callback(client, update)
|
|
916
|
+
class ClansRemoteEventListenerOnAssignedRoleEvent:
|
|
917
|
+
def ClansRemoteEventListenerOnAssignedRoleEvent(self) -> Callable:
|
|
918
|
+
def decorator(func: Callable) -> Callable:
|
|
919
|
+
self._dp.add_listener(ClansRemoteEventListenerOnAssignedRoleEventListener(func))
|
|
920
|
+
return func
|
|
921
|
+
return decorator
|
|
922
|
+
|
|
923
|
+
class ClansRemoteEventListenerOnPlayerAvatarChangedEventUpdate(GeneratedUpdate):
|
|
924
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_PLAYER_AVATAR_CHANGED_EVENT
|
|
925
|
+
def __init__(self, payload: bytes):
|
|
926
|
+
super().__init__()
|
|
927
|
+
self.data = OnPlayerAvatarChangedEvent()
|
|
928
|
+
self.data.ParseFromString(payload)
|
|
929
|
+
class ClansRemoteEventListenerOnPlayerAvatarChangedEventListener(Listener):
|
|
930
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_PLAYER_AVATAR_CHANGED_EVENT
|
|
931
|
+
def __init__(self, callback):
|
|
932
|
+
super().__init__(callback)
|
|
933
|
+
async def call(self, client, update: ClansRemoteEventListenerOnPlayerAvatarChangedEventUpdate):
|
|
934
|
+
await self._callback(client, update)
|
|
935
|
+
class ClansRemoteEventListenerOnPlayerAvatarChangedEvent:
|
|
936
|
+
def ClansRemoteEventListenerOnPlayerAvatarChangedEvent(self) -> Callable:
|
|
937
|
+
def decorator(func: Callable) -> Callable:
|
|
938
|
+
self._dp.add_listener(ClansRemoteEventListenerOnPlayerAvatarChangedEventListener(func))
|
|
939
|
+
return func
|
|
940
|
+
return decorator
|
|
941
|
+
|
|
942
|
+
class ClansRemoteEventListenerOnOnlineStatusChangedEventUpdate(GeneratedUpdate):
|
|
943
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_ONLINE_STATUS_CHANGED_EVENT
|
|
944
|
+
def __init__(self, payload: bytes):
|
|
945
|
+
super().__init__()
|
|
946
|
+
self.data = OnOnlineStatusChangedEvent()
|
|
947
|
+
self.data.ParseFromString(payload)
|
|
948
|
+
class ClansRemoteEventListenerOnOnlineStatusChangedEventListener(Listener):
|
|
949
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_ONLINE_STATUS_CHANGED_EVENT
|
|
950
|
+
def __init__(self, callback):
|
|
951
|
+
super().__init__(callback)
|
|
952
|
+
async def call(self, client, update: ClansRemoteEventListenerOnOnlineStatusChangedEventUpdate):
|
|
953
|
+
await self._callback(client, update)
|
|
954
|
+
class ClansRemoteEventListenerOnOnlineStatusChangedEvent:
|
|
955
|
+
def ClansRemoteEventListenerOnOnlineStatusChangedEvent(self) -> Callable:
|
|
956
|
+
def decorator(func: Callable) -> Callable:
|
|
957
|
+
self._dp.add_listener(ClansRemoteEventListenerOnOnlineStatusChangedEventListener(func))
|
|
958
|
+
return func
|
|
959
|
+
return decorator
|
|
960
|
+
|
|
961
|
+
class ClansRemoteEventListenerOnPlayerNameChangedEventUpdate(GeneratedUpdate):
|
|
962
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_PLAYER_NAME_CHANGED_EVENT
|
|
963
|
+
def __init__(self, payload: bytes):
|
|
964
|
+
super().__init__()
|
|
965
|
+
self.data = OnPlayerNameChangedEvent()
|
|
966
|
+
self.data.ParseFromString(payload)
|
|
967
|
+
class ClansRemoteEventListenerOnPlayerNameChangedEventListener(Listener):
|
|
968
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_PLAYER_NAME_CHANGED_EVENT
|
|
969
|
+
def __init__(self, callback):
|
|
970
|
+
super().__init__(callback)
|
|
971
|
+
async def call(self, client, update: ClansRemoteEventListenerOnPlayerNameChangedEventUpdate):
|
|
972
|
+
await self._callback(client, update)
|
|
973
|
+
class ClansRemoteEventListenerOnPlayerNameChangedEvent:
|
|
974
|
+
def ClansRemoteEventListenerOnPlayerNameChangedEvent(self) -> Callable:
|
|
975
|
+
def decorator(func: Callable) -> Callable:
|
|
976
|
+
self._dp.add_listener(ClansRemoteEventListenerOnPlayerNameChangedEventListener(func))
|
|
977
|
+
return func
|
|
978
|
+
return decorator
|
|
979
|
+
|
|
980
|
+
class ClansRemoteEventListenerOnKickedEventUpdate(GeneratedUpdate):
|
|
981
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_KICKED_EVENT
|
|
982
|
+
def __init__(self, payload: bytes):
|
|
983
|
+
super().__init__()
|
|
984
|
+
self.data = OnKickedEvent()
|
|
985
|
+
self.data.ParseFromString(payload)
|
|
986
|
+
class ClansRemoteEventListenerOnKickedEventListener(Listener):
|
|
987
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_KICKED_EVENT
|
|
988
|
+
def __init__(self, callback):
|
|
989
|
+
super().__init__(callback)
|
|
990
|
+
async def call(self, client, update: ClansRemoteEventListenerOnKickedEventUpdate):
|
|
991
|
+
await self._callback(client, update)
|
|
992
|
+
class ClansRemoteEventListenerOnKickedEvent:
|
|
993
|
+
def ClansRemoteEventListenerOnKickedEvent(self) -> Callable:
|
|
994
|
+
def decorator(func: Callable) -> Callable:
|
|
995
|
+
self._dp.add_listener(ClansRemoteEventListenerOnKickedEventListener(func))
|
|
996
|
+
return func
|
|
997
|
+
return decorator
|
|
998
|
+
|
|
999
|
+
class ClansRemoteEventListenerOnClanDescriptionChangedEventUpdate(GeneratedUpdate):
|
|
1000
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_CLAN_DESCRIPTION_CHANGED_EVENT
|
|
1001
|
+
def __init__(self, payload: bytes):
|
|
1002
|
+
super().__init__()
|
|
1003
|
+
self.data = OnClanDescriptionChangedEvent()
|
|
1004
|
+
self.data.ParseFromString(payload)
|
|
1005
|
+
class ClansRemoteEventListenerOnClanDescriptionChangedEventListener(Listener):
|
|
1006
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_CLAN_DESCRIPTION_CHANGED_EVENT
|
|
1007
|
+
def __init__(self, callback):
|
|
1008
|
+
super().__init__(callback)
|
|
1009
|
+
async def call(self, client, update: ClansRemoteEventListenerOnClanDescriptionChangedEventUpdate):
|
|
1010
|
+
await self._callback(client, update)
|
|
1011
|
+
class ClansRemoteEventListenerOnClanDescriptionChangedEvent:
|
|
1012
|
+
def ClansRemoteEventListenerOnClanDescriptionChangedEvent(self) -> Callable:
|
|
1013
|
+
def decorator(func: Callable) -> Callable:
|
|
1014
|
+
self._dp.add_listener(ClansRemoteEventListenerOnClanDescriptionChangedEventListener(func))
|
|
1015
|
+
return func
|
|
1016
|
+
return decorator
|
|
1017
|
+
|
|
1018
|
+
class ClansRemoteEventListenerOnPlayerAttributesChangedUpdate(GeneratedUpdate):
|
|
1019
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_PLAYER_ATTRIBUTES_CHANGED
|
|
1020
|
+
def __init__(self, payload: bytes):
|
|
1021
|
+
super().__init__()
|
|
1022
|
+
self.data = OnPlayerAttributesChanged()
|
|
1023
|
+
self.data.ParseFromString(payload)
|
|
1024
|
+
class ClansRemoteEventListenerOnPlayerAttributesChangedListener(Listener):
|
|
1025
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_PLAYER_ATTRIBUTES_CHANGED
|
|
1026
|
+
def __init__(self, callback):
|
|
1027
|
+
super().__init__(callback)
|
|
1028
|
+
async def call(self, client, update: ClansRemoteEventListenerOnPlayerAttributesChangedUpdate):
|
|
1029
|
+
await self._callback(client, update)
|
|
1030
|
+
class ClansRemoteEventListenerOnPlayerAttributesChanged:
|
|
1031
|
+
def ClansRemoteEventListenerOnPlayerAttributesChanged(self) -> Callable:
|
|
1032
|
+
def decorator(func: Callable) -> Callable:
|
|
1033
|
+
self._dp.add_listener(ClansRemoteEventListenerOnPlayerAttributesChangedListener(func))
|
|
1034
|
+
return func
|
|
1035
|
+
return decorator
|
|
1036
|
+
|
|
1037
|
+
class ClansRemoteEventListenerOnClanAvatarChangedEventUpdate(GeneratedUpdate):
|
|
1038
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_CLAN_AVATAR_CHANGED_EVENT
|
|
1039
|
+
def __init__(self, payload: bytes):
|
|
1040
|
+
super().__init__()
|
|
1041
|
+
self.data = OnClanAvatarChangedEvent()
|
|
1042
|
+
self.data.ParseFromString(payload)
|
|
1043
|
+
class ClansRemoteEventListenerOnClanAvatarChangedEventListener(Listener):
|
|
1044
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_CLAN_AVATAR_CHANGED_EVENT
|
|
1045
|
+
def __init__(self, callback):
|
|
1046
|
+
super().__init__(callback)
|
|
1047
|
+
async def call(self, client, update: ClansRemoteEventListenerOnClanAvatarChangedEventUpdate):
|
|
1048
|
+
await self._callback(client, update)
|
|
1049
|
+
class ClansRemoteEventListenerOnClanAvatarChangedEvent:
|
|
1050
|
+
def ClansRemoteEventListenerOnClanAvatarChangedEvent(self) -> Callable:
|
|
1051
|
+
def decorator(func: Callable) -> Callable:
|
|
1052
|
+
self._dp.add_listener(ClansRemoteEventListenerOnClanAvatarChangedEventListener(func))
|
|
1053
|
+
return func
|
|
1054
|
+
return decorator
|
|
1055
|
+
|
|
1056
|
+
class ClansRemoteEventListenerOnInvitedToClanEventUpdate(GeneratedUpdate):
|
|
1057
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_INVITED_TO_CLAN_EVENT
|
|
1058
|
+
def __init__(self, payload: bytes):
|
|
1059
|
+
super().__init__()
|
|
1060
|
+
self.data = OnInvitedToClanEvent()
|
|
1061
|
+
self.data.ParseFromString(payload)
|
|
1062
|
+
class ClansRemoteEventListenerOnInvitedToClanEventListener(Listener):
|
|
1063
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_INVITED_TO_CLAN_EVENT
|
|
1064
|
+
def __init__(self, callback):
|
|
1065
|
+
super().__init__(callback)
|
|
1066
|
+
async def call(self, client, update: ClansRemoteEventListenerOnInvitedToClanEventUpdate):
|
|
1067
|
+
await self._callback(client, update)
|
|
1068
|
+
class ClansRemoteEventListenerOnInvitedToClanEvent:
|
|
1069
|
+
def ClansRemoteEventListenerOnInvitedToClanEvent(self) -> Callable:
|
|
1070
|
+
def decorator(func: Callable) -> Callable:
|
|
1071
|
+
self._dp.add_listener(ClansRemoteEventListenerOnInvitedToClanEventListener(func))
|
|
1072
|
+
return func
|
|
1073
|
+
return decorator
|
|
1074
|
+
|
|
1075
|
+
class ClansRemoteEventListenerOnJoinedToClanUpdate(GeneratedUpdate):
|
|
1076
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_JOINED_TO_CLAN
|
|
1077
|
+
def __init__(self, payload: bytes):
|
|
1078
|
+
super().__init__()
|
|
1079
|
+
self.data = OnJoinedToClanEvent()
|
|
1080
|
+
self.data.ParseFromString(payload)
|
|
1081
|
+
class ClansRemoteEventListenerOnJoinedToClanListener(Listener):
|
|
1082
|
+
event = GeneratedEvent.CLANS_REMOTE_EVENT_LISTENER_ON_JOINED_TO_CLAN
|
|
1083
|
+
def __init__(self, callback):
|
|
1084
|
+
super().__init__(callback)
|
|
1085
|
+
async def call(self, client, update: ClansRemoteEventListenerOnJoinedToClanUpdate):
|
|
1086
|
+
await self._callback(client, update)
|
|
1087
|
+
class ClansRemoteEventListenerOnJoinedToClan:
|
|
1088
|
+
def ClansRemoteEventListenerOnJoinedToClan(self) -> Callable:
|
|
1089
|
+
def decorator(func: Callable) -> Callable:
|
|
1090
|
+
self._dp.add_listener(ClansRemoteEventListenerOnJoinedToClanListener(func))
|
|
1091
|
+
return func
|
|
1092
|
+
return decorator
|
|
1093
|
+
|
|
1094
|
+
class InventoryRemoteEventListenerOnInventoryChangedUpdate(GeneratedUpdate):
|
|
1095
|
+
event = GeneratedEvent.INVENTORY_REMOTE_EVENT_LISTENER_ON_INVENTORY_CHANGED
|
|
1096
|
+
def __init__(self, payload: bytes):
|
|
1097
|
+
super().__init__()
|
|
1098
|
+
self.data = OnInventoryChangedEvent()
|
|
1099
|
+
self.data.ParseFromString(payload)
|
|
1100
|
+
class InventoryRemoteEventListenerOnInventoryChangedListener(Listener):
|
|
1101
|
+
event = GeneratedEvent.INVENTORY_REMOTE_EVENT_LISTENER_ON_INVENTORY_CHANGED
|
|
1102
|
+
def __init__(self, callback):
|
|
1103
|
+
super().__init__(callback)
|
|
1104
|
+
async def call(self, client, update: InventoryRemoteEventListenerOnInventoryChangedUpdate):
|
|
1105
|
+
await self._callback(client, update)
|
|
1106
|
+
class InventoryRemoteEventListenerOnInventoryChanged:
|
|
1107
|
+
def InventoryRemoteEventListenerOnInventoryChanged(self) -> Callable:
|
|
1108
|
+
def decorator(func: Callable) -> Callable:
|
|
1109
|
+
self._dp.add_listener(InventoryRemoteEventListenerOnInventoryChangedListener(func))
|
|
1110
|
+
return func
|
|
1111
|
+
return decorator
|
|
1112
|
+
|
|
1113
|
+
class InventoryRemoteEventListenerOnCouponActivatedUpdate(GeneratedUpdate):
|
|
1114
|
+
event = GeneratedEvent.INVENTORY_REMOTE_EVENT_LISTENER_ON_COUPON_ACTIVATED
|
|
1115
|
+
def __init__(self, payload: bytes):
|
|
1116
|
+
super().__init__()
|
|
1117
|
+
self.data = OnCouponActivatedEvent()
|
|
1118
|
+
self.data.ParseFromString(payload)
|
|
1119
|
+
class InventoryRemoteEventListenerOnCouponActivatedListener(Listener):
|
|
1120
|
+
event = GeneratedEvent.INVENTORY_REMOTE_EVENT_LISTENER_ON_COUPON_ACTIVATED
|
|
1121
|
+
def __init__(self, callback):
|
|
1122
|
+
super().__init__(callback)
|
|
1123
|
+
async def call(self, client, update: InventoryRemoteEventListenerOnCouponActivatedUpdate):
|
|
1124
|
+
await self._callback(client, update)
|
|
1125
|
+
class InventoryRemoteEventListenerOnCouponActivated:
|
|
1126
|
+
def InventoryRemoteEventListenerOnCouponActivated(self) -> Callable:
|
|
1127
|
+
def decorator(func: Callable) -> Callable:
|
|
1128
|
+
self._dp.add_listener(InventoryRemoteEventListenerOnCouponActivatedListener(func))
|
|
1129
|
+
return func
|
|
1130
|
+
return decorator
|
|
1131
|
+
|
|
1132
|
+
class MatchesRemoteEventListenerOnMatchFinishedUpdate(GeneratedUpdate):
|
|
1133
|
+
event = GeneratedEvent.MATCHES_REMOTE_EVENT_LISTENER_ON_MATCH_FINISHED
|
|
1134
|
+
def __init__(self, payload: bytes):
|
|
1135
|
+
super().__init__()
|
|
1136
|
+
self.data = OnMatchFinishedEvent()
|
|
1137
|
+
self.data.ParseFromString(payload)
|
|
1138
|
+
class MatchesRemoteEventListenerOnMatchFinishedListener(Listener):
|
|
1139
|
+
event = GeneratedEvent.MATCHES_REMOTE_EVENT_LISTENER_ON_MATCH_FINISHED
|
|
1140
|
+
def __init__(self, callback):
|
|
1141
|
+
super().__init__(callback)
|
|
1142
|
+
async def call(self, client, update: MatchesRemoteEventListenerOnMatchFinishedUpdate):
|
|
1143
|
+
await self._callback(client, update)
|
|
1144
|
+
class MatchesRemoteEventListenerOnMatchFinished:
|
|
1145
|
+
def MatchesRemoteEventListenerOnMatchFinished(self) -> Callable:
|
|
1146
|
+
def decorator(func: Callable) -> Callable:
|
|
1147
|
+
self._dp.add_listener(MatchesRemoteEventListenerOnMatchFinishedListener(func))
|
|
1148
|
+
return func
|
|
1149
|
+
return decorator
|
|
1150
|
+
|
|
1151
|
+
class FriendsRemoteEventListenerOnFriendNameChangedEventUpdate(GeneratedUpdate):
|
|
1152
|
+
event = GeneratedEvent.FRIENDS_REMOTE_EVENT_LISTENER_ON_FRIEND_NAME_CHANGED_EVENT
|
|
1153
|
+
def __init__(self, payload: bytes):
|
|
1154
|
+
super().__init__()
|
|
1155
|
+
self.data = OnFriendNameChangedEvent()
|
|
1156
|
+
self.data.ParseFromString(payload)
|
|
1157
|
+
class FriendsRemoteEventListenerOnFriendNameChangedEventListener(Listener):
|
|
1158
|
+
event = GeneratedEvent.FRIENDS_REMOTE_EVENT_LISTENER_ON_FRIEND_NAME_CHANGED_EVENT
|
|
1159
|
+
def __init__(self, callback):
|
|
1160
|
+
super().__init__(callback)
|
|
1161
|
+
async def call(self, client, update: FriendsRemoteEventListenerOnFriendNameChangedEventUpdate):
|
|
1162
|
+
await self._callback(client, update)
|
|
1163
|
+
class FriendsRemoteEventListenerOnFriendNameChangedEvent:
|
|
1164
|
+
def FriendsRemoteEventListenerOnFriendNameChangedEvent(self) -> Callable:
|
|
1165
|
+
def decorator(func: Callable) -> Callable:
|
|
1166
|
+
self._dp.add_listener(FriendsRemoteEventListenerOnFriendNameChangedEventListener(func))
|
|
1167
|
+
return func
|
|
1168
|
+
return decorator
|
|
1169
|
+
|
|
1170
|
+
class FriendsRemoteEventListenerOnPlayerStatusChangedEventUpdate(GeneratedUpdate):
|
|
1171
|
+
event = GeneratedEvent.FRIENDS_REMOTE_EVENT_LISTENER_ON_PLAYER_STATUS_CHANGED_EVENT
|
|
1172
|
+
def __init__(self, payload: bytes):
|
|
1173
|
+
super().__init__()
|
|
1174
|
+
self.data = OnPlayerStatusChangedEvent()
|
|
1175
|
+
self.data.ParseFromString(payload)
|
|
1176
|
+
class FriendsRemoteEventListenerOnPlayerStatusChangedEventListener(Listener):
|
|
1177
|
+
event = GeneratedEvent.FRIENDS_REMOTE_EVENT_LISTENER_ON_PLAYER_STATUS_CHANGED_EVENT
|
|
1178
|
+
def __init__(self, callback):
|
|
1179
|
+
super().__init__(callback)
|
|
1180
|
+
async def call(self, client, update: FriendsRemoteEventListenerOnPlayerStatusChangedEventUpdate):
|
|
1181
|
+
await self._callback(client, update)
|
|
1182
|
+
class FriendsRemoteEventListenerOnPlayerStatusChangedEvent:
|
|
1183
|
+
def FriendsRemoteEventListenerOnPlayerStatusChangedEvent(self) -> Callable:
|
|
1184
|
+
def decorator(func: Callable) -> Callable:
|
|
1185
|
+
self._dp.add_listener(FriendsRemoteEventListenerOnPlayerStatusChangedEventListener(func))
|
|
1186
|
+
return func
|
|
1187
|
+
return decorator
|
|
1188
|
+
|
|
1189
|
+
class FriendsRemoteEventListenerOnPlayerAttributesChangedUpdate(GeneratedUpdate):
|
|
1190
|
+
event = GeneratedEvent.FRIENDS_REMOTE_EVENT_LISTENER_ON_PLAYER_ATTRIBUTES_CHANGED
|
|
1191
|
+
def __init__(self, payload: bytes):
|
|
1192
|
+
super().__init__()
|
|
1193
|
+
self.data = OnPlayerAttributesChanged()
|
|
1194
|
+
self.data.ParseFromString(payload)
|
|
1195
|
+
class FriendsRemoteEventListenerOnPlayerAttributesChangedListener(Listener):
|
|
1196
|
+
event = GeneratedEvent.FRIENDS_REMOTE_EVENT_LISTENER_ON_PLAYER_ATTRIBUTES_CHANGED
|
|
1197
|
+
def __init__(self, callback):
|
|
1198
|
+
super().__init__(callback)
|
|
1199
|
+
async def call(self, client, update: FriendsRemoteEventListenerOnPlayerAttributesChangedUpdate):
|
|
1200
|
+
await self._callback(client, update)
|
|
1201
|
+
class FriendsRemoteEventListenerOnPlayerAttributesChanged:
|
|
1202
|
+
def FriendsRemoteEventListenerOnPlayerAttributesChanged(self) -> Callable:
|
|
1203
|
+
def decorator(func: Callable) -> Callable:
|
|
1204
|
+
self._dp.add_listener(FriendsRemoteEventListenerOnPlayerAttributesChangedListener(func))
|
|
1205
|
+
return func
|
|
1206
|
+
return decorator
|
|
1207
|
+
|
|
1208
|
+
class FriendsRemoteEventListenerOnFriendRemovedEventUpdate(GeneratedUpdate):
|
|
1209
|
+
event = GeneratedEvent.FRIENDS_REMOTE_EVENT_LISTENER_ON_FRIEND_REMOVED_EVENT
|
|
1210
|
+
def __init__(self, payload: bytes):
|
|
1211
|
+
super().__init__()
|
|
1212
|
+
self.data = OnFriendRemovedEvent()
|
|
1213
|
+
self.data.ParseFromString(payload)
|
|
1214
|
+
class FriendsRemoteEventListenerOnFriendRemovedEventListener(Listener):
|
|
1215
|
+
event = GeneratedEvent.FRIENDS_REMOTE_EVENT_LISTENER_ON_FRIEND_REMOVED_EVENT
|
|
1216
|
+
def __init__(self, callback):
|
|
1217
|
+
super().__init__(callback)
|
|
1218
|
+
async def call(self, client, update: FriendsRemoteEventListenerOnFriendRemovedEventUpdate):
|
|
1219
|
+
await self._callback(client, update)
|
|
1220
|
+
class FriendsRemoteEventListenerOnFriendRemovedEvent:
|
|
1221
|
+
def FriendsRemoteEventListenerOnFriendRemovedEvent(self) -> Callable:
|
|
1222
|
+
def decorator(func: Callable) -> Callable:
|
|
1223
|
+
self._dp.add_listener(FriendsRemoteEventListenerOnFriendRemovedEventListener(func))
|
|
1224
|
+
return func
|
|
1225
|
+
return decorator
|
|
1226
|
+
|
|
1227
|
+
class FriendsRemoteEventListenerOnRevokeFriendshipRequestEventUpdate(GeneratedUpdate):
|
|
1228
|
+
event = GeneratedEvent.FRIENDS_REMOTE_EVENT_LISTENER_ON_REVOKE_FRIENDSHIP_REQUEST_EVENT
|
|
1229
|
+
def __init__(self, payload: bytes):
|
|
1230
|
+
super().__init__()
|
|
1231
|
+
self.data = OnRevokeFriendshipRequestEvent()
|
|
1232
|
+
self.data.ParseFromString(payload)
|
|
1233
|
+
class FriendsRemoteEventListenerOnRevokeFriendshipRequestEventListener(Listener):
|
|
1234
|
+
event = GeneratedEvent.FRIENDS_REMOTE_EVENT_LISTENER_ON_REVOKE_FRIENDSHIP_REQUEST_EVENT
|
|
1235
|
+
def __init__(self, callback):
|
|
1236
|
+
super().__init__(callback)
|
|
1237
|
+
async def call(self, client, update: FriendsRemoteEventListenerOnRevokeFriendshipRequestEventUpdate):
|
|
1238
|
+
await self._callback(client, update)
|
|
1239
|
+
class FriendsRemoteEventListenerOnRevokeFriendshipRequestEvent:
|
|
1240
|
+
def FriendsRemoteEventListenerOnRevokeFriendshipRequestEvent(self) -> Callable:
|
|
1241
|
+
def decorator(func: Callable) -> Callable:
|
|
1242
|
+
self._dp.add_listener(FriendsRemoteEventListenerOnRevokeFriendshipRequestEventListener(func))
|
|
1243
|
+
return func
|
|
1244
|
+
return decorator
|
|
1245
|
+
|
|
1246
|
+
class FriendsRemoteEventListenerOnFriendAddedEventUpdate(GeneratedUpdate):
|
|
1247
|
+
event = GeneratedEvent.FRIENDS_REMOTE_EVENT_LISTENER_ON_FRIEND_ADDED_EVENT
|
|
1248
|
+
def __init__(self, payload: bytes):
|
|
1249
|
+
super().__init__()
|
|
1250
|
+
self.data = OnFriendAddedEvent()
|
|
1251
|
+
self.data.ParseFromString(payload)
|
|
1252
|
+
class FriendsRemoteEventListenerOnFriendAddedEventListener(Listener):
|
|
1253
|
+
event = GeneratedEvent.FRIENDS_REMOTE_EVENT_LISTENER_ON_FRIEND_ADDED_EVENT
|
|
1254
|
+
def __init__(self, callback):
|
|
1255
|
+
super().__init__(callback)
|
|
1256
|
+
async def call(self, client, update: FriendsRemoteEventListenerOnFriendAddedEventUpdate):
|
|
1257
|
+
await self._callback(client, update)
|
|
1258
|
+
class FriendsRemoteEventListenerOnFriendAddedEvent:
|
|
1259
|
+
def FriendsRemoteEventListenerOnFriendAddedEvent(self) -> Callable:
|
|
1260
|
+
def decorator(func: Callable) -> Callable:
|
|
1261
|
+
self._dp.add_listener(FriendsRemoteEventListenerOnFriendAddedEventListener(func))
|
|
1262
|
+
return func
|
|
1263
|
+
return decorator
|
|
1264
|
+
|
|
1265
|
+
class FriendsRemoteEventListenerOnNewFriendshipRequestEventUpdate(GeneratedUpdate):
|
|
1266
|
+
event = GeneratedEvent.FRIENDS_REMOTE_EVENT_LISTENER_ON_NEW_FRIENDSHIP_REQUEST_EVENT
|
|
1267
|
+
def __init__(self, payload: bytes):
|
|
1268
|
+
super().__init__()
|
|
1269
|
+
self.data = OnNewFriendshipRequestEvent()
|
|
1270
|
+
self.data.ParseFromString(payload)
|
|
1271
|
+
class FriendsRemoteEventListenerOnNewFriendshipRequestEventListener(Listener):
|
|
1272
|
+
event = GeneratedEvent.FRIENDS_REMOTE_EVENT_LISTENER_ON_NEW_FRIENDSHIP_REQUEST_EVENT
|
|
1273
|
+
def __init__(self, callback):
|
|
1274
|
+
super().__init__(callback)
|
|
1275
|
+
async def call(self, client, update: FriendsRemoteEventListenerOnNewFriendshipRequestEventUpdate):
|
|
1276
|
+
await self._callback(client, update)
|
|
1277
|
+
class FriendsRemoteEventListenerOnNewFriendshipRequestEvent:
|
|
1278
|
+
def FriendsRemoteEventListenerOnNewFriendshipRequestEvent(self) -> Callable:
|
|
1279
|
+
def decorator(func: Callable) -> Callable:
|
|
1280
|
+
self._dp.add_listener(FriendsRemoteEventListenerOnNewFriendshipRequestEventListener(func))
|
|
1281
|
+
return func
|
|
1282
|
+
return decorator
|
|
1283
|
+
|
|
1284
|
+
class FriendsRemoteEventListenerOnFriendAvatarChangedEventUpdate(GeneratedUpdate):
|
|
1285
|
+
event = GeneratedEvent.FRIENDS_REMOTE_EVENT_LISTENER_ON_FRIEND_AVATAR_CHANGED_EVENT
|
|
1286
|
+
def __init__(self, payload: bytes):
|
|
1287
|
+
super().__init__()
|
|
1288
|
+
self.data = OnFriendAvatarChangedEvent()
|
|
1289
|
+
self.data.ParseFromString(payload)
|
|
1290
|
+
class FriendsRemoteEventListenerOnFriendAvatarChangedEventListener(Listener):
|
|
1291
|
+
event = GeneratedEvent.FRIENDS_REMOTE_EVENT_LISTENER_ON_FRIEND_AVATAR_CHANGED_EVENT
|
|
1292
|
+
def __init__(self, callback):
|
|
1293
|
+
super().__init__(callback)
|
|
1294
|
+
async def call(self, client, update: FriendsRemoteEventListenerOnFriendAvatarChangedEventUpdate):
|
|
1295
|
+
await self._callback(client, update)
|
|
1296
|
+
class FriendsRemoteEventListenerOnFriendAvatarChangedEvent:
|
|
1297
|
+
def FriendsRemoteEventListenerOnFriendAvatarChangedEvent(self) -> Callable:
|
|
1298
|
+
def decorator(func: Callable) -> Callable:
|
|
1299
|
+
self._dp.add_listener(FriendsRemoteEventListenerOnFriendAvatarChangedEventListener(func))
|
|
1300
|
+
return func
|
|
1301
|
+
return decorator
|
|
1302
|
+
|
|
1303
|
+
class MessagesRemoteEventListenerOnMsgFromFriendEventUpdate(GeneratedUpdate):
|
|
1304
|
+
event = GeneratedEvent.MESSAGES_REMOTE_EVENT_LISTENER_ON_MSG_FROM_FRIEND_EVENT
|
|
1305
|
+
def __init__(self, payload: bytes):
|
|
1306
|
+
super().__init__()
|
|
1307
|
+
self.data = OnMsgFromFriendEvent()
|
|
1308
|
+
self.data.ParseFromString(payload)
|
|
1309
|
+
class MessagesRemoteEventListenerOnMsgFromFriendEventListener(Listener):
|
|
1310
|
+
event = GeneratedEvent.MESSAGES_REMOTE_EVENT_LISTENER_ON_MSG_FROM_FRIEND_EVENT
|
|
1311
|
+
def __init__(self, callback):
|
|
1312
|
+
super().__init__(callback)
|
|
1313
|
+
async def call(self, client, update: MessagesRemoteEventListenerOnMsgFromFriendEventUpdate):
|
|
1314
|
+
await self._callback(client, update)
|
|
1315
|
+
class MessagesRemoteEventListenerOnMsgFromFriendEvent:
|
|
1316
|
+
def MessagesRemoteEventListenerOnMsgFromFriendEvent(self) -> Callable:
|
|
1317
|
+
def decorator(func: Callable) -> Callable:
|
|
1318
|
+
self._dp.add_listener(MessagesRemoteEventListenerOnMsgFromFriendEventListener(func))
|
|
1319
|
+
return func
|
|
1320
|
+
return decorator
|
|
1321
|
+
|
|
1322
|
+
class ClanStatsRemoteEventListenerOnClanStatsUpdatedUpdate(GeneratedUpdate):
|
|
1323
|
+
event = GeneratedEvent.CLAN_STATS_REMOTE_EVENT_LISTENER_ON_CLAN_STATS_UPDATED
|
|
1324
|
+
def __init__(self, payload: bytes):
|
|
1325
|
+
super().__init__()
|
|
1326
|
+
self.data = OnClanStatsUpdatedEvent()
|
|
1327
|
+
self.data.ParseFromString(payload)
|
|
1328
|
+
class ClanStatsRemoteEventListenerOnClanStatsUpdatedListener(Listener):
|
|
1329
|
+
event = GeneratedEvent.CLAN_STATS_REMOTE_EVENT_LISTENER_ON_CLAN_STATS_UPDATED
|
|
1330
|
+
def __init__(self, callback):
|
|
1331
|
+
super().__init__(callback)
|
|
1332
|
+
async def call(self, client, update: ClanStatsRemoteEventListenerOnClanStatsUpdatedUpdate):
|
|
1333
|
+
await self._callback(client, update)
|
|
1334
|
+
class ClanStatsRemoteEventListenerOnClanStatsUpdated:
|
|
1335
|
+
def ClanStatsRemoteEventListenerOnClanStatsUpdated(self) -> Callable:
|
|
1336
|
+
def decorator(func: Callable) -> Callable:
|
|
1337
|
+
self._dp.add_listener(ClanStatsRemoteEventListenerOnClanStatsUpdatedListener(func))
|
|
1338
|
+
return func
|
|
1339
|
+
return decorator
|
|
1340
|
+
|
|
1341
|
+
class GameEventRemoteEventListenerOnGamePassChangedUpdate(GeneratedUpdate):
|
|
1342
|
+
event = GeneratedEvent.GAME_EVENT_REMOTE_EVENT_LISTENER_ON_GAME_PASS_CHANGED
|
|
1343
|
+
def __init__(self, payload: bytes):
|
|
1344
|
+
super().__init__()
|
|
1345
|
+
self.data = OnGamePassChangedEvent()
|
|
1346
|
+
self.data.ParseFromString(payload)
|
|
1347
|
+
class GameEventRemoteEventListenerOnGamePassChangedListener(Listener):
|
|
1348
|
+
event = GeneratedEvent.GAME_EVENT_REMOTE_EVENT_LISTENER_ON_GAME_PASS_CHANGED
|
|
1349
|
+
def __init__(self, callback):
|
|
1350
|
+
super().__init__(callback)
|
|
1351
|
+
async def call(self, client, update: GameEventRemoteEventListenerOnGamePassChangedUpdate):
|
|
1352
|
+
await self._callback(client, update)
|
|
1353
|
+
class GameEventRemoteEventListenerOnGamePassChanged:
|
|
1354
|
+
def GameEventRemoteEventListenerOnGamePassChanged(self) -> Callable:
|
|
1355
|
+
def decorator(func: Callable) -> Callable:
|
|
1356
|
+
self._dp.add_listener(GameEventRemoteEventListenerOnGamePassChangedListener(func))
|
|
1357
|
+
return func
|
|
1358
|
+
return decorator
|
|
1359
|
+
|
|
1360
|
+
class GameEventRemoteEventListenerOnProgressGameEventUpdate(GeneratedUpdate):
|
|
1361
|
+
event = GeneratedEvent.GAME_EVENT_REMOTE_EVENT_LISTENER_ON_PROGRESS_GAME_EVENT
|
|
1362
|
+
def __init__(self, payload: bytes):
|
|
1363
|
+
super().__init__()
|
|
1364
|
+
self.data = OnProgressGameEvent()
|
|
1365
|
+
self.data.ParseFromString(payload)
|
|
1366
|
+
class GameEventRemoteEventListenerOnProgressGameEventListener(Listener):
|
|
1367
|
+
event = GeneratedEvent.GAME_EVENT_REMOTE_EVENT_LISTENER_ON_PROGRESS_GAME_EVENT
|
|
1368
|
+
def __init__(self, callback):
|
|
1369
|
+
super().__init__(callback)
|
|
1370
|
+
async def call(self, client, update: GameEventRemoteEventListenerOnProgressGameEventUpdate):
|
|
1371
|
+
await self._callback(client, update)
|
|
1372
|
+
class GameEventRemoteEventListenerOnProgressGameEvent:
|
|
1373
|
+
def GameEventRemoteEventListenerOnProgressGameEvent(self) -> Callable:
|
|
1374
|
+
def decorator(func: Callable) -> Callable:
|
|
1375
|
+
self._dp.add_listener(GameEventRemoteEventListenerOnProgressGameEventListener(func))
|
|
1376
|
+
return func
|
|
1377
|
+
return decorator
|
|
1378
|
+
|
|
1379
|
+
class GameEventRemoteEventListenerOnProgressChallengeEventUpdate(GeneratedUpdate):
|
|
1380
|
+
event = GeneratedEvent.GAME_EVENT_REMOTE_EVENT_LISTENER_ON_PROGRESS_CHALLENGE_EVENT
|
|
1381
|
+
def __init__(self, payload: bytes):
|
|
1382
|
+
super().__init__()
|
|
1383
|
+
self.data = OnProgressChallengeEvent()
|
|
1384
|
+
self.data.ParseFromString(payload)
|
|
1385
|
+
class GameEventRemoteEventListenerOnProgressChallengeEventListener(Listener):
|
|
1386
|
+
event = GeneratedEvent.GAME_EVENT_REMOTE_EVENT_LISTENER_ON_PROGRESS_CHALLENGE_EVENT
|
|
1387
|
+
def __init__(self, callback):
|
|
1388
|
+
super().__init__(callback)
|
|
1389
|
+
async def call(self, client, update: GameEventRemoteEventListenerOnProgressChallengeEventUpdate):
|
|
1390
|
+
await self._callback(client, update)
|
|
1391
|
+
class GameEventRemoteEventListenerOnProgressChallengeEvent:
|
|
1392
|
+
def GameEventRemoteEventListenerOnProgressChallengeEvent(self) -> Callable:
|
|
1393
|
+
def decorator(func: Callable) -> Callable:
|
|
1394
|
+
self._dp.add_listener(GameEventRemoteEventListenerOnProgressChallengeEventListener(func))
|
|
1395
|
+
return func
|
|
1396
|
+
return decorator
|
|
1397
|
+
|
|
1398
|
+
class ClanMessagesRemoteEventListenerOnIncomingClanChatMessageEventUpdate(GeneratedUpdate):
|
|
1399
|
+
event = GeneratedEvent.CLAN_MESSAGES_REMOTE_EVENT_LISTENER_ON_INCOMING_CLAN_CHAT_MESSAGE_EVENT
|
|
1400
|
+
def __init__(self, payload: bytes):
|
|
1401
|
+
super().__init__()
|
|
1402
|
+
self.data = OnIncomingClanChatMessageEvent()
|
|
1403
|
+
self.data.ParseFromString(payload)
|
|
1404
|
+
class ClanMessagesRemoteEventListenerOnIncomingClanChatMessageEventListener(Listener):
|
|
1405
|
+
event = GeneratedEvent.CLAN_MESSAGES_REMOTE_EVENT_LISTENER_ON_INCOMING_CLAN_CHAT_MESSAGE_EVENT
|
|
1406
|
+
def __init__(self, callback):
|
|
1407
|
+
super().__init__(callback)
|
|
1408
|
+
async def call(self, client, update: ClanMessagesRemoteEventListenerOnIncomingClanChatMessageEventUpdate):
|
|
1409
|
+
await self._callback(client, update)
|
|
1410
|
+
class ClanMessagesRemoteEventListenerOnIncomingClanChatMessageEvent:
|
|
1411
|
+
def ClanMessagesRemoteEventListenerOnIncomingClanChatMessageEvent(self) -> Callable:
|
|
1412
|
+
def decorator(func: Callable) -> Callable:
|
|
1413
|
+
self._dp.add_listener(ClanMessagesRemoteEventListenerOnIncomingClanChatMessageEventListener(func))
|
|
1414
|
+
return func
|
|
1415
|
+
return decorator
|
|
1416
|
+
|
|
1417
|
+
class AdsRemoteEventListenerOnAdRewardEventUpdate(GeneratedUpdate):
|
|
1418
|
+
event = GeneratedEvent.ADS_REMOTE_EVENT_LISTENER_ON_AD_REWARD_EVENT
|
|
1419
|
+
def __init__(self, payload: bytes):
|
|
1420
|
+
super().__init__()
|
|
1421
|
+
self.data = OnAdRewardEvent()
|
|
1422
|
+
self.data.ParseFromString(payload)
|
|
1423
|
+
class AdsRemoteEventListenerOnAdRewardEventListener(Listener):
|
|
1424
|
+
event = GeneratedEvent.ADS_REMOTE_EVENT_LISTENER_ON_AD_REWARD_EVENT
|
|
1425
|
+
def __init__(self, callback):
|
|
1426
|
+
super().__init__(callback)
|
|
1427
|
+
async def call(self, client, update: AdsRemoteEventListenerOnAdRewardEventUpdate):
|
|
1428
|
+
await self._callback(client, update)
|
|
1429
|
+
class AdsRemoteEventListenerOnAdRewardEvent:
|
|
1430
|
+
def AdsRemoteEventListenerOnAdRewardEvent(self) -> Callable:
|
|
1431
|
+
def decorator(func: Callable) -> Callable:
|
|
1432
|
+
self._dp.add_listener(AdsRemoteEventListenerOnAdRewardEventListener(func))
|
|
1433
|
+
return func
|
|
1434
|
+
return decorator
|
|
1435
|
+
|
|
1436
|
+
class PlayerStatsRemoteEventListenerOnStatsUpdatedEventUpdate(GeneratedUpdate):
|
|
1437
|
+
event = GeneratedEvent.PLAYER_STATS_REMOTE_EVENT_LISTENER_ON_STATS_UPDATED_EVENT
|
|
1438
|
+
def __init__(self, payload: bytes):
|
|
1439
|
+
super().__init__()
|
|
1440
|
+
self.data = OnStatsUpdatedEvent()
|
|
1441
|
+
self.data.ParseFromString(payload)
|
|
1442
|
+
class PlayerStatsRemoteEventListenerOnStatsUpdatedEventListener(Listener):
|
|
1443
|
+
event = GeneratedEvent.PLAYER_STATS_REMOTE_EVENT_LISTENER_ON_STATS_UPDATED_EVENT
|
|
1444
|
+
def __init__(self, callback):
|
|
1445
|
+
super().__init__(callback)
|
|
1446
|
+
async def call(self, client, update: PlayerStatsRemoteEventListenerOnStatsUpdatedEventUpdate):
|
|
1447
|
+
await self._callback(client, update)
|
|
1448
|
+
class PlayerStatsRemoteEventListenerOnStatsUpdatedEvent:
|
|
1449
|
+
def PlayerStatsRemoteEventListenerOnStatsUpdatedEvent(self) -> Callable:
|
|
1450
|
+
def decorator(func: Callable) -> Callable:
|
|
1451
|
+
self._dp.add_listener(PlayerStatsRemoteEventListenerOnStatsUpdatedEventListener(func))
|
|
1452
|
+
return func
|
|
1453
|
+
return decorator
|
|
1454
|
+
|
|
1455
|
+
class MatchmakingRemoteListenerOnMatchmakingProgressUpdate(GeneratedUpdate):
|
|
1456
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_LISTENER_ON_MATCHMAKING_PROGRESS
|
|
1457
|
+
def __init__(self, payload: bytes):
|
|
1458
|
+
super().__init__()
|
|
1459
|
+
self.data = EEBEGEFGBEBEGEH()
|
|
1460
|
+
self.data.ParseFromString(payload)
|
|
1461
|
+
class MatchmakingRemoteListenerOnMatchmakingProgressListener(Listener):
|
|
1462
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_LISTENER_ON_MATCHMAKING_PROGRESS
|
|
1463
|
+
def __init__(self, callback):
|
|
1464
|
+
super().__init__(callback)
|
|
1465
|
+
async def call(self, client, update: MatchmakingRemoteListenerOnMatchmakingProgressUpdate):
|
|
1466
|
+
await self._callback(client, update)
|
|
1467
|
+
class MatchmakingRemoteListenerOnMatchmakingProgress:
|
|
1468
|
+
def MatchmakingRemoteListenerOnMatchmakingProgress(self) -> Callable:
|
|
1469
|
+
def decorator(func: Callable) -> Callable:
|
|
1470
|
+
self._dp.add_listener(MatchmakingRemoteListenerOnMatchmakingProgressListener(func))
|
|
1471
|
+
return func
|
|
1472
|
+
return decorator
|
|
1473
|
+
|
|
1474
|
+
class MatchmakingRemoteListenerOnPlayersConfirmedUpdate(GeneratedUpdate):
|
|
1475
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_LISTENER_ON_PLAYERS_CONFIRMED
|
|
1476
|
+
def __init__(self, payload: bytes):
|
|
1477
|
+
super().__init__()
|
|
1478
|
+
self.data = BEBFABBECGCAFCH()
|
|
1479
|
+
self.data.ParseFromString(payload)
|
|
1480
|
+
class MatchmakingRemoteListenerOnPlayersConfirmedListener(Listener):
|
|
1481
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_LISTENER_ON_PLAYERS_CONFIRMED
|
|
1482
|
+
def __init__(self, callback):
|
|
1483
|
+
super().__init__(callback)
|
|
1484
|
+
async def call(self, client, update: MatchmakingRemoteListenerOnPlayersConfirmedUpdate):
|
|
1485
|
+
await self._callback(client, update)
|
|
1486
|
+
class MatchmakingRemoteListenerOnPlayersConfirmed:
|
|
1487
|
+
def MatchmakingRemoteListenerOnPlayersConfirmed(self) -> Callable:
|
|
1488
|
+
def decorator(func: Callable) -> Callable:
|
|
1489
|
+
self._dp.add_listener(MatchmakingRemoteListenerOnPlayersConfirmedListener(func))
|
|
1490
|
+
return func
|
|
1491
|
+
return decorator
|
|
1492
|
+
|
|
1493
|
+
class MatchmakingRemoteListenerOnMatchmakingDoneUpdate(GeneratedUpdate):
|
|
1494
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_LISTENER_ON_MATCHMAKING_DONE
|
|
1495
|
+
def __init__(self, payload: bytes):
|
|
1496
|
+
super().__init__()
|
|
1497
|
+
self.data = AGCBFBCDCGGECGA()
|
|
1498
|
+
self.data.ParseFromString(payload)
|
|
1499
|
+
class MatchmakingRemoteListenerOnMatchmakingDoneListener(Listener):
|
|
1500
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_LISTENER_ON_MATCHMAKING_DONE
|
|
1501
|
+
def __init__(self, callback):
|
|
1502
|
+
super().__init__(callback)
|
|
1503
|
+
async def call(self, client, update: MatchmakingRemoteListenerOnMatchmakingDoneUpdate):
|
|
1504
|
+
await self._callback(client, update)
|
|
1505
|
+
class MatchmakingRemoteListenerOnMatchmakingDone:
|
|
1506
|
+
def MatchmakingRemoteListenerOnMatchmakingDone(self) -> Callable:
|
|
1507
|
+
def decorator(func: Callable) -> Callable:
|
|
1508
|
+
self._dp.add_listener(MatchmakingRemoteListenerOnMatchmakingDoneListener(func))
|
|
1509
|
+
return func
|
|
1510
|
+
return decorator
|
|
1511
|
+
|
|
1512
|
+
class MatchmakingRemoteListenerOnMatchmakingFailUpdate(GeneratedUpdate):
|
|
1513
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_LISTENER_ON_MATCHMAKING_FAIL
|
|
1514
|
+
def __init__(self, payload: bytes):
|
|
1515
|
+
super().__init__()
|
|
1516
|
+
self.data = CFCGDGEAEHDEABF()
|
|
1517
|
+
self.data.ParseFromString(payload)
|
|
1518
|
+
class MatchmakingRemoteListenerOnMatchmakingFailListener(Listener):
|
|
1519
|
+
event = GeneratedEvent.MATCHMAKING_REMOTE_LISTENER_ON_MATCHMAKING_FAIL
|
|
1520
|
+
def __init__(self, callback):
|
|
1521
|
+
super().__init__(callback)
|
|
1522
|
+
async def call(self, client, update: MatchmakingRemoteListenerOnMatchmakingFailUpdate):
|
|
1523
|
+
await self._callback(client, update)
|
|
1524
|
+
class MatchmakingRemoteListenerOnMatchmakingFail:
|
|
1525
|
+
def MatchmakingRemoteListenerOnMatchmakingFail(self) -> Callable:
|
|
1526
|
+
def decorator(func: Callable) -> Callable:
|
|
1527
|
+
self._dp.add_listener(MatchmakingRemoteListenerOnMatchmakingFailListener(func))
|
|
1528
|
+
return func
|
|
1529
|
+
return decorator
|
|
1530
|
+
|
|
1531
|
+
class GeneratedEvents(MarketplaceRemoteEventListenerOnPlayerRequestOpened,MarketplaceRemoteEventListenerOnTradeUpdated,MarketplaceRemoteEventListenerOnTradeRequestOpened,MarketplaceRemoteEventListenerOnPlayerRequestClosed,MarketplaceRemoteEventListenerOnTradeRequestClosed,SystemMessagesRemoteEventListenerOnSystemMessageReceived,MatchmakingRemoteEventListenerOnRevokeInviteToLobbyEvent,MatchmakingRemoteEventListenerOnNewSpectatorInvitedToLobbyEvent,MatchmakingRemoteEventListenerOnLobbyPhotonGameChangedEvent,MatchmakingRemoteEventListenerOnLobbyMaxMembersChangedEvent,MatchmakingRemoteEventListenerOnLobbyDataChangedEvent,MatchmakingRemoteEventListenerOnLobbyTypeChangedEvent,MatchmakingRemoteEventListenerOnReceivedInviteToLobbyEvent,MatchmakingRemoteEventListenerOnLobbyJoinableChangedEvent,MatchmakingRemoteEventListenerOnNewPlayerJoinedLobbyEvent,MatchmakingRemoteEventListenerOnRefuseInviteToLobbyEvent,MatchmakingRemoteEventListenerOnLobbyChatMessageEvent,MatchmakingRemoteEventListenerOnPlayerKickedFromLobbyEvent,MatchmakingRemoteEventListenerOnLobbyPlayerTypeChangedEvent,MatchmakingRemoteEventListenerOnReceivedSpectatorInviteToLobbyEvent,MatchmakingRemoteEventListenerOnLobbyOwnerChangedEvent,MatchmakingRemoteEventListenerOnNewPlayerInvitedToLobbyEvent,MatchmakingRemoteEventListenerOnLobbyGameServerChangedEvent,MatchmakingRemoteEventListenerOnLobbyNameChangedEvent,MatchmakingRemoteEventListenerOnPlayerLeftLobbyEvent,MatchmakingRemoteEventListenerOnNewSpectatorJoinedLobbyEvent,MatchmakingRemoteEventListenerOnLobbyMaxSpectatorsChangedEvent,InAppsRemoteEventListenerOnInAppEvent,ClansRemoteEventListenerOnClanMembersCountIncreased,ClansRemoteEventListenerOnReadClosedInviteRequestEvent,ClansRemoteEventListenerOnJoinRequestDeclinedEvent,ClansRemoteEventListenerOnKickedMember,ClansRemoteEventListenerOnJoinRequestCancelledEvent,ClansRemoteEventListenerOnClanTypeChanged,ClansRemoteEventListenerOnAssignedLeaderRoleEvent,ClansRemoteEventListenerOnClanTagAndNameChanged,ClansRemoteEventListenerOnLeftFromClan,ClansRemoteEventListenerOnClanMemberDeclinedRequestEvent,ClansRemoteEventListenerOnMemberJoinedToClan,ClansRemoteEventListenerOnJoinRequestTaken,ClansRemoteEventListenerOnInviteRequestDeclinedEvent,ClansRemoteEventListenerOnInviteRequestCancelledEvent,ClansRemoteEventListenerOnAssignedRoleEvent,ClansRemoteEventListenerOnPlayerAvatarChangedEvent,ClansRemoteEventListenerOnOnlineStatusChangedEvent,ClansRemoteEventListenerOnPlayerNameChangedEvent,ClansRemoteEventListenerOnKickedEvent,ClansRemoteEventListenerOnClanDescriptionChangedEvent,ClansRemoteEventListenerOnPlayerAttributesChanged,ClansRemoteEventListenerOnClanAvatarChangedEvent,ClansRemoteEventListenerOnInvitedToClanEvent,ClansRemoteEventListenerOnJoinedToClan,InventoryRemoteEventListenerOnInventoryChanged,InventoryRemoteEventListenerOnCouponActivated,MatchesRemoteEventListenerOnMatchFinished,FriendsRemoteEventListenerOnFriendNameChangedEvent,FriendsRemoteEventListenerOnPlayerStatusChangedEvent,FriendsRemoteEventListenerOnPlayerAttributesChanged,FriendsRemoteEventListenerOnFriendRemovedEvent,FriendsRemoteEventListenerOnRevokeFriendshipRequestEvent,FriendsRemoteEventListenerOnFriendAddedEvent,FriendsRemoteEventListenerOnNewFriendshipRequestEvent,FriendsRemoteEventListenerOnFriendAvatarChangedEvent,MessagesRemoteEventListenerOnMsgFromFriendEvent,ClanStatsRemoteEventListenerOnClanStatsUpdated,GameEventRemoteEventListenerOnGamePassChanged,GameEventRemoteEventListenerOnProgressGameEvent,GameEventRemoteEventListenerOnProgressChallengeEvent,ClanMessagesRemoteEventListenerOnIncomingClanChatMessageEvent,AdsRemoteEventListenerOnAdRewardEvent,PlayerStatsRemoteEventListenerOnStatsUpdatedEvent,MatchmakingRemoteListenerOnMatchmakingProgress,MatchmakingRemoteListenerOnPlayersConfirmed,MatchmakingRemoteListenerOnMatchmakingDone,MatchmakingRemoteListenerOnMatchmakingFail,): pass
|
|
1532
|
+
|
|
1533
|
+
GENERATED_UPDATES = {5: [MarketplaceRemoteEventListenerOnPlayerRequestOpenedUpdate],1: [MarketplaceRemoteEventListenerOnTradeUpdatedUpdate,MatchmakingRemoteListenerOnMatchmakingDoneUpdate],3: [MarketplaceRemoteEventListenerOnTradeRequestOpenedUpdate,MatchmakingRemoteListenerOnPlayersConfirmedUpdate],4: [MarketplaceRemoteEventListenerOnPlayerRequestClosedUpdate,MatchmakingRemoteListenerOnMatchmakingFailUpdate],2: [MarketplaceRemoteEventListenerOnTradeRequestClosedUpdate,MatchmakingRemoteListenerOnMatchmakingProgressUpdate],126: [SystemMessagesRemoteEventListenerOnSystemMessageReceivedUpdate],72: [MatchmakingRemoteEventListenerOnRevokeInviteToLobbyEventUpdate],77: [MatchmakingRemoteEventListenerOnNewSpectatorInvitedToLobbyEventUpdate],68: [MatchmakingRemoteEventListenerOnLobbyPhotonGameChangedEventUpdate],67: [MatchmakingRemoteEventListenerOnLobbyMaxMembersChangedEventUpdate],61: [MatchmakingRemoteEventListenerOnLobbyDataChangedEventUpdate],70: [MatchmakingRemoteEventListenerOnLobbyTypeChangedEventUpdate],65: [MatchmakingRemoteEventListenerOnReceivedInviteToLobbyEventUpdate],62: [MatchmakingRemoteEventListenerOnLobbyJoinableChangedEventUpdate],66: [MatchmakingRemoteEventListenerOnNewPlayerJoinedLobbyEventUpdate],75: [MatchmakingRemoteEventListenerOnRefuseInviteToLobbyEventUpdate],64: [MatchmakingRemoteEventListenerOnLobbyChatMessageEventUpdate],74: [MatchmakingRemoteEventListenerOnPlayerKickedFromLobbyEventUpdate],78: [MatchmakingRemoteEventListenerOnLobbyPlayerTypeChangedEventUpdate],79: [MatchmakingRemoteEventListenerOnReceivedSpectatorInviteToLobbyEventUpdate],73: [MatchmakingRemoteEventListenerOnLobbyOwnerChangedEventUpdate],63: [MatchmakingRemoteEventListenerOnNewPlayerInvitedToLobbyEventUpdate],80: [MatchmakingRemoteEventListenerOnLobbyGameServerChangedEventUpdate],81: [MatchmakingRemoteEventListenerOnLobbyNameChangedEventUpdate],69: [MatchmakingRemoteEventListenerOnPlayerLeftLobbyEventUpdate],76: [MatchmakingRemoteEventListenerOnNewSpectatorJoinedLobbyEventUpdate],71: [MatchmakingRemoteEventListenerOnLobbyMaxSpectatorsChangedEventUpdate],119: [InAppsRemoteEventListenerOnInAppEventUpdate],53: [ClansRemoteEventListenerOnClanMembersCountIncreasedUpdate],38: [ClansRemoteEventListenerOnReadClosedInviteRequestEventUpdate],45: [ClansRemoteEventListenerOnJoinRequestDeclinedEventUpdate],42: [ClansRemoteEventListenerOnKickedMemberUpdate],37: [ClansRemoteEventListenerOnJoinRequestCancelledEventUpdate],48: [ClansRemoteEventListenerOnClanTypeChangedUpdate],47: [ClansRemoteEventListenerOnAssignedLeaderRoleEventUpdate],52: [ClansRemoteEventListenerOnClanTagAndNameChangedUpdate],46: [ClansRemoteEventListenerOnLeftFromClanUpdate],41: [ClansRemoteEventListenerOnClanMemberDeclinedRequestEventUpdate],35: [ClansRemoteEventListenerOnMemberJoinedToClanUpdate],33: [ClansRemoteEventListenerOnJoinRequestTakenUpdate],40: [ClansRemoteEventListenerOnInviteRequestDeclinedEventUpdate],51: [ClansRemoteEventListenerOnInviteRequestCancelledEventUpdate],43: [ClansRemoteEventListenerOnAssignedRoleEventUpdate],32: [ClansRemoteEventListenerOnPlayerAvatarChangedEventUpdate],31: [ClansRemoteEventListenerOnOnlineStatusChangedEventUpdate],34: [ClansRemoteEventListenerOnPlayerNameChangedEventUpdate],50: [ClansRemoteEventListenerOnKickedEventUpdate],54: [ClansRemoteEventListenerOnClanDescriptionChangedEventUpdate],36: [ClansRemoteEventListenerOnPlayerAttributesChangedUpdate],49: [ClansRemoteEventListenerOnClanAvatarChangedEventUpdate],44: [ClansRemoteEventListenerOnInvitedToClanEventUpdate],39: [ClansRemoteEventListenerOnJoinedToClanUpdate],111: [InventoryRemoteEventListenerOnInventoryChangedUpdate],112: [InventoryRemoteEventListenerOnCouponActivatedUpdate],95: [MatchesRemoteEventListenerOnMatchFinishedUpdate],14: [FriendsRemoteEventListenerOnFriendNameChangedEventUpdate],11: [FriendsRemoteEventListenerOnPlayerStatusChangedEventUpdate],16: [FriendsRemoteEventListenerOnPlayerAttributesChangedUpdate],17: [FriendsRemoteEventListenerOnFriendRemovedEventUpdate],18: [FriendsRemoteEventListenerOnRevokeFriendshipRequestEventUpdate],15: [FriendsRemoteEventListenerOnFriendAddedEventUpdate],13: [FriendsRemoteEventListenerOnNewFriendshipRequestEventUpdate],12: [FriendsRemoteEventListenerOnFriendAvatarChangedEventUpdate],121: [MessagesRemoteEventListenerOnMsgFromFriendEventUpdate],59: [ClanStatsRemoteEventListenerOnClanStatsUpdatedUpdate],107: [GameEventRemoteEventListenerOnGamePassChangedUpdate],106: [GameEventRemoteEventListenerOnProgressGameEventUpdate],108: [GameEventRemoteEventListenerOnProgressChallengeEventUpdate],58: [ClanMessagesRemoteEventListenerOnIncomingClanChatMessageEventUpdate],116: [AdsRemoteEventListenerOnAdRewardEventUpdate],101: [PlayerStatsRemoteEventListenerOnStatsUpdatedEventUpdate],}
|
|
1534
|
+
UPDATE_INDEX = {5: 0, 1: 0, 3: 0, 4: 0, 2: 0, 126: 0, 72: 0, 77: 0, 68: 0, 67: 0, 61: 0, 70: 0, 65: 0, 62: 0, 66: 0, 75: 0, 64: 0, 74: 0, 78: 0, 79: 0, 73: 0, 63: 0, 80: 0, 81: 0, 69: 0, 76: 0, 71: 0, 119: 0, 53: 0, 38: 0, 45: 0, 42: 0, 37: 0, 48: 0, 47: 0, 52: 0, 46: 0, 41: 0, 35: 0, 33: 0, 40: 0, 51: 0, 43: 0, 32: 0, 31: 0, 34: 0, 50: 0, 54: 0, 36: 0, 49: 0, 44: 0, 39: 0, 111: 0, 112: 0, 95: 0, 14: 0, 11: 0, 16: 0, 17: 0, 18: 0, 15: 0, 13: 0, 12: 0, 121: 0, 59: 0, 107: 0, 106: 0, 108: 0, 58: 0, 116: 0, 101: 0, }
|