raspberry_games_server_game_logic 1.8.390 → 1.8.391
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.
- package/Kosi-Kaverit-kaverit.js +13 -13
- package/Kosi-Kodein-kodein-di.js +37 -37
- package/Kotlin-DateTime-library-kotlinx-datetime.js +89 -89
- package/Logic_Debertz-core.js +58 -58
- package/Logic_Debertz-engine.js +104 -104
- package/Logic_Debertz-game_server.d.ts +31 -4
- package/Logic_Debertz-game_server.js +454 -362
- package/Logic_Debertz-game_server.js.map +1 -1
- package/error-library-error.js +5 -5
- package/kotlin-kotlin-stdlib.js +301 -288
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +9 -9
- package/kotlinx-coroutines-core.js +78 -78
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +30 -30
- package/kotlinx-serialization-kotlinx-serialization-core.js +79 -79
- package/kotlinx-serialization-kotlinx-serialization-json.js +88 -88
- package/ktor-ktor-client-content-negotiation.js +21 -21
- package/ktor-ktor-client-core.js +67 -67
- package/ktor-ktor-client-logging.js +23 -23
- package/ktor-ktor-events.js +5 -5
- package/ktor-ktor-http.js +72 -72
- package/ktor-ktor-io.js +50 -50
- package/ktor-ktor-serialization-kotlinx.js +15 -15
- package/ktor-ktor-serialization.js +15 -15
- package/ktor-ktor-utils.js +45 -45
- package/ktor-ktor-websockets.js +13 -13
- package/package.json +1 -1
- package/random-library-crypto-rand.js +11 -11
- package/random-library-secure-random.js +5 -5
- package/raspberry-cardgame-lib-core.js +34 -34
- package/raspberry-cardgame-lib-logger.js +12 -12
- package/raspberry-cardgame-lib-random.js +39 -39
- package/uuid.js +12 -12
|
@@ -43,35 +43,35 @@
|
|
|
43
43
|
'use strict';
|
|
44
44
|
//region block: imports
|
|
45
45
|
var imul = Math.imul;
|
|
46
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
46
|
+
var CoroutineImpl = kotlin_kotlin.$_$.pa;
|
|
47
47
|
var Unit_instance = kotlin_kotlin.$_$.f5;
|
|
48
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
49
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
48
|
+
var protoOf = kotlin_kotlin.$_$.jd;
|
|
49
|
+
var THROW_CCE = kotlin_kotlin.$_$.lh;
|
|
50
50
|
var ToClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.g1;
|
|
51
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
51
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.nc;
|
|
52
52
|
var VOID = kotlin_kotlin.$_$.b;
|
|
53
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
54
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
55
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
53
|
+
var isInterface = kotlin_kotlin.$_$.xc;
|
|
54
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.aa;
|
|
55
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.lc;
|
|
56
56
|
var Flow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.t;
|
|
57
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
57
|
+
var initMetadataForClass = kotlin_kotlin.$_$.jc;
|
|
58
58
|
var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s;
|
|
59
|
-
var fromInt = kotlin_kotlin.$_$.
|
|
59
|
+
var fromInt = kotlin_kotlin.$_$.eb;
|
|
60
60
|
var windowedByInterval = kotlin_io_raspberryapps_game_engine_core.$_$.a;
|
|
61
61
|
var emitAll = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b;
|
|
62
|
-
var to = kotlin_kotlin.$_$.
|
|
62
|
+
var to = kotlin_kotlin.$_$.qi;
|
|
63
63
|
var AppState = kotlin_io_raspberryapps_game_engine_engine.$_$.v3;
|
|
64
|
-
var defineProp = kotlin_kotlin.$_$.
|
|
64
|
+
var defineProp = kotlin_kotlin.$_$.bc;
|
|
65
65
|
var PlayerIdContract = kotlin_io_raspberryapps_game_engine_core.$_$.f;
|
|
66
|
-
var KProperty1 = kotlin_kotlin.$_$.
|
|
67
|
-
var getPropertyCallableRef = kotlin_kotlin.$_$.
|
|
66
|
+
var KProperty1 = kotlin_kotlin.$_$.he;
|
|
67
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.gc;
|
|
68
68
|
var transformLatest = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b1;
|
|
69
69
|
var distinctUntilChanged = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.x;
|
|
70
70
|
var distinctUntilChanged_0 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.y;
|
|
71
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
72
|
-
var equals = kotlin_kotlin.$_$.
|
|
73
|
-
var FunctionAdapter = kotlin_kotlin.$_$.
|
|
74
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
71
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.kc;
|
|
72
|
+
var equals = kotlin_kotlin.$_$.cc;
|
|
73
|
+
var FunctionAdapter = kotlin_kotlin.$_$.pb;
|
|
74
|
+
var hashCode = kotlin_kotlin.$_$.ic;
|
|
75
75
|
var SecureRandom = kotlin_io_raspberryapps_cardgame_random.$_$.j;
|
|
76
76
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j1;
|
|
77
77
|
var flow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a1;
|
|
@@ -84,8 +84,8 @@
|
|
|
84
84
|
var get_isFinishing = kotlin_io_raspberryapps_game_engine_engine.$_$.d4;
|
|
85
85
|
var PlayerConnectionState_LIVE_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.s3;
|
|
86
86
|
var PlayerConnectionState_LEFT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.r3;
|
|
87
|
-
var toList = kotlin_kotlin.$_$.
|
|
88
|
-
var toString = kotlin_kotlin.$_$.
|
|
87
|
+
var toList = kotlin_kotlin.$_$.m9;
|
|
88
|
+
var toString = kotlin_kotlin.$_$.md;
|
|
89
89
|
var Companion_instance = kotlin_io_raspberryapps_game_engine_engine.$_$.n4;
|
|
90
90
|
var Reason_SERVER_ERROR_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.z3;
|
|
91
91
|
var GameErrorReason = kotlin_io_raspberryapps_game_engine_core.$_$.h1;
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.h;
|
|
95
95
|
var filterByPlayerId = kotlin_io_raspberryapps_game_engine_core.$_$.m;
|
|
96
96
|
var firstOrNull = kotlin_kotlin.$_$.h7;
|
|
97
|
-
var toMutableList = kotlin_kotlin.$_$.
|
|
97
|
+
var toMutableList = kotlin_kotlin.$_$.p9;
|
|
98
98
|
var getPlayer = kotlin_io_raspberryapps_game_engine_core.$_$.o;
|
|
99
99
|
var GameEngineConfig_instance = kotlin_io_raspberryapps_game_engine_core.$_$.z4;
|
|
100
100
|
var get_versionOrDefault = kotlin_io_raspberryapps_game_engine_core.$_$.l3;
|
|
@@ -113,40 +113,41 @@
|
|
|
113
113
|
var toDomainEnumSafe = kotlin_io_raspberryapps_game_engine_core.$_$.a3;
|
|
114
114
|
var Reason_DEPLOY_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.b4;
|
|
115
115
|
var GameFinishedReason = kotlin_io_raspberryapps_game_engine_core.$_$.i1;
|
|
116
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
116
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.ji;
|
|
117
117
|
var BaseGame = kotlin_io_raspberryapps_game_engine_engine.$_$.e4;
|
|
118
118
|
var emptyList = kotlin_kotlin.$_$.d7;
|
|
119
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
120
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
121
|
-
var createKType = kotlin_kotlin.$_$.
|
|
119
|
+
var getKClass = kotlin_kotlin.$_$.de;
|
|
120
|
+
var arrayOf = kotlin_kotlin.$_$.zh;
|
|
121
|
+
var createKType = kotlin_kotlin.$_$.be;
|
|
122
122
|
var typeToken = kotlin_org_kodein_type_kaverit.$_$.d;
|
|
123
123
|
var TypeToken = kotlin_org_kodein_type_kaverit.$_$.b;
|
|
124
124
|
var Instance = kotlin_org_kodein_di_kodein_di.$_$.f;
|
|
125
125
|
var FromClientEventsObserver = kotlin_io_raspberryapps_game_engine_engine.$_$.w;
|
|
126
126
|
var PlayerConnectionInteractor = kotlin_io_raspberryapps_game_engine_engine.$_$.z;
|
|
127
127
|
var TeamsLogicProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.r;
|
|
128
|
-
var lazy = kotlin_kotlin.$_$.
|
|
128
|
+
var lazy = kotlin_kotlin.$_$.ii;
|
|
129
129
|
var IdsProvider = kotlin_io_raspberryapps_game_engine_core.$_$.n1;
|
|
130
130
|
var ServerReduxConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.g;
|
|
131
131
|
var EncoderDecoderProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.q;
|
|
132
|
-
var plus = kotlin_kotlin.$_$.
|
|
132
|
+
var plus = kotlin_kotlin.$_$.r8;
|
|
133
133
|
var GameStore = kotlin_io_raspberryapps_game_engine_engine.$_$.g4;
|
|
134
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
134
|
+
var toString_0 = kotlin_kotlin.$_$.pi;
|
|
135
135
|
var mapOf = kotlin_kotlin.$_$.j8;
|
|
136
|
-
var
|
|
137
|
-
var
|
|
136
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.q;
|
|
137
|
+
var getStringHashCode = kotlin_kotlin.$_$.hc;
|
|
138
|
+
var Enum = kotlin_kotlin.$_$.bh;
|
|
139
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.ec;
|
|
138
140
|
var SealedClassSerializer_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d;
|
|
139
141
|
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f2;
|
|
140
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
142
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.mc;
|
|
141
143
|
var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e2;
|
|
142
144
|
var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g;
|
|
143
145
|
var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v;
|
|
144
146
|
var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z1;
|
|
145
147
|
var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a2;
|
|
146
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
148
|
+
var initMetadataForObject = kotlin_kotlin.$_$.oc;
|
|
147
149
|
var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j2;
|
|
148
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
149
|
-
var getStringHashCode = kotlin_kotlin.$_$.gc;
|
|
150
|
+
var objectCreate = kotlin_kotlin.$_$.id;
|
|
150
151
|
var mapToDto = kotlin_io_raspberryapps_game_engine_engine.$_$.k;
|
|
151
152
|
var mapToDto_0 = kotlin_io_raspberryapps_game_engine_engine.$_$.l;
|
|
152
153
|
var Module_init_$Create$ = kotlin_org_kodein_di_kodein_di.$_$.a;
|
|
@@ -163,13 +164,12 @@
|
|
|
163
164
|
var StoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.e3;
|
|
164
165
|
var StateProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.h4;
|
|
165
166
|
var GameStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.f4;
|
|
166
|
-
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.q;
|
|
167
167
|
var CombinedToClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.e1;
|
|
168
|
-
var single = kotlin_kotlin.$_$.
|
|
168
|
+
var single = kotlin_kotlin.$_$.b9;
|
|
169
169
|
var copyToArray = kotlin_kotlin.$_$.y6;
|
|
170
170
|
var ActionDeliveryPayload = kotlin_io_raspberryapps_game_engine_engine.$_$.d1;
|
|
171
171
|
var KtList = kotlin_kotlin.$_$.n5;
|
|
172
|
-
var Long = kotlin_kotlin.$_$.
|
|
172
|
+
var Long = kotlin_kotlin.$_$.gh;
|
|
173
173
|
var delay = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e;
|
|
174
174
|
var atomic$ref$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.e;
|
|
175
175
|
var get_atomicfu$reentrantLock = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.a;
|
|
@@ -248,16 +248,18 @@
|
|
|
248
248
|
var StartNewGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.t2;
|
|
249
249
|
var mapToClient_17 = kotlin_io_raspberryapps_game_engine_engine.$_$.j1;
|
|
250
250
|
var Reducer = kotlin_io_raspberryapps_game_engine_core.$_$.i2;
|
|
251
|
+
var Pair = kotlin_kotlin.$_$.ih;
|
|
252
|
+
var plus_0 = kotlin_kotlin.$_$.p8;
|
|
251
253
|
var Companion_instance_1 = kotlin_io_raspberryapps_game_engine_core.$_$.o4;
|
|
252
254
|
var Companion_instance_2 = kotlin_io_raspberryapps_game_engine_core.$_$.m4;
|
|
253
255
|
var Companion_getInstance = kotlin_kotlin.$_$.v4;
|
|
254
256
|
var DurationUnit_MILLISECONDS_getInstance = kotlin_kotlin.$_$.c;
|
|
255
|
-
var toDuration = kotlin_kotlin.$_$.
|
|
257
|
+
var toDuration = kotlin_kotlin.$_$.tg;
|
|
256
258
|
var BaseMechanicLifecycleReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.q3;
|
|
257
259
|
var GameLifecycleState_CREATED_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.k4;
|
|
258
|
-
var singleOrNull = kotlin_kotlin.$_$.
|
|
260
|
+
var singleOrNull = kotlin_kotlin.$_$.a9;
|
|
259
261
|
var Collection = kotlin_kotlin.$_$.h5;
|
|
260
|
-
var toSet = kotlin_kotlin.$_$.
|
|
262
|
+
var toSet = kotlin_kotlin.$_$.s9;
|
|
261
263
|
var Spectator = kotlin_io_raspberryapps_game_engine_engine.$_$.i;
|
|
262
264
|
var AppStatePayload = kotlin_io_raspberryapps_game_engine_engine.$_$.u3;
|
|
263
265
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.l1;
|
|
@@ -287,7 +289,7 @@
|
|
|
287
289
|
var GameResources = kotlin_io_raspberryapps_game_engine_engine.$_$.b;
|
|
288
290
|
var Logger_getInstance = kotlin_io_raspberryapps_cardgame_logger.$_$.m;
|
|
289
291
|
var Companion_instance_6 = kotlin_io_raspberryapps_cardgame_logger.$_$.n;
|
|
290
|
-
var toList_0 = kotlin_kotlin.$_$.
|
|
292
|
+
var toList_0 = kotlin_kotlin.$_$.l9;
|
|
291
293
|
var middleware = kotlin_io_raspberryapps_game_engine_core.$_$.l2;
|
|
292
294
|
var get_direct = kotlin_org_kodein_di_kodein_di.$_$.g;
|
|
293
295
|
var get_botGameModule = kotlin_io_raspberryapps_game_engine_engine.$_$.s;
|
|
@@ -360,10 +362,10 @@
|
|
|
360
362
|
spectators = tmp;
|
|
361
363
|
var tmp_0;
|
|
362
364
|
if ($super === VOID) {
|
|
363
|
-
this.
|
|
365
|
+
this.k9w(roomId, gameCreatorId, config, usersArray, transition, spectators);
|
|
364
366
|
tmp_0 = Unit_instance;
|
|
365
367
|
} else {
|
|
366
|
-
tmp_0 = $super.
|
|
368
|
+
tmp_0 = $super.k9w.call(this, roomId, gameCreatorId, config, usersArray, transition, spectators);
|
|
367
369
|
}
|
|
368
370
|
return tmp_0;
|
|
369
371
|
}
|
|
@@ -371,10 +373,10 @@
|
|
|
371
373
|
newRid = newRid === VOID ? null : newRid;
|
|
372
374
|
var tmp;
|
|
373
375
|
if ($super === VOID) {
|
|
374
|
-
this.
|
|
376
|
+
this.l9w(newRid);
|
|
375
377
|
tmp = Unit_instance;
|
|
376
378
|
} else {
|
|
377
|
-
tmp = $super.
|
|
379
|
+
tmp = $super.l9w.call(this, newRid);
|
|
378
380
|
}
|
|
379
381
|
return tmp;
|
|
380
382
|
}
|
|
@@ -382,15 +384,17 @@
|
|
|
382
384
|
roomId = roomId === VOID ? null : roomId;
|
|
383
385
|
var tmp;
|
|
384
386
|
if ($super === VOID) {
|
|
385
|
-
this.
|
|
387
|
+
this.m9w(reason, roomId);
|
|
386
388
|
tmp = Unit_instance;
|
|
387
389
|
} else {
|
|
388
|
-
tmp = $super.
|
|
390
|
+
tmp = $super.m9w.call(this, reason, roomId);
|
|
389
391
|
}
|
|
390
392
|
return tmp;
|
|
391
393
|
}
|
|
392
394
|
initMetadataForInterface(ServerGameEngineContract, 'ServerGameEngineContract', VOID, VOID, [GameStoreContract]);
|
|
393
395
|
initMetadataForClass(GameServer, 'GameServer', VOID, BaseGame, [BaseGame, ServerGameEngineContract]);
|
|
396
|
+
initMetadataForClass(RoomMetadata, 'RoomMetadata', RoomMetadata);
|
|
397
|
+
initMetadataForClass(GameMetadata, 'GameMetadata');
|
|
394
398
|
initMetadataForClass(ServerShutdownReason, 'ServerShutdownReason', VOID, Enum);
|
|
395
399
|
initMetadataForCompanion(Companion_0);
|
|
396
400
|
initMetadataForClass(ServerConfig, 'ServerConfig');
|
|
@@ -1127,7 +1131,7 @@
|
|
|
1127
1131
|
var tmp0 = this.k9l_1;
|
|
1128
1132
|
var value = this.l9l_1;
|
|
1129
1133
|
this.r8_1 = 1;
|
|
1130
|
-
suspendResult = tmp0.n28(value.
|
|
1134
|
+
suspendResult = tmp0.n28(value.ie_1, this);
|
|
1131
1135
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1132
1136
|
return suspendResult;
|
|
1133
1137
|
}
|
|
@@ -1328,20 +1332,20 @@
|
|
|
1328
1332
|
return new GameServer$observeTableWhenRoundChanges$$inlined$map$2(this_1);
|
|
1329
1333
|
}
|
|
1330
1334
|
function Companion() {
|
|
1331
|
-
this.
|
|
1335
|
+
this.x9m_1 = 'GameEngine_API';
|
|
1332
1336
|
}
|
|
1333
1337
|
var Companion_instance_7;
|
|
1334
1338
|
function Companion_getInstance_0() {
|
|
1335
1339
|
return Companion_instance_7;
|
|
1336
1340
|
}
|
|
1337
1341
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
1338
|
-
this.
|
|
1342
|
+
this.y9m_1 = function_0;
|
|
1339
1343
|
}
|
|
1340
1344
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).n28 = function (value, $completion) {
|
|
1341
|
-
return this.
|
|
1345
|
+
return this.y9m_1(value, $completion);
|
|
1342
1346
|
};
|
|
1343
1347
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).a3 = function () {
|
|
1344
|
-
return this.
|
|
1348
|
+
return this.y9m_1;
|
|
1345
1349
|
};
|
|
1346
1350
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
1347
1351
|
var tmp;
|
|
@@ -1362,13 +1366,13 @@
|
|
|
1362
1366
|
return hashCode(this.a3());
|
|
1363
1367
|
};
|
|
1364
1368
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
1365
|
-
this.
|
|
1369
|
+
this.z9m_1 = function_0;
|
|
1366
1370
|
}
|
|
1367
1371
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).n28 = function (value, $completion) {
|
|
1368
|
-
return this.
|
|
1372
|
+
return this.z9m_1(value, $completion);
|
|
1369
1373
|
};
|
|
1370
1374
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).a3 = function () {
|
|
1371
|
-
return this.
|
|
1375
|
+
return this.z9m_1;
|
|
1372
1376
|
};
|
|
1373
1377
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).equals = function (other) {
|
|
1374
1378
|
var tmp;
|
|
@@ -1389,13 +1393,13 @@
|
|
|
1389
1393
|
return hashCode(this.a3());
|
|
1390
1394
|
};
|
|
1391
1395
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_1(function_0) {
|
|
1392
|
-
this.
|
|
1396
|
+
this.a9n_1 = function_0;
|
|
1393
1397
|
}
|
|
1394
1398
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_1).n28 = function (value, $completion) {
|
|
1395
|
-
return this.
|
|
1399
|
+
return this.a9n_1(value, $completion);
|
|
1396
1400
|
};
|
|
1397
1401
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_1).a3 = function () {
|
|
1398
|
-
return this.
|
|
1402
|
+
return this.a9n_1;
|
|
1399
1403
|
};
|
|
1400
1404
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_1).equals = function (other) {
|
|
1401
1405
|
var tmp;
|
|
@@ -1416,13 +1420,13 @@
|
|
|
1416
1420
|
return hashCode(this.a3());
|
|
1417
1421
|
};
|
|
1418
1422
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_2(function_0) {
|
|
1419
|
-
this.
|
|
1423
|
+
this.b9n_1 = function_0;
|
|
1420
1424
|
}
|
|
1421
1425
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_2).n28 = function (value, $completion) {
|
|
1422
|
-
return this.
|
|
1426
|
+
return this.b9n_1(value, $completion);
|
|
1423
1427
|
};
|
|
1424
1428
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_2).a3 = function () {
|
|
1425
|
-
return this.
|
|
1429
|
+
return this.b9n_1;
|
|
1426
1430
|
};
|
|
1427
1431
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_2).equals = function (other) {
|
|
1428
1432
|
var tmp;
|
|
@@ -1443,13 +1447,13 @@
|
|
|
1443
1447
|
return hashCode(this.a3());
|
|
1444
1448
|
};
|
|
1445
1449
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_3(function_0) {
|
|
1446
|
-
this.
|
|
1450
|
+
this.c9n_1 = function_0;
|
|
1447
1451
|
}
|
|
1448
1452
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_3).n28 = function (value, $completion) {
|
|
1449
|
-
return this.
|
|
1453
|
+
return this.c9n_1(value, $completion);
|
|
1450
1454
|
};
|
|
1451
1455
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_3).a3 = function () {
|
|
1452
|
-
return this.
|
|
1456
|
+
return this.c9n_1;
|
|
1453
1457
|
};
|
|
1454
1458
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_3).equals = function (other) {
|
|
1455
1459
|
var tmp;
|
|
@@ -1470,13 +1474,13 @@
|
|
|
1470
1474
|
return hashCode(this.a3());
|
|
1471
1475
|
};
|
|
1472
1476
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_4(function_0) {
|
|
1473
|
-
this.
|
|
1477
|
+
this.d9n_1 = function_0;
|
|
1474
1478
|
}
|
|
1475
1479
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_4).n28 = function (value, $completion) {
|
|
1476
|
-
return this.
|
|
1480
|
+
return this.d9n_1(value, $completion);
|
|
1477
1481
|
};
|
|
1478
1482
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_4).a3 = function () {
|
|
1479
|
-
return this.
|
|
1483
|
+
return this.d9n_1;
|
|
1480
1484
|
};
|
|
1481
1485
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_4).equals = function (other) {
|
|
1482
1486
|
var tmp;
|
|
@@ -1577,8 +1581,8 @@
|
|
|
1577
1581
|
};
|
|
1578
1582
|
}
|
|
1579
1583
|
function GameServer$subscribeToClientAction$slambda(this$0, $subscriber, resultContinuation) {
|
|
1580
|
-
this.
|
|
1581
|
-
this.
|
|
1584
|
+
this.m9n_1 = this$0;
|
|
1585
|
+
this.n9n_1 = $subscriber;
|
|
1582
1586
|
CoroutineImpl.call(this, resultContinuation);
|
|
1583
1587
|
}
|
|
1584
1588
|
protoOf(GameServer$subscribeToClientAction$slambda).b2d = function ($this$launchDefault, $completion) {
|
|
@@ -1599,8 +1603,8 @@
|
|
|
1599
1603
|
case 0:
|
|
1600
1604
|
this.s8_1 = 2;
|
|
1601
1605
|
this.r8_1 = 1;
|
|
1602
|
-
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.
|
|
1603
|
-
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.
|
|
1606
|
+
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.m9n_1).p9n();
|
|
1607
|
+
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.n9n_1, null);
|
|
1604
1608
|
suspendResult = tmp_0.n27(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
1605
1609
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1606
1610
|
return suspendResult;
|
|
@@ -1624,8 +1628,8 @@
|
|
|
1624
1628
|
while (true);
|
|
1625
1629
|
};
|
|
1626
1630
|
protoOf(GameServer$subscribeToClientAction$slambda).c2d = function ($this$launchDefault, completion) {
|
|
1627
|
-
var i = new GameServer$subscribeToClientAction$slambda(this.
|
|
1628
|
-
i.
|
|
1631
|
+
var i = new GameServer$subscribeToClientAction$slambda(this.m9n_1, this.n9n_1, completion);
|
|
1632
|
+
i.o9n_1 = $this$launchDefault;
|
|
1629
1633
|
return i;
|
|
1630
1634
|
};
|
|
1631
1635
|
function GameServer$subscribeToClientAction$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -1637,8 +1641,8 @@
|
|
|
1637
1641
|
return l;
|
|
1638
1642
|
}
|
|
1639
1643
|
function GameServer$subscribeServerStateUpdate$slambda(this$0, $subscriber, resultContinuation) {
|
|
1640
|
-
this.
|
|
1641
|
-
this.
|
|
1644
|
+
this.y9n_1 = this$0;
|
|
1645
|
+
this.z9n_1 = $subscriber;
|
|
1642
1646
|
CoroutineImpl.call(this, resultContinuation);
|
|
1643
1647
|
}
|
|
1644
1648
|
protoOf(GameServer$subscribeServerStateUpdate$slambda).b2d = function ($this$launchDefault, $completion) {
|
|
@@ -1659,8 +1663,8 @@
|
|
|
1659
1663
|
case 0:
|
|
1660
1664
|
this.s8_1 = 2;
|
|
1661
1665
|
this.r8_1 = 1;
|
|
1662
|
-
var tmp_0 = observeTableStateUpdates(this.
|
|
1663
|
-
var tmp_1 = GameServer$subscribeServerStateUpdate$slambda$slambda_0(this.
|
|
1666
|
+
var tmp_0 = observeTableStateUpdates(this.y9n_1);
|
|
1667
|
+
var tmp_1 = GameServer$subscribeServerStateUpdate$slambda$slambda_0(this.z9n_1, null);
|
|
1664
1668
|
suspendResult = tmp_0.n27(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_1), this);
|
|
1665
1669
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1666
1670
|
return suspendResult;
|
|
@@ -1684,8 +1688,8 @@
|
|
|
1684
1688
|
while (true);
|
|
1685
1689
|
};
|
|
1686
1690
|
protoOf(GameServer$subscribeServerStateUpdate$slambda).c2d = function ($this$launchDefault, completion) {
|
|
1687
|
-
var i = new GameServer$subscribeServerStateUpdate$slambda(this.
|
|
1688
|
-
i.
|
|
1691
|
+
var i = new GameServer$subscribeServerStateUpdate$slambda(this.y9n_1, this.z9n_1, completion);
|
|
1692
|
+
i.a9o_1 = $this$launchDefault;
|
|
1689
1693
|
return i;
|
|
1690
1694
|
};
|
|
1691
1695
|
function GameServer$subscribeServerStateUpdate$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -1697,8 +1701,8 @@
|
|
|
1697
1701
|
return l;
|
|
1698
1702
|
}
|
|
1699
1703
|
function GameServer$subscribeServerStateUpdateJson$slambda(this$0, $subscriber, resultContinuation) {
|
|
1700
|
-
this.
|
|
1701
|
-
this.
|
|
1704
|
+
this.j9o_1 = this$0;
|
|
1705
|
+
this.k9o_1 = $subscriber;
|
|
1702
1706
|
CoroutineImpl.call(this, resultContinuation);
|
|
1703
1707
|
}
|
|
1704
1708
|
protoOf(GameServer$subscribeServerStateUpdateJson$slambda).b2d = function ($this$launchDefault, $completion) {
|
|
@@ -1719,9 +1723,9 @@
|
|
|
1719
1723
|
case 0:
|
|
1720
1724
|
this.s8_1 = 2;
|
|
1721
1725
|
this.r8_1 = 1;
|
|
1722
|
-
var this_0 = observeTableStateUpdates(this.
|
|
1723
|
-
var tmp_0 = new GameServer$subscribeServerStateUpdateJson$2$$inlined$map$1(this_0, this.
|
|
1724
|
-
var tmp_1 = GameServer$subscribeServerStateUpdateJson$slambda$slambda_0(this.
|
|
1726
|
+
var this_0 = observeTableStateUpdates(this.j9o_1);
|
|
1727
|
+
var tmp_0 = new GameServer$subscribeServerStateUpdateJson$2$$inlined$map$1(this_0, this.j9o_1);
|
|
1728
|
+
var tmp_1 = GameServer$subscribeServerStateUpdateJson$slambda$slambda_0(this.k9o_1, null);
|
|
1725
1729
|
suspendResult = tmp_0.n27(new sam$kotlinx_coroutines_flow_FlowCollector$0_1(tmp_1), this);
|
|
1726
1730
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1727
1731
|
return suspendResult;
|
|
@@ -1745,8 +1749,8 @@
|
|
|
1745
1749
|
while (true);
|
|
1746
1750
|
};
|
|
1747
1751
|
protoOf(GameServer$subscribeServerStateUpdateJson$slambda).c2d = function ($this$launchDefault, completion) {
|
|
1748
|
-
var i = new GameServer$subscribeServerStateUpdateJson$slambda(this.
|
|
1749
|
-
i.
|
|
1752
|
+
var i = new GameServer$subscribeServerStateUpdateJson$slambda(this.j9o_1, this.k9o_1, completion);
|
|
1753
|
+
i.l9o_1 = $this$launchDefault;
|
|
1750
1754
|
return i;
|
|
1751
1755
|
};
|
|
1752
1756
|
function GameServer$subscribeServerStateUpdateJson$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -1758,18 +1762,18 @@
|
|
|
1758
1762
|
return l;
|
|
1759
1763
|
}
|
|
1760
1764
|
function GameServer$observeTableStateUpdates$slambda(this$0, resultContinuation) {
|
|
1761
|
-
this.
|
|
1765
|
+
this.u9o_1 = this$0;
|
|
1762
1766
|
CoroutineImpl.call(this, resultContinuation);
|
|
1763
1767
|
}
|
|
1764
|
-
protoOf(GameServer$observeTableStateUpdates$slambda).
|
|
1765
|
-
var tmp = this.
|
|
1768
|
+
protoOf(GameServer$observeTableStateUpdates$slambda).x9o = function ($this$transformLatest, it, $completion) {
|
|
1769
|
+
var tmp = this.y9o($this$transformLatest, it, $completion);
|
|
1766
1770
|
tmp.t8_1 = Unit_instance;
|
|
1767
1771
|
tmp.u8_1 = null;
|
|
1768
1772
|
return tmp.z8();
|
|
1769
1773
|
};
|
|
1770
1774
|
protoOf(GameServer$observeTableStateUpdates$slambda).i9 = function (p1, p2, $completion) {
|
|
1771
1775
|
var tmp = (!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE();
|
|
1772
|
-
return this.
|
|
1776
|
+
return this.x9o(tmp, (p2 == null ? true : !(p2 == null)) ? p2 : THROW_CCE(), $completion);
|
|
1773
1777
|
};
|
|
1774
1778
|
protoOf(GameServer$observeTableStateUpdates$slambda).z8 = function () {
|
|
1775
1779
|
var suspendResult = this.t8_1;
|
|
@@ -1780,8 +1784,8 @@
|
|
|
1780
1784
|
case 0:
|
|
1781
1785
|
this.s8_1 = 2;
|
|
1782
1786
|
this.r8_1 = 1;
|
|
1783
|
-
var table = this.
|
|
1784
|
-
suspendResult = emitAll(this.
|
|
1787
|
+
var table = this.w9o_1;
|
|
1788
|
+
suspendResult = emitAll(this.v9o_1, flow(GameServer$observeTableStateUpdates$slambda$slambda_0(table, this.u9o_1, null)), this);
|
|
1785
1789
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1786
1790
|
return suspendResult;
|
|
1787
1791
|
}
|
|
@@ -1803,16 +1807,16 @@
|
|
|
1803
1807
|
}
|
|
1804
1808
|
while (true);
|
|
1805
1809
|
};
|
|
1806
|
-
protoOf(GameServer$observeTableStateUpdates$slambda).
|
|
1807
|
-
var i = new GameServer$observeTableStateUpdates$slambda(this.
|
|
1808
|
-
i.
|
|
1809
|
-
i.
|
|
1810
|
+
protoOf(GameServer$observeTableStateUpdates$slambda).y9o = function ($this$transformLatest, it, completion) {
|
|
1811
|
+
var i = new GameServer$observeTableStateUpdates$slambda(this.u9o_1, completion);
|
|
1812
|
+
i.v9o_1 = $this$transformLatest;
|
|
1813
|
+
i.w9o_1 = it;
|
|
1810
1814
|
return i;
|
|
1811
1815
|
};
|
|
1812
1816
|
function GameServer$observeTableStateUpdates$slambda_0(this$0, resultContinuation) {
|
|
1813
1817
|
var i = new GameServer$observeTableStateUpdates$slambda(this$0, resultContinuation);
|
|
1814
1818
|
var l = function ($this$transformLatest, it, $completion) {
|
|
1815
|
-
return i.
|
|
1819
|
+
return i.x9o($this$transformLatest, it, $completion);
|
|
1816
1820
|
};
|
|
1817
1821
|
l.$arity = 2;
|
|
1818
1822
|
return l;
|
|
@@ -1842,7 +1846,7 @@
|
|
|
1842
1846
|
return this.o28(collector, $completion);
|
|
1843
1847
|
};
|
|
1844
1848
|
function GameServer$observeTableWhenRoundChanges$lambda(old, new_0) {
|
|
1845
|
-
return old.
|
|
1849
|
+
return old.he_1 === new_0.he_1;
|
|
1846
1850
|
}
|
|
1847
1851
|
function GameServer$observeTableWhenRoundChanges$$inlined$map$2($this) {
|
|
1848
1852
|
this.w9l_1 = $this;
|
|
@@ -1857,8 +1861,8 @@
|
|
|
1857
1861
|
return this.o28(collector, $completion);
|
|
1858
1862
|
};
|
|
1859
1863
|
function GameServer$subscribeWith$slambda(this$0, $subscriber, resultContinuation) {
|
|
1860
|
-
this.
|
|
1861
|
-
this.
|
|
1864
|
+
this.h9p_1 = this$0;
|
|
1865
|
+
this.i9p_1 = $subscriber;
|
|
1862
1866
|
CoroutineImpl.call(this, resultContinuation);
|
|
1863
1867
|
}
|
|
1864
1868
|
protoOf(GameServer$subscribeWith$slambda).b2d = function ($this$launchDefault, $completion) {
|
|
@@ -1879,8 +1883,8 @@
|
|
|
1879
1883
|
case 0:
|
|
1880
1884
|
this.s8_1 = 2;
|
|
1881
1885
|
this.r8_1 = 1;
|
|
1882
|
-
var tmp_0 = distinctUntilChanged(this.
|
|
1883
|
-
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.
|
|
1886
|
+
var tmp_0 = distinctUntilChanged(this.h9p_1.r6m());
|
|
1887
|
+
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.i9p_1, null);
|
|
1884
1888
|
suspendResult = tmp_0.n27(new sam$kotlinx_coroutines_flow_FlowCollector$0_4(tmp_1), this);
|
|
1885
1889
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1886
1890
|
return suspendResult;
|
|
@@ -1904,8 +1908,8 @@
|
|
|
1904
1908
|
while (true);
|
|
1905
1909
|
};
|
|
1906
1910
|
protoOf(GameServer$subscribeWith$slambda).c2d = function ($this$launchDefault, completion) {
|
|
1907
|
-
var i = new GameServer$subscribeWith$slambda(this.
|
|
1908
|
-
i.
|
|
1911
|
+
var i = new GameServer$subscribeWith$slambda(this.h9p_1, this.i9p_1, completion);
|
|
1912
|
+
i.j9p_1 = $this$launchDefault;
|
|
1909
1913
|
return i;
|
|
1910
1914
|
};
|
|
1911
1915
|
function GameServer$subscribeWith$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -1917,18 +1921,18 @@
|
|
|
1917
1921
|
return l;
|
|
1918
1922
|
}
|
|
1919
1923
|
function GameServer$fromClientEvent$slambda($action, resultContinuation) {
|
|
1920
|
-
this.
|
|
1924
|
+
this.s9p_1 = $action;
|
|
1921
1925
|
CoroutineImpl.call(this, resultContinuation);
|
|
1922
1926
|
}
|
|
1923
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
1924
|
-
var tmp = this.
|
|
1927
|
+
protoOf(GameServer$fromClientEvent$slambda).v9p = function ($this$dispatchAsync, store, $completion) {
|
|
1928
|
+
var tmp = this.w9p($this$dispatchAsync, store, $completion);
|
|
1925
1929
|
tmp.t8_1 = Unit_instance;
|
|
1926
1930
|
tmp.u8_1 = null;
|
|
1927
1931
|
return tmp.z8();
|
|
1928
1932
|
};
|
|
1929
1933
|
protoOf(GameServer$fromClientEvent$slambda).i9 = function (p1, p2, $completion) {
|
|
1930
1934
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1931
|
-
return this.
|
|
1935
|
+
return this.v9p(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1932
1936
|
};
|
|
1933
1937
|
protoOf(GameServer$fromClientEvent$slambda).z8 = function () {
|
|
1934
1938
|
var suspendResult = this.t8_1;
|
|
@@ -1937,11 +1941,11 @@
|
|
|
1937
1941
|
var tmp = this.r8_1;
|
|
1938
1942
|
if (tmp === 0) {
|
|
1939
1943
|
this.s8_1 = 1;
|
|
1940
|
-
if (this.
|
|
1941
|
-
if (!get_isCreated(this.
|
|
1944
|
+
if (this.s9p_1 instanceof PlayerReadyFromClientAction)
|
|
1945
|
+
if (!get_isCreated(this.u9p_1.state)) {
|
|
1942
1946
|
return Unit_instance;
|
|
1943
1947
|
}
|
|
1944
|
-
this.
|
|
1948
|
+
this.u9p_1.dispatch(this.s9p_1);
|
|
1945
1949
|
return Unit_instance;
|
|
1946
1950
|
} else if (tmp === 1) {
|
|
1947
1951
|
throw this.u8_1;
|
|
@@ -1952,33 +1956,33 @@
|
|
|
1952
1956
|
}
|
|
1953
1957
|
while (true);
|
|
1954
1958
|
};
|
|
1955
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
1956
|
-
var i = new GameServer$fromClientEvent$slambda(this.
|
|
1957
|
-
i.
|
|
1958
|
-
i.
|
|
1959
|
+
protoOf(GameServer$fromClientEvent$slambda).w9p = function ($this$dispatchAsync, store, completion) {
|
|
1960
|
+
var i = new GameServer$fromClientEvent$slambda(this.s9p_1, completion);
|
|
1961
|
+
i.t9p_1 = $this$dispatchAsync;
|
|
1962
|
+
i.u9p_1 = store;
|
|
1959
1963
|
return i;
|
|
1960
1964
|
};
|
|
1961
1965
|
function GameServer$fromClientEvent$slambda_0($action, resultContinuation) {
|
|
1962
1966
|
var i = new GameServer$fromClientEvent$slambda($action, resultContinuation);
|
|
1963
1967
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1964
|
-
return i.
|
|
1968
|
+
return i.v9p($this$dispatchAsync, store, $completion);
|
|
1965
1969
|
};
|
|
1966
1970
|
l.$arity = 2;
|
|
1967
1971
|
return l;
|
|
1968
1972
|
}
|
|
1969
1973
|
function GameServer$playerLostConnection$slambda($playerId, resultContinuation) {
|
|
1970
|
-
this.
|
|
1974
|
+
this.f9q_1 = $playerId;
|
|
1971
1975
|
CoroutineImpl.call(this, resultContinuation);
|
|
1972
1976
|
}
|
|
1973
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
1974
|
-
var tmp = this.
|
|
1977
|
+
protoOf(GameServer$playerLostConnection$slambda).v9p = function ($this$dispatchAsync, store, $completion) {
|
|
1978
|
+
var tmp = this.w9p($this$dispatchAsync, store, $completion);
|
|
1975
1979
|
tmp.t8_1 = Unit_instance;
|
|
1976
1980
|
tmp.u8_1 = null;
|
|
1977
1981
|
return tmp.z8();
|
|
1978
1982
|
};
|
|
1979
1983
|
protoOf(GameServer$playerLostConnection$slambda).i9 = function (p1, p2, $completion) {
|
|
1980
1984
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1981
|
-
return this.
|
|
1985
|
+
return this.v9p(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1982
1986
|
};
|
|
1983
1987
|
protoOf(GameServer$playerLostConnection$slambda).z8 = function () {
|
|
1984
1988
|
var suspendResult = this.t8_1;
|
|
@@ -1987,12 +1991,12 @@
|
|
|
1987
1991
|
var tmp = this.r8_1;
|
|
1988
1992
|
if (tmp === 0) {
|
|
1989
1993
|
this.s8_1 = 1;
|
|
1990
|
-
if (!get_isCreated(this.
|
|
1994
|
+
if (!get_isCreated(this.h9q_1.state)) {
|
|
1991
1995
|
return Unit_instance;
|
|
1992
1996
|
}
|
|
1993
|
-
var tmp_0 = this.
|
|
1997
|
+
var tmp_0 = this.h9q_1.dispatch;
|
|
1994
1998
|
var tmp0_connectionState = PlayerConnectionState_LOST_CONNECTION_getInstance();
|
|
1995
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
1999
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.f9q_1));
|
|
1996
2000
|
return Unit_instance;
|
|
1997
2001
|
} else if (tmp === 1) {
|
|
1998
2002
|
throw this.u8_1;
|
|
@@ -2003,34 +2007,34 @@
|
|
|
2003
2007
|
}
|
|
2004
2008
|
while (true);
|
|
2005
2009
|
};
|
|
2006
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
2007
|
-
var i = new GameServer$playerLostConnection$slambda(this.
|
|
2008
|
-
i.
|
|
2009
|
-
i.
|
|
2010
|
+
protoOf(GameServer$playerLostConnection$slambda).w9p = function ($this$dispatchAsync, store, completion) {
|
|
2011
|
+
var i = new GameServer$playerLostConnection$slambda(this.f9q_1, completion);
|
|
2012
|
+
i.g9q_1 = $this$dispatchAsync;
|
|
2013
|
+
i.h9q_1 = store;
|
|
2010
2014
|
return i;
|
|
2011
2015
|
};
|
|
2012
2016
|
function GameServer$playerLostConnection$slambda_0($playerId, resultContinuation) {
|
|
2013
2017
|
var i = new GameServer$playerLostConnection$slambda($playerId, resultContinuation);
|
|
2014
2018
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2015
|
-
return i.
|
|
2019
|
+
return i.v9p($this$dispatchAsync, store, $completion);
|
|
2016
2020
|
};
|
|
2017
2021
|
l.$arity = 2;
|
|
2018
2022
|
return l;
|
|
2019
2023
|
}
|
|
2020
2024
|
function GameServer$playerLive$slambda(this$0, $playerId, resultContinuation) {
|
|
2021
|
-
this.
|
|
2022
|
-
this.
|
|
2025
|
+
this.q9q_1 = this$0;
|
|
2026
|
+
this.r9q_1 = $playerId;
|
|
2023
2027
|
CoroutineImpl.call(this, resultContinuation);
|
|
2024
2028
|
}
|
|
2025
|
-
protoOf(GameServer$playerLive$slambda).
|
|
2026
|
-
var tmp = this.
|
|
2029
|
+
protoOf(GameServer$playerLive$slambda).v9p = function ($this$dispatchAsync, store, $completion) {
|
|
2030
|
+
var tmp = this.w9p($this$dispatchAsync, store, $completion);
|
|
2027
2031
|
tmp.t8_1 = Unit_instance;
|
|
2028
2032
|
tmp.u8_1 = null;
|
|
2029
2033
|
return tmp.z8();
|
|
2030
2034
|
};
|
|
2031
2035
|
protoOf(GameServer$playerLive$slambda).i9 = function (p1, p2, $completion) {
|
|
2032
2036
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2033
|
-
return this.
|
|
2037
|
+
return this.v9p(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2034
2038
|
};
|
|
2035
2039
|
protoOf(GameServer$playerLive$slambda).z8 = function () {
|
|
2036
2040
|
var suspendResult = this.t8_1;
|
|
@@ -2039,16 +2043,16 @@
|
|
|
2039
2043
|
var tmp = this.r8_1;
|
|
2040
2044
|
if (tmp === 0) {
|
|
2041
2045
|
this.s8_1 = 1;
|
|
2042
|
-
if (get_isFinished(this.
|
|
2046
|
+
if (get_isFinished(this.t9q_1.state) || get_isFinishing(this.t9q_1.state)) {
|
|
2043
2047
|
return Unit_instance;
|
|
2044
2048
|
}
|
|
2045
|
-
if (!get_isCreated(this.
|
|
2046
|
-
this.
|
|
2049
|
+
if (!get_isCreated(this.t9q_1.state) || !this.q9q_1.u66().u6n()) {
|
|
2050
|
+
this.q9q_1.h4q().w('GameEngine_API', 'playerLive: ' + this.r9q_1 + ' before game is created');
|
|
2047
2051
|
return Unit_instance;
|
|
2048
2052
|
}
|
|
2049
|
-
var tmp_0 = this.
|
|
2053
|
+
var tmp_0 = this.t9q_1.dispatch;
|
|
2050
2054
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
2051
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
2055
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.r9q_1));
|
|
2052
2056
|
return Unit_instance;
|
|
2053
2057
|
} else if (tmp === 1) {
|
|
2054
2058
|
throw this.u8_1;
|
|
@@ -2059,34 +2063,34 @@
|
|
|
2059
2063
|
}
|
|
2060
2064
|
while (true);
|
|
2061
2065
|
};
|
|
2062
|
-
protoOf(GameServer$playerLive$slambda).
|
|
2063
|
-
var i = new GameServer$playerLive$slambda(this.
|
|
2064
|
-
i.
|
|
2065
|
-
i.
|
|
2066
|
+
protoOf(GameServer$playerLive$slambda).w9p = function ($this$dispatchAsync, store, completion) {
|
|
2067
|
+
var i = new GameServer$playerLive$slambda(this.q9q_1, this.r9q_1, completion);
|
|
2068
|
+
i.s9q_1 = $this$dispatchAsync;
|
|
2069
|
+
i.t9q_1 = store;
|
|
2066
2070
|
return i;
|
|
2067
2071
|
};
|
|
2068
2072
|
function GameServer$playerLive$slambda_0(this$0, $playerId, resultContinuation) {
|
|
2069
2073
|
var i = new GameServer$playerLive$slambda(this$0, $playerId, resultContinuation);
|
|
2070
2074
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2071
|
-
return i.
|
|
2075
|
+
return i.v9p($this$dispatchAsync, store, $completion);
|
|
2072
2076
|
};
|
|
2073
2077
|
l.$arity = 2;
|
|
2074
2078
|
return l;
|
|
2075
2079
|
}
|
|
2076
2080
|
function GameServer$playerLeft$slambda(this$0, $playerId, resultContinuation) {
|
|
2077
|
-
this.
|
|
2078
|
-
this.
|
|
2081
|
+
this.c9r_1 = this$0;
|
|
2082
|
+
this.d9r_1 = $playerId;
|
|
2079
2083
|
CoroutineImpl.call(this, resultContinuation);
|
|
2080
2084
|
}
|
|
2081
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
2082
|
-
var tmp = this.
|
|
2085
|
+
protoOf(GameServer$playerLeft$slambda).v9p = function ($this$dispatchAsync, store, $completion) {
|
|
2086
|
+
var tmp = this.w9p($this$dispatchAsync, store, $completion);
|
|
2083
2087
|
tmp.t8_1 = Unit_instance;
|
|
2084
2088
|
tmp.u8_1 = null;
|
|
2085
2089
|
return tmp.z8();
|
|
2086
2090
|
};
|
|
2087
2091
|
protoOf(GameServer$playerLeft$slambda).i9 = function (p1, p2, $completion) {
|
|
2088
2092
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2089
|
-
return this.
|
|
2093
|
+
return this.v9p(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2090
2094
|
};
|
|
2091
2095
|
protoOf(GameServer$playerLeft$slambda).z8 = function () {
|
|
2092
2096
|
var suspendResult = this.t8_1;
|
|
@@ -2095,16 +2099,16 @@
|
|
|
2095
2099
|
var tmp = this.r8_1;
|
|
2096
2100
|
if (tmp === 0) {
|
|
2097
2101
|
this.s8_1 = 1;
|
|
2098
|
-
if (get_isFinished(this.
|
|
2102
|
+
if (get_isFinished(this.f9r_1.state) || get_isFinishing(this.f9r_1.state)) {
|
|
2099
2103
|
return Unit_instance;
|
|
2100
2104
|
}
|
|
2101
|
-
if (!get_isCreated(this.
|
|
2102
|
-
this.
|
|
2105
|
+
if (!get_isCreated(this.f9r_1.state) || !this.c9r_1.u66().u6n()) {
|
|
2106
|
+
this.c9r_1.h4q().w('GameEngine_API', 'playerLeft: ' + this.d9r_1 + ' before game is created');
|
|
2103
2107
|
return Unit_instance;
|
|
2104
2108
|
}
|
|
2105
|
-
var tmp_0 = this.
|
|
2109
|
+
var tmp_0 = this.f9r_1.dispatch;
|
|
2106
2110
|
var tmp0_connectionState = PlayerConnectionState_LEFT_getInstance();
|
|
2107
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
2111
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.d9r_1));
|
|
2108
2112
|
return Unit_instance;
|
|
2109
2113
|
} else if (tmp === 1) {
|
|
2110
2114
|
throw this.u8_1;
|
|
@@ -2115,39 +2119,39 @@
|
|
|
2115
2119
|
}
|
|
2116
2120
|
while (true);
|
|
2117
2121
|
};
|
|
2118
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
2119
|
-
var i = new GameServer$playerLeft$slambda(this.
|
|
2120
|
-
i.
|
|
2121
|
-
i.
|
|
2122
|
+
protoOf(GameServer$playerLeft$slambda).w9p = function ($this$dispatchAsync, store, completion) {
|
|
2123
|
+
var i = new GameServer$playerLeft$slambda(this.c9r_1, this.d9r_1, completion);
|
|
2124
|
+
i.e9r_1 = $this$dispatchAsync;
|
|
2125
|
+
i.f9r_1 = store;
|
|
2122
2126
|
return i;
|
|
2123
2127
|
};
|
|
2124
2128
|
function GameServer$playerLeft$slambda_0(this$0, $playerId, resultContinuation) {
|
|
2125
2129
|
var i = new GameServer$playerLeft$slambda(this$0, $playerId, resultContinuation);
|
|
2126
2130
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2127
|
-
return i.
|
|
2131
|
+
return i.v9p($this$dispatchAsync, store, $completion);
|
|
2128
2132
|
};
|
|
2129
2133
|
l.$arity = 2;
|
|
2130
2134
|
return l;
|
|
2131
2135
|
}
|
|
2132
2136
|
function GameServer$roomOnCreate$slambda($usersArray, $config, this$0, $roomId, $transition, $gameCreatorId, $spectators, resultContinuation) {
|
|
2133
|
-
this.
|
|
2134
|
-
this.
|
|
2135
|
-
this.
|
|
2136
|
-
this.
|
|
2137
|
-
this.
|
|
2138
|
-
this.
|
|
2139
|
-
this.
|
|
2137
|
+
this.o9r_1 = $usersArray;
|
|
2138
|
+
this.p9r_1 = $config;
|
|
2139
|
+
this.q9r_1 = this$0;
|
|
2140
|
+
this.r9r_1 = $roomId;
|
|
2141
|
+
this.s9r_1 = $transition;
|
|
2142
|
+
this.t9r_1 = $gameCreatorId;
|
|
2143
|
+
this.u9r_1 = $spectators;
|
|
2140
2144
|
CoroutineImpl.call(this, resultContinuation);
|
|
2141
2145
|
}
|
|
2142
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
2143
|
-
var tmp = this.
|
|
2146
|
+
protoOf(GameServer$roomOnCreate$slambda).v9p = function ($this$dispatchAsync, store, $completion) {
|
|
2147
|
+
var tmp = this.w9p($this$dispatchAsync, store, $completion);
|
|
2144
2148
|
tmp.t8_1 = Unit_instance;
|
|
2145
2149
|
tmp.u8_1 = null;
|
|
2146
2150
|
return tmp.z8();
|
|
2147
2151
|
};
|
|
2148
2152
|
protoOf(GameServer$roomOnCreate$slambda).i9 = function (p1, p2, $completion) {
|
|
2149
2153
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2150
|
-
return this.
|
|
2154
|
+
return this.v9p(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2151
2155
|
};
|
|
2152
2156
|
protoOf(GameServer$roomOnCreate$slambda).z8 = function () {
|
|
2153
2157
|
var suspendResult = this.t8_1;
|
|
@@ -2156,21 +2160,21 @@
|
|
|
2156
2160
|
var tmp = this.r8_1;
|
|
2157
2161
|
if (tmp === 0) {
|
|
2158
2162
|
this.s8_1 = 1;
|
|
2159
|
-
var users = toList(this.
|
|
2160
|
-
if (!(this.
|
|
2161
|
-
this.
|
|
2162
|
-
this.
|
|
2163
|
+
var users = toList(this.o9r_1);
|
|
2164
|
+
if (!(this.p9r_1.playersMode.count === users.o())) {
|
|
2165
|
+
this.q9r_1.h4q().w('GameEngine_API', 'roomOnCreate: wrong player count for game ' + this.r9r_1 + ', config = ' + this.p9r_1.toString() + ', users = ' + toString(users));
|
|
2166
|
+
this.w9r_1.dispatch(Companion_instance.fromTableWithAnalytics(new GameErrorReason(Reason_SERVER_ERROR_getInstance()), this.q9r_1.table.isGameFinished, this.q9r_1.table));
|
|
2163
2167
|
return Unit_instance;
|
|
2164
2168
|
}
|
|
2165
2169
|
var tmp_0;
|
|
2166
|
-
if (this.
|
|
2167
|
-
tmp_0 = _get_random__h29cgo(this.
|
|
2170
|
+
if (this.p9r_1.mode.shufflePlayers && this.s9r_1 == null) {
|
|
2171
|
+
tmp_0 = _get_random__h29cgo(this.q9r_1).q5d(toMutableList(users));
|
|
2168
2172
|
} else {
|
|
2169
|
-
var tmp0_safe_receiver = this.
|
|
2173
|
+
var tmp0_safe_receiver = this.s9r_1;
|
|
2170
2174
|
var previousPlayers = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.previousPlayers;
|
|
2171
2175
|
var tmp_1;
|
|
2172
|
-
if (!(previousPlayers == null) && this.
|
|
2173
|
-
var tmp_2 = _get_teamsLogicProvider__u10pm6(this.
|
|
2176
|
+
if (!(previousPlayers == null) && this.p9r_1.playersMode.isTeamGame) {
|
|
2177
|
+
var tmp_2 = _get_teamsLogicProvider__u10pm6(this.q9r_1);
|
|
2174
2178
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(previousPlayers, 10));
|
|
2175
2179
|
var _iterator__ex2g4s = previousPlayers.l();
|
|
2176
2180
|
while (_iterator__ex2g4s.m()) {
|
|
@@ -2201,19 +2205,19 @@
|
|
|
2201
2205
|
destination_1.j(destination_2);
|
|
2202
2206
|
}
|
|
2203
2207
|
var updatedTeams = destination_1;
|
|
2204
|
-
tmp_1 = _get_teamsLogicProvider__u10pm6(this.
|
|
2208
|
+
tmp_1 = _get_teamsLogicProvider__u10pm6(this.q9r_1).q8j(updatedTeams);
|
|
2205
2209
|
} else {
|
|
2206
2210
|
tmp_1 = users;
|
|
2207
2211
|
}
|
|
2208
2212
|
tmp_0 = tmp_1;
|
|
2209
2213
|
}
|
|
2210
2214
|
var updatedUsers = tmp_0;
|
|
2211
|
-
var gameCreatorUser = getPlayer(users, this.
|
|
2212
|
-
var tmp_3 = this.
|
|
2215
|
+
var gameCreatorUser = getPlayer(users, this.t9r_1);
|
|
2216
|
+
var tmp_3 = this.w9r_1.dispatch;
|
|
2213
2217
|
var tmp1_version = get_versionOrDefault(GameEngineConfig_instance);
|
|
2214
2218
|
var tmp2_users = sortWithItem(updatedUsers, gameCreatorUser);
|
|
2215
|
-
var tmp3_spectators = toList(this.
|
|
2216
|
-
tmp_3(new StartGameMechanicAction(this.
|
|
2219
|
+
var tmp3_spectators = toList(this.u9r_1);
|
|
2220
|
+
tmp_3(new StartGameMechanicAction(this.p9r_1, this.r9r_1, tmp1_version, this.t9r_1, tmp2_users, VOID, tmp3_spectators));
|
|
2217
2221
|
return Unit_instance;
|
|
2218
2222
|
} else if (tmp === 1) {
|
|
2219
2223
|
throw this.u8_1;
|
|
@@ -2224,33 +2228,33 @@
|
|
|
2224
2228
|
}
|
|
2225
2229
|
while (true);
|
|
2226
2230
|
};
|
|
2227
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
2228
|
-
var i = new GameServer$roomOnCreate$slambda(this.p9r_1, this.q9r_1, this.r9r_1, this.s9r_1, this.t9r_1, this.u9r_1,
|
|
2229
|
-
i.
|
|
2230
|
-
i.
|
|
2231
|
+
protoOf(GameServer$roomOnCreate$slambda).w9p = function ($this$dispatchAsync, store, completion) {
|
|
2232
|
+
var i = new GameServer$roomOnCreate$slambda(this.o9r_1, this.p9r_1, this.q9r_1, this.r9r_1, this.s9r_1, this.t9r_1, this.u9r_1, completion);
|
|
2233
|
+
i.v9r_1 = $this$dispatchAsync;
|
|
2234
|
+
i.w9r_1 = store;
|
|
2231
2235
|
return i;
|
|
2232
2236
|
};
|
|
2233
2237
|
function GameServer$roomOnCreate$slambda_0($usersArray, $config, this$0, $roomId, $transition, $gameCreatorId, $spectators, resultContinuation) {
|
|
2234
2238
|
var i = new GameServer$roomOnCreate$slambda($usersArray, $config, this$0, $roomId, $transition, $gameCreatorId, $spectators, resultContinuation);
|
|
2235
2239
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2236
|
-
return i.
|
|
2240
|
+
return i.v9p($this$dispatchAsync, store, $completion);
|
|
2237
2241
|
};
|
|
2238
2242
|
l.$arity = 2;
|
|
2239
2243
|
return l;
|
|
2240
2244
|
}
|
|
2241
2245
|
function GameServer$roomOnContinueFromState$slambda($state, resultContinuation) {
|
|
2242
|
-
this.
|
|
2246
|
+
this.f9s_1 = $state;
|
|
2243
2247
|
CoroutineImpl.call(this, resultContinuation);
|
|
2244
2248
|
}
|
|
2245
|
-
protoOf(GameServer$roomOnContinueFromState$slambda).
|
|
2246
|
-
var tmp = this.
|
|
2249
|
+
protoOf(GameServer$roomOnContinueFromState$slambda).i9s = function ($this$dispatchAwait, store, $completion) {
|
|
2250
|
+
var tmp = this.w9p($this$dispatchAwait, store, $completion);
|
|
2247
2251
|
tmp.t8_1 = Unit_instance;
|
|
2248
2252
|
tmp.u8_1 = null;
|
|
2249
2253
|
return tmp.z8();
|
|
2250
2254
|
};
|
|
2251
2255
|
protoOf(GameServer$roomOnContinueFromState$slambda).i9 = function (p1, p2, $completion) {
|
|
2252
2256
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2253
|
-
return this.
|
|
2257
|
+
return this.i9s(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2254
2258
|
};
|
|
2255
2259
|
protoOf(GameServer$roomOnContinueFromState$slambda).z8 = function () {
|
|
2256
2260
|
var suspendResult = this.t8_1;
|
|
@@ -2259,10 +2263,10 @@
|
|
|
2259
2263
|
var tmp = this.r8_1;
|
|
2260
2264
|
if (tmp === 0) {
|
|
2261
2265
|
this.s8_1 = 1;
|
|
2262
|
-
if (get_isCreating(this.
|
|
2263
|
-
var tmp_0 = this.
|
|
2266
|
+
if (get_isCreating(this.h9s_1.state)) {
|
|
2267
|
+
var tmp_0 = this.h9s_1.dispatch;
|
|
2264
2268
|
var tmp0_reason = new RestartRoundReason(null);
|
|
2265
|
-
var tmp1_table = this.
|
|
2269
|
+
var tmp1_table = this.f9s_1.table;
|
|
2266
2270
|
tmp_0(new ContinueGameMechanicAction(tmp1_table, tmp0_reason));
|
|
2267
2271
|
return true;
|
|
2268
2272
|
}
|
|
@@ -2276,34 +2280,34 @@
|
|
|
2276
2280
|
}
|
|
2277
2281
|
while (true);
|
|
2278
2282
|
};
|
|
2279
|
-
protoOf(GameServer$roomOnContinueFromState$slambda).
|
|
2280
|
-
var i = new GameServer$roomOnContinueFromState$slambda(this.
|
|
2281
|
-
i.
|
|
2282
|
-
i.
|
|
2283
|
+
protoOf(GameServer$roomOnContinueFromState$slambda).w9p = function ($this$dispatchAwait, store, completion) {
|
|
2284
|
+
var i = new GameServer$roomOnContinueFromState$slambda(this.f9s_1, completion);
|
|
2285
|
+
i.g9s_1 = $this$dispatchAwait;
|
|
2286
|
+
i.h9s_1 = store;
|
|
2283
2287
|
return i;
|
|
2284
2288
|
};
|
|
2285
2289
|
function GameServer$roomOnContinueFromState$slambda_0($state, resultContinuation) {
|
|
2286
2290
|
var i = new GameServer$roomOnContinueFromState$slambda($state, resultContinuation);
|
|
2287
2291
|
var l = function ($this$dispatchAwait, store, $completion) {
|
|
2288
|
-
return i.
|
|
2292
|
+
return i.i9s($this$dispatchAwait, store, $completion);
|
|
2289
2293
|
};
|
|
2290
2294
|
l.$arity = 2;
|
|
2291
2295
|
return l;
|
|
2292
2296
|
}
|
|
2293
2297
|
function GameServer$roomOnContinueFromState$slambda_1($isCreated, $state, resultContinuation) {
|
|
2294
|
-
this.
|
|
2295
|
-
this.
|
|
2298
|
+
this.r9s_1 = $isCreated;
|
|
2299
|
+
this.s9s_1 = $state;
|
|
2296
2300
|
CoroutineImpl.call(this, resultContinuation);
|
|
2297
2301
|
}
|
|
2298
|
-
protoOf(GameServer$roomOnContinueFromState$slambda_1).
|
|
2299
|
-
var tmp = this.
|
|
2302
|
+
protoOf(GameServer$roomOnContinueFromState$slambda_1).v9p = function ($this$dispatchAsync, store, $completion) {
|
|
2303
|
+
var tmp = this.w9p($this$dispatchAsync, store, $completion);
|
|
2300
2304
|
tmp.t8_1 = Unit_instance;
|
|
2301
2305
|
tmp.u8_1 = null;
|
|
2302
2306
|
return tmp.z8();
|
|
2303
2307
|
};
|
|
2304
2308
|
protoOf(GameServer$roomOnContinueFromState$slambda_1).i9 = function (p1, p2, $completion) {
|
|
2305
2309
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2306
|
-
return this.
|
|
2310
|
+
return this.v9p(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2307
2311
|
};
|
|
2308
2312
|
protoOf(GameServer$roomOnContinueFromState$slambda_1).z8 = function () {
|
|
2309
2313
|
var suspendResult = this.t8_1;
|
|
@@ -2314,7 +2318,7 @@
|
|
|
2314
2318
|
case 0:
|
|
2315
2319
|
this.s8_1 = 3;
|
|
2316
2320
|
this.r8_1 = 1;
|
|
2317
|
-
suspendResult = this.
|
|
2321
|
+
suspendResult = this.r9s_1.z1t(this);
|
|
2318
2322
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2319
2323
|
return suspendResult;
|
|
2320
2324
|
}
|
|
@@ -2322,10 +2326,10 @@
|
|
|
2322
2326
|
continue $sm;
|
|
2323
2327
|
case 1:
|
|
2324
2328
|
if (suspendResult) {
|
|
2325
|
-
var _iterator__ex2g4s = this.
|
|
2329
|
+
var _iterator__ex2g4s = this.s9s_1.actions.l();
|
|
2326
2330
|
while (_iterator__ex2g4s.m()) {
|
|
2327
2331
|
var element = _iterator__ex2g4s.n();
|
|
2328
|
-
this.
|
|
2332
|
+
this.u9s_1.dispatch(element);
|
|
2329
2333
|
}
|
|
2330
2334
|
this.r8_1 = 2;
|
|
2331
2335
|
continue $sm;
|
|
@@ -2350,35 +2354,35 @@
|
|
|
2350
2354
|
}
|
|
2351
2355
|
while (true);
|
|
2352
2356
|
};
|
|
2353
|
-
protoOf(GameServer$roomOnContinueFromState$slambda_1).
|
|
2354
|
-
var i = new GameServer$roomOnContinueFromState$slambda_1(this.
|
|
2355
|
-
i.
|
|
2356
|
-
i.
|
|
2357
|
+
protoOf(GameServer$roomOnContinueFromState$slambda_1).w9p = function ($this$dispatchAsync, store, completion) {
|
|
2358
|
+
var i = new GameServer$roomOnContinueFromState$slambda_1(this.r9s_1, this.s9s_1, completion);
|
|
2359
|
+
i.t9s_1 = $this$dispatchAsync;
|
|
2360
|
+
i.u9s_1 = store;
|
|
2357
2361
|
return i;
|
|
2358
2362
|
};
|
|
2359
2363
|
function GameServer$roomOnContinueFromState$slambda_2($isCreated, $state, resultContinuation) {
|
|
2360
2364
|
var i = new GameServer$roomOnContinueFromState$slambda_1($isCreated, $state, resultContinuation);
|
|
2361
2365
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2362
|
-
return i.
|
|
2366
|
+
return i.v9p($this$dispatchAsync, store, $completion);
|
|
2363
2367
|
};
|
|
2364
2368
|
l.$arity = 2;
|
|
2365
2369
|
return l;
|
|
2366
2370
|
}
|
|
2367
2371
|
function GameServer$roomOnContinueFromRound$slambda($tableLite, $roomId, this$0, resultContinuation) {
|
|
2368
|
-
this.
|
|
2369
|
-
this.
|
|
2370
|
-
this.
|
|
2372
|
+
this.d9t_1 = $tableLite;
|
|
2373
|
+
this.e9t_1 = $roomId;
|
|
2374
|
+
this.f9t_1 = this$0;
|
|
2371
2375
|
CoroutineImpl.call(this, resultContinuation);
|
|
2372
2376
|
}
|
|
2373
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda).
|
|
2374
|
-
var tmp = this.
|
|
2377
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda).v9p = function ($this$dispatchAsync, store, $completion) {
|
|
2378
|
+
var tmp = this.w9p($this$dispatchAsync, store, $completion);
|
|
2375
2379
|
tmp.t8_1 = Unit_instance;
|
|
2376
2380
|
tmp.u8_1 = null;
|
|
2377
2381
|
return tmp.z8();
|
|
2378
2382
|
};
|
|
2379
2383
|
protoOf(GameServer$roomOnContinueFromRound$slambda).i9 = function (p1, p2, $completion) {
|
|
2380
2384
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2381
|
-
return this.
|
|
2385
|
+
return this.v9p(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2382
2386
|
};
|
|
2383
2387
|
protoOf(GameServer$roomOnContinueFromRound$slambda).z8 = function () {
|
|
2384
2388
|
var suspendResult = this.t8_1;
|
|
@@ -2387,9 +2391,9 @@
|
|
|
2387
2391
|
var tmp = this.r8_1;
|
|
2388
2392
|
if (tmp === 0) {
|
|
2389
2393
|
this.s8_1 = 1;
|
|
2390
|
-
var tmp_0 = this.
|
|
2391
|
-
var tmp0_reason = new RestartRoundReason(this.
|
|
2392
|
-
var tmp1_table = Companion_instance_0.restartRound(this.
|
|
2394
|
+
var tmp_0 = this.h9t_1.dispatch;
|
|
2395
|
+
var tmp0_reason = new RestartRoundReason(this.d9t_1.gameInfo.round.roundNumber);
|
|
2396
|
+
var tmp1_table = Companion_instance_0.restartRound(this.e9t_1, _get_idsProvider__fnfajc(this.f9t_1).c6e(), get_versionOrDefault(GameEngineConfig_instance), this.d9t_1);
|
|
2393
2397
|
tmp_0(new ContinueGameMechanicAction(tmp1_table, tmp0_reason));
|
|
2394
2398
|
return Unit_instance;
|
|
2395
2399
|
} else if (tmp === 1) {
|
|
@@ -2401,16 +2405,16 @@
|
|
|
2401
2405
|
}
|
|
2402
2406
|
while (true);
|
|
2403
2407
|
};
|
|
2404
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda).
|
|
2405
|
-
var i = new GameServer$roomOnContinueFromRound$slambda(this.
|
|
2406
|
-
i.
|
|
2407
|
-
i.
|
|
2408
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda).w9p = function ($this$dispatchAsync, store, completion) {
|
|
2409
|
+
var i = new GameServer$roomOnContinueFromRound$slambda(this.d9t_1, this.e9t_1, this.f9t_1, completion);
|
|
2410
|
+
i.g9t_1 = $this$dispatchAsync;
|
|
2411
|
+
i.h9t_1 = store;
|
|
2408
2412
|
return i;
|
|
2409
2413
|
};
|
|
2410
2414
|
function GameServer$roomOnContinueFromRound$slambda_0($tableLite, $roomId, this$0, resultContinuation) {
|
|
2411
2415
|
var i = new GameServer$roomOnContinueFromRound$slambda($tableLite, $roomId, this$0, resultContinuation);
|
|
2412
2416
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2413
|
-
return i.
|
|
2417
|
+
return i.v9p($this$dispatchAsync, store, $completion);
|
|
2414
2418
|
};
|
|
2415
2419
|
l.$arity = 2;
|
|
2416
2420
|
return l;
|
|
@@ -2418,15 +2422,15 @@
|
|
|
2418
2422
|
function GameServer$roomOnContinueFromRound$slambda_1(resultContinuation) {
|
|
2419
2423
|
CoroutineImpl.call(this, resultContinuation);
|
|
2420
2424
|
}
|
|
2421
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda_1).
|
|
2422
|
-
var tmp = this.
|
|
2425
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda_1).v9p = function ($this$dispatchAsync, store, $completion) {
|
|
2426
|
+
var tmp = this.w9p($this$dispatchAsync, store, $completion);
|
|
2423
2427
|
tmp.t8_1 = Unit_instance;
|
|
2424
2428
|
tmp.u8_1 = null;
|
|
2425
2429
|
return tmp.z8();
|
|
2426
2430
|
};
|
|
2427
2431
|
protoOf(GameServer$roomOnContinueFromRound$slambda_1).i9 = function (p1, p2, $completion) {
|
|
2428
2432
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2429
|
-
return this.
|
|
2433
|
+
return this.v9p(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2430
2434
|
};
|
|
2431
2435
|
protoOf(GameServer$roomOnContinueFromRound$slambda_1).z8 = function () {
|
|
2432
2436
|
var suspendResult = this.t8_1;
|
|
@@ -2435,7 +2439,7 @@
|
|
|
2435
2439
|
var tmp = this.r8_1;
|
|
2436
2440
|
if (tmp === 0) {
|
|
2437
2441
|
this.s8_1 = 1;
|
|
2438
|
-
this.
|
|
2442
|
+
this.r9t_1.dispatch(new SceneEndedMechanicAction('CALC_POINTS'));
|
|
2439
2443
|
return Unit_instance;
|
|
2440
2444
|
} else if (tmp === 1) {
|
|
2441
2445
|
throw this.u8_1;
|
|
@@ -2446,33 +2450,33 @@
|
|
|
2446
2450
|
}
|
|
2447
2451
|
while (true);
|
|
2448
2452
|
};
|
|
2449
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda_1).
|
|
2453
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda_1).w9p = function ($this$dispatchAsync, store, completion) {
|
|
2450
2454
|
var i = new GameServer$roomOnContinueFromRound$slambda_1(completion);
|
|
2451
|
-
i.
|
|
2452
|
-
i.
|
|
2455
|
+
i.q9t_1 = $this$dispatchAsync;
|
|
2456
|
+
i.r9t_1 = store;
|
|
2453
2457
|
return i;
|
|
2454
2458
|
};
|
|
2455
2459
|
function GameServer$roomOnContinueFromRound$slambda_2(resultContinuation) {
|
|
2456
2460
|
var i = new GameServer$roomOnContinueFromRound$slambda_1(resultContinuation);
|
|
2457
2461
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2458
|
-
return i.
|
|
2462
|
+
return i.v9p($this$dispatchAsync, store, $completion);
|
|
2459
2463
|
};
|
|
2460
2464
|
l.$arity = 2;
|
|
2461
2465
|
return l;
|
|
2462
2466
|
}
|
|
2463
2467
|
function GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation) {
|
|
2464
|
-
this.
|
|
2468
|
+
this.a9u_1 = $spectators;
|
|
2465
2469
|
CoroutineImpl.call(this, resultContinuation);
|
|
2466
2470
|
}
|
|
2467
|
-
protoOf(GameServer$addSpectatorsToRoom$slambda).
|
|
2468
|
-
var tmp = this.
|
|
2471
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).v9p = function ($this$dispatchAsync, store, $completion) {
|
|
2472
|
+
var tmp = this.w9p($this$dispatchAsync, store, $completion);
|
|
2469
2473
|
tmp.t8_1 = Unit_instance;
|
|
2470
2474
|
tmp.u8_1 = null;
|
|
2471
2475
|
return tmp.z8();
|
|
2472
2476
|
};
|
|
2473
2477
|
protoOf(GameServer$addSpectatorsToRoom$slambda).i9 = function (p1, p2, $completion) {
|
|
2474
2478
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2475
|
-
return this.
|
|
2479
|
+
return this.v9p(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2476
2480
|
};
|
|
2477
2481
|
protoOf(GameServer$addSpectatorsToRoom$slambda).z8 = function () {
|
|
2478
2482
|
var suspendResult = this.t8_1;
|
|
@@ -2481,7 +2485,7 @@
|
|
|
2481
2485
|
var tmp = this.r8_1;
|
|
2482
2486
|
if (tmp === 0) {
|
|
2483
2487
|
this.s8_1 = 1;
|
|
2484
|
-
this.
|
|
2488
|
+
this.c9u_1.dispatch(new AddSpectatorsAction(toList(this.a9u_1)));
|
|
2485
2489
|
return Unit_instance;
|
|
2486
2490
|
} else if (tmp === 1) {
|
|
2487
2491
|
throw this.u8_1;
|
|
@@ -2492,33 +2496,33 @@
|
|
|
2492
2496
|
}
|
|
2493
2497
|
while (true);
|
|
2494
2498
|
};
|
|
2495
|
-
protoOf(GameServer$addSpectatorsToRoom$slambda).
|
|
2496
|
-
var i = new GameServer$addSpectatorsToRoom$slambda(this.
|
|
2497
|
-
i.
|
|
2498
|
-
i.
|
|
2499
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).w9p = function ($this$dispatchAsync, store, completion) {
|
|
2500
|
+
var i = new GameServer$addSpectatorsToRoom$slambda(this.a9u_1, completion);
|
|
2501
|
+
i.b9u_1 = $this$dispatchAsync;
|
|
2502
|
+
i.c9u_1 = store;
|
|
2499
2503
|
return i;
|
|
2500
2504
|
};
|
|
2501
2505
|
function GameServer$addSpectatorsToRoom$slambda_0($spectators, resultContinuation) {
|
|
2502
2506
|
var i = new GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation);
|
|
2503
2507
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2504
|
-
return i.
|
|
2508
|
+
return i.v9p($this$dispatchAsync, store, $completion);
|
|
2505
2509
|
};
|
|
2506
2510
|
l.$arity = 2;
|
|
2507
2511
|
return l;
|
|
2508
2512
|
}
|
|
2509
2513
|
function GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation) {
|
|
2510
|
-
this.
|
|
2514
|
+
this.l9u_1 = $spectators;
|
|
2511
2515
|
CoroutineImpl.call(this, resultContinuation);
|
|
2512
2516
|
}
|
|
2513
|
-
protoOf(GameServer$removeSpectatorsFromRoom$slambda).
|
|
2514
|
-
var tmp = this.
|
|
2517
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).v9p = function ($this$dispatchAsync, store, $completion) {
|
|
2518
|
+
var tmp = this.w9p($this$dispatchAsync, store, $completion);
|
|
2515
2519
|
tmp.t8_1 = Unit_instance;
|
|
2516
2520
|
tmp.u8_1 = null;
|
|
2517
2521
|
return tmp.z8();
|
|
2518
2522
|
};
|
|
2519
2523
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).i9 = function (p1, p2, $completion) {
|
|
2520
2524
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2521
|
-
return this.
|
|
2525
|
+
return this.v9p(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2522
2526
|
};
|
|
2523
2527
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).z8 = function () {
|
|
2524
2528
|
var suspendResult = this.t8_1;
|
|
@@ -2527,7 +2531,7 @@
|
|
|
2527
2531
|
var tmp = this.r8_1;
|
|
2528
2532
|
if (tmp === 0) {
|
|
2529
2533
|
this.s8_1 = 1;
|
|
2530
|
-
this.
|
|
2534
|
+
this.n9u_1.dispatch(new RemoveSpectatorsAction(toList(this.l9u_1)));
|
|
2531
2535
|
return Unit_instance;
|
|
2532
2536
|
} else if (tmp === 1) {
|
|
2533
2537
|
throw this.u8_1;
|
|
@@ -2538,34 +2542,34 @@
|
|
|
2538
2542
|
}
|
|
2539
2543
|
while (true);
|
|
2540
2544
|
};
|
|
2541
|
-
protoOf(GameServer$removeSpectatorsFromRoom$slambda).
|
|
2542
|
-
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.
|
|
2543
|
-
i.
|
|
2544
|
-
i.
|
|
2545
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).w9p = function ($this$dispatchAsync, store, completion) {
|
|
2546
|
+
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.l9u_1, completion);
|
|
2547
|
+
i.m9u_1 = $this$dispatchAsync;
|
|
2548
|
+
i.n9u_1 = store;
|
|
2545
2549
|
return i;
|
|
2546
2550
|
};
|
|
2547
2551
|
function GameServer$removeSpectatorsFromRoom$slambda_0($spectators, resultContinuation) {
|
|
2548
2552
|
var i = new GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation);
|
|
2549
2553
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2550
|
-
return i.
|
|
2554
|
+
return i.v9p($this$dispatchAsync, store, $completion);
|
|
2551
2555
|
};
|
|
2552
2556
|
l.$arity = 2;
|
|
2553
2557
|
return l;
|
|
2554
2558
|
}
|
|
2555
2559
|
function GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation) {
|
|
2556
|
-
this.
|
|
2557
|
-
this.
|
|
2560
|
+
this.w9u_1 = $playerId;
|
|
2561
|
+
this.x9u_1 = this$0;
|
|
2558
2562
|
CoroutineImpl.call(this, resultContinuation);
|
|
2559
2563
|
}
|
|
2560
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
2561
|
-
var tmp = this.
|
|
2564
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).v9p = function ($this$dispatchAsync, store, $completion) {
|
|
2565
|
+
var tmp = this.w9p($this$dispatchAsync, store, $completion);
|
|
2562
2566
|
tmp.t8_1 = Unit_instance;
|
|
2563
2567
|
tmp.u8_1 = null;
|
|
2564
2568
|
return tmp.z8();
|
|
2565
2569
|
};
|
|
2566
2570
|
protoOf(GameServer$roomRefreshPlayerState$slambda).i9 = function (p1, p2, $completion) {
|
|
2567
2571
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2568
|
-
return this.
|
|
2572
|
+
return this.v9p(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2569
2573
|
};
|
|
2570
2574
|
protoOf(GameServer$roomRefreshPlayerState$slambda).z8 = function () {
|
|
2571
2575
|
var suspendResult = this.t8_1;
|
|
@@ -2574,14 +2578,14 @@
|
|
|
2574
2578
|
var tmp = this.r8_1;
|
|
2575
2579
|
if (tmp === 0) {
|
|
2576
2580
|
this.s8_1 = 1;
|
|
2577
|
-
var table = this.
|
|
2578
|
-
var player = getPlayer(table.players, this.
|
|
2581
|
+
var table = this.z9u_1.state.t6n();
|
|
2582
|
+
var player = getPlayer(table.players, this.w9u_1);
|
|
2579
2583
|
if (player.y6q_1.x68().o67_1.isLive) {
|
|
2580
|
-
this.
|
|
2584
|
+
this.z9u_1.dispatch(_get_playerConnectionInteractor__si6cxf(this.x9u_1).g8q(player, table));
|
|
2581
2585
|
} else {
|
|
2582
|
-
var tmp_0 = this.
|
|
2586
|
+
var tmp_0 = this.z9u_1.dispatch;
|
|
2583
2587
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
2584
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
2588
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.w9u_1));
|
|
2585
2589
|
}
|
|
2586
2590
|
return Unit_instance;
|
|
2587
2591
|
} else if (tmp === 1) {
|
|
@@ -2593,34 +2597,34 @@
|
|
|
2593
2597
|
}
|
|
2594
2598
|
while (true);
|
|
2595
2599
|
};
|
|
2596
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
2597
|
-
var i = new GameServer$roomRefreshPlayerState$slambda(this.
|
|
2598
|
-
i.
|
|
2599
|
-
i.
|
|
2600
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).w9p = function ($this$dispatchAsync, store, completion) {
|
|
2601
|
+
var i = new GameServer$roomRefreshPlayerState$slambda(this.w9u_1, this.x9u_1, completion);
|
|
2602
|
+
i.y9u_1 = $this$dispatchAsync;
|
|
2603
|
+
i.z9u_1 = store;
|
|
2600
2604
|
return i;
|
|
2601
2605
|
};
|
|
2602
2606
|
function GameServer$roomRefreshPlayerState$slambda_0($playerId, this$0, resultContinuation) {
|
|
2603
2607
|
var i = new GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation);
|
|
2604
2608
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2605
|
-
return i.
|
|
2609
|
+
return i.v9p($this$dispatchAsync, store, $completion);
|
|
2606
2610
|
};
|
|
2607
2611
|
l.$arity = 2;
|
|
2608
2612
|
return l;
|
|
2609
2613
|
}
|
|
2610
2614
|
function GameServer$roomOnDelete$slambda(this$0, $newRid, resultContinuation) {
|
|
2611
|
-
this.
|
|
2612
|
-
this.
|
|
2615
|
+
this.i9v_1 = this$0;
|
|
2616
|
+
this.j9v_1 = $newRid;
|
|
2613
2617
|
CoroutineImpl.call(this, resultContinuation);
|
|
2614
2618
|
}
|
|
2615
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
2616
|
-
var tmp = this.
|
|
2619
|
+
protoOf(GameServer$roomOnDelete$slambda).v9p = function ($this$dispatchAsync, store, $completion) {
|
|
2620
|
+
var tmp = this.w9p($this$dispatchAsync, store, $completion);
|
|
2617
2621
|
tmp.t8_1 = Unit_instance;
|
|
2618
2622
|
tmp.u8_1 = null;
|
|
2619
2623
|
return tmp.z8();
|
|
2620
2624
|
};
|
|
2621
2625
|
protoOf(GameServer$roomOnDelete$slambda).i9 = function (p1, p2, $completion) {
|
|
2622
2626
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2623
|
-
return this.
|
|
2627
|
+
return this.v9p(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2624
2628
|
};
|
|
2625
2629
|
protoOf(GameServer$roomOnDelete$slambda).z8 = function () {
|
|
2626
2630
|
var suspendResult = this.t8_1;
|
|
@@ -2629,10 +2633,10 @@
|
|
|
2629
2633
|
var tmp = this.r8_1;
|
|
2630
2634
|
if (tmp === 0) {
|
|
2631
2635
|
this.s8_1 = 1;
|
|
2632
|
-
var it = this.
|
|
2636
|
+
var it = this.i9v_1.u66().t6m_1;
|
|
2633
2637
|
var tmp_0;
|
|
2634
2638
|
if (it == null) {
|
|
2635
|
-
this.
|
|
2639
|
+
this.i9v_1.h4q().w('GameEngine_API', "GameServer: Termination reason can't be null");
|
|
2636
2640
|
tmp_0 = new TerminationState(new GameErrorReason(Reason_GAME_NOT_EXISTS_getInstance()));
|
|
2637
2641
|
} else {
|
|
2638
2642
|
tmp_0 = it;
|
|
@@ -2641,15 +2645,15 @@
|
|
|
2641
2645
|
var gameTransition = terminationState.d8u_1;
|
|
2642
2646
|
var tmp_1;
|
|
2643
2647
|
if (gameTransition instanceof GameToRoomTransition) {
|
|
2644
|
-
var tmp0_elvis_lhs = this.
|
|
2648
|
+
var tmp0_elvis_lhs = this.j9v_1;
|
|
2645
2649
|
tmp_1 = gameTransition.copy(tmp0_elvis_lhs == null ? gameTransition.roomId : tmp0_elvis_lhs);
|
|
2646
2650
|
} else {
|
|
2647
2651
|
tmp_1 = gameTransition;
|
|
2648
2652
|
}
|
|
2649
2653
|
var transition = tmp_1;
|
|
2650
|
-
var tmp_2 = this.
|
|
2654
|
+
var tmp_2 = this.l9v_1.dispatch;
|
|
2651
2655
|
var tmp0_reason = terminationState.c8u_1;
|
|
2652
|
-
var tmp1_isGameFinished = this.
|
|
2656
|
+
var tmp1_isGameFinished = this.i9v_1.u66().t6n().isGameFinished;
|
|
2653
2657
|
tmp_2(new FinishGameMechanicAction(tmp0_reason, tmp1_isGameFinished, VOID, transition));
|
|
2654
2658
|
return Unit_instance;
|
|
2655
2659
|
} else if (tmp === 1) {
|
|
@@ -2661,33 +2665,33 @@
|
|
|
2661
2665
|
}
|
|
2662
2666
|
while (true);
|
|
2663
2667
|
};
|
|
2664
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
2665
|
-
var i = new GameServer$roomOnDelete$slambda(this.
|
|
2666
|
-
i.
|
|
2667
|
-
i.
|
|
2668
|
+
protoOf(GameServer$roomOnDelete$slambda).w9p = function ($this$dispatchAsync, store, completion) {
|
|
2669
|
+
var i = new GameServer$roomOnDelete$slambda(this.i9v_1, this.j9v_1, completion);
|
|
2670
|
+
i.k9v_1 = $this$dispatchAsync;
|
|
2671
|
+
i.l9v_1 = store;
|
|
2668
2672
|
return i;
|
|
2669
2673
|
};
|
|
2670
2674
|
function GameServer$roomOnDelete$slambda_0(this$0, $newRid, resultContinuation) {
|
|
2671
2675
|
var i = new GameServer$roomOnDelete$slambda(this$0, $newRid, resultContinuation);
|
|
2672
2676
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2673
|
-
return i.
|
|
2677
|
+
return i.v9p($this$dispatchAsync, store, $completion);
|
|
2674
2678
|
};
|
|
2675
2679
|
l.$arity = 2;
|
|
2676
2680
|
return l;
|
|
2677
2681
|
}
|
|
2678
2682
|
function GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation) {
|
|
2679
|
-
this.
|
|
2683
|
+
this.u9v_1 = $enabled;
|
|
2680
2684
|
CoroutineImpl.call(this, resultContinuation);
|
|
2681
2685
|
}
|
|
2682
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
2683
|
-
var tmp = this.
|
|
2686
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).v9p = function ($this$dispatchAsync, store, $completion) {
|
|
2687
|
+
var tmp = this.w9p($this$dispatchAsync, store, $completion);
|
|
2684
2688
|
tmp.t8_1 = Unit_instance;
|
|
2685
2689
|
tmp.u8_1 = null;
|
|
2686
2690
|
return tmp.z8();
|
|
2687
2691
|
};
|
|
2688
2692
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).i9 = function (p1, p2, $completion) {
|
|
2689
2693
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2690
|
-
return this.
|
|
2694
|
+
return this.v9p(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2691
2695
|
};
|
|
2692
2696
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).z8 = function () {
|
|
2693
2697
|
var suspendResult = this.t8_1;
|
|
@@ -2696,7 +2700,7 @@
|
|
|
2696
2700
|
var tmp = this.r8_1;
|
|
2697
2701
|
if (tmp === 0) {
|
|
2698
2702
|
this.s8_1 = 1;
|
|
2699
|
-
this.
|
|
2703
|
+
this.w9v_1.dispatch(new UpdateServerConfigAction(get_serverStatePayload_0(this.w9v_1.state).config.copy(VOID, this.u9v_1)));
|
|
2700
2704
|
return Unit_instance;
|
|
2701
2705
|
} else if (tmp === 1) {
|
|
2702
2706
|
throw this.u8_1;
|
|
@@ -2707,35 +2711,35 @@
|
|
|
2707
2711
|
}
|
|
2708
2712
|
while (true);
|
|
2709
2713
|
};
|
|
2710
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
2711
|
-
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.
|
|
2712
|
-
i.
|
|
2713
|
-
i.
|
|
2714
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).w9p = function ($this$dispatchAsync, store, completion) {
|
|
2715
|
+
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.u9v_1, completion);
|
|
2716
|
+
i.v9v_1 = $this$dispatchAsync;
|
|
2717
|
+
i.w9v_1 = store;
|
|
2714
2718
|
return i;
|
|
2715
2719
|
};
|
|
2716
2720
|
function GameServer$setCanStartNewGameEnabled$slambda_0($enabled, resultContinuation) {
|
|
2717
2721
|
var i = new GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation);
|
|
2718
2722
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2719
|
-
return i.
|
|
2723
|
+
return i.v9p($this$dispatchAsync, store, $completion);
|
|
2720
2724
|
};
|
|
2721
2725
|
l.$arity = 2;
|
|
2722
2726
|
return l;
|
|
2723
2727
|
}
|
|
2724
2728
|
function GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation) {
|
|
2725
|
-
this.
|
|
2726
|
-
this.
|
|
2727
|
-
this.
|
|
2729
|
+
this.f9w_1 = $reason;
|
|
2730
|
+
this.g9w_1 = this$0;
|
|
2731
|
+
this.h9w_1 = $roomId;
|
|
2728
2732
|
CoroutineImpl.call(this, resultContinuation);
|
|
2729
2733
|
}
|
|
2730
|
-
protoOf(GameServer$shutdown$slambda).
|
|
2731
|
-
var tmp = this.
|
|
2734
|
+
protoOf(GameServer$shutdown$slambda).v9p = function ($this$dispatchAsync, store, $completion) {
|
|
2735
|
+
var tmp = this.w9p($this$dispatchAsync, store, $completion);
|
|
2732
2736
|
tmp.t8_1 = Unit_instance;
|
|
2733
2737
|
tmp.u8_1 = null;
|
|
2734
2738
|
return tmp.z8();
|
|
2735
2739
|
};
|
|
2736
2740
|
protoOf(GameServer$shutdown$slambda).i9 = function (p1, p2, $completion) {
|
|
2737
2741
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2738
|
-
return this.
|
|
2742
|
+
return this.v9p(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2739
2743
|
};
|
|
2740
2744
|
protoOf(GameServer$shutdown$slambda).z8 = function () {
|
|
2741
2745
|
var suspendResult = this.t8_1;
|
|
@@ -2744,11 +2748,11 @@
|
|
|
2744
2748
|
var tmp = this.r8_1;
|
|
2745
2749
|
if (tmp === 0) {
|
|
2746
2750
|
this.s8_1 = 1;
|
|
2747
|
-
var state = this.
|
|
2751
|
+
var state = this.j9w_1.store.state;
|
|
2748
2752
|
if (state.u6n()) {
|
|
2749
|
-
var tmp0_elvis_lhs = toDomainEnumSafe(this.
|
|
2753
|
+
var tmp0_elvis_lhs = toDomainEnumSafe(this.f9w_1, get_serverShutdownReasonMapping());
|
|
2750
2754
|
var shutdownReason = tmp0_elvis_lhs == null ? ServerShutdownReason_ERROR_getInstance() : tmp0_elvis_lhs;
|
|
2751
|
-
var tmp_0 = this.
|
|
2755
|
+
var tmp_0 = this.j9w_1.dispatch;
|
|
2752
2756
|
var tmp_1 = Companion_instance;
|
|
2753
2757
|
var tmp_2;
|
|
2754
2758
|
switch (shutdownReason.p2_1) {
|
|
@@ -2762,10 +2766,10 @@
|
|
|
2762
2766
|
noWhenBranchMatchedException();
|
|
2763
2767
|
break;
|
|
2764
2768
|
}
|
|
2765
|
-
tmp_0(tmp_1.fromTableWithAnalytics(tmp_2, this.
|
|
2769
|
+
tmp_0(tmp_1.fromTableWithAnalytics(tmp_2, this.g9w_1.table.isGameFinished, this.g9w_1.table));
|
|
2766
2770
|
} else {
|
|
2767
|
-
this.
|
|
2768
|
-
var tmp_3 = this.
|
|
2771
|
+
this.g9w_1.h4q().w('GameEngine_API', "GameServer: can't shutdown engine without table, roomId = " + this.h9w_1);
|
|
2772
|
+
var tmp_3 = this.j9w_1.dispatch;
|
|
2769
2773
|
var tmp2_safe_receiver = state.t6m_1;
|
|
2770
2774
|
tmp_3(new ClearAction(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.d8u_1));
|
|
2771
2775
|
}
|
|
@@ -2779,16 +2783,16 @@
|
|
|
2779
2783
|
}
|
|
2780
2784
|
while (true);
|
|
2781
2785
|
};
|
|
2782
|
-
protoOf(GameServer$shutdown$slambda).
|
|
2783
|
-
var i = new GameServer$shutdown$slambda(this.
|
|
2784
|
-
i.
|
|
2785
|
-
i.
|
|
2786
|
+
protoOf(GameServer$shutdown$slambda).w9p = function ($this$dispatchAsync, store, completion) {
|
|
2787
|
+
var i = new GameServer$shutdown$slambda(this.f9w_1, this.g9w_1, this.h9w_1, completion);
|
|
2788
|
+
i.i9w_1 = $this$dispatchAsync;
|
|
2789
|
+
i.j9w_1 = store;
|
|
2786
2790
|
return i;
|
|
2787
2791
|
};
|
|
2788
2792
|
function GameServer$shutdown$slambda_0($reason, this$0, $roomId, resultContinuation) {
|
|
2789
2793
|
var i = new GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation);
|
|
2790
2794
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2791
|
-
return i.
|
|
2795
|
+
return i.v9p($this$dispatchAsync, store, $completion);
|
|
2792
2796
|
};
|
|
2793
2797
|
l.$arity = 2;
|
|
2794
2798
|
return l;
|
|
@@ -2874,16 +2878,12 @@
|
|
|
2874
2878
|
var tmp0_externalMiddlewares = plus(storeContract.p8y(), externalMiddlewares);
|
|
2875
2879
|
var tmp1_externalReducers = plus(storeContract.o8y(), externalReducers);
|
|
2876
2880
|
tmp_30.w9m_1 = new GameStore(di, tag, preloadedState, tmp1_externalReducers, tmp0_externalMiddlewares);
|
|
2877
|
-
this.x9m_1 = new Object();
|
|
2878
2881
|
}
|
|
2879
2882
|
protoOf(GameServer).i6m = function () {
|
|
2880
2883
|
return this.w9m_1;
|
|
2881
2884
|
};
|
|
2882
|
-
protoOf(GameServer).l9w = function (_set____db54di) {
|
|
2883
|
-
this.x9m_1 = _set____db54di;
|
|
2884
|
-
};
|
|
2885
2885
|
protoOf(GameServer).v8e = function () {
|
|
2886
|
-
return this.
|
|
2886
|
+
return get_serverStatePayload_0(this.u66()).metadata;
|
|
2887
2887
|
};
|
|
2888
2888
|
protoOf(GameServer).y53 = function () {
|
|
2889
2889
|
return this.u66().t6n().id;
|
|
@@ -2929,7 +2929,7 @@
|
|
|
2929
2929
|
this.h4q().d('GameEngine_API', 'playerLeft: ' + playerId);
|
|
2930
2930
|
this.w9m_1.r6n(GameServer$playerLeft$slambda_0(this, playerId, null));
|
|
2931
2931
|
};
|
|
2932
|
-
protoOf(GameServer).
|
|
2932
|
+
protoOf(GameServer).k9w = function (roomId, gameCreatorId, config, usersArray, transition, spectators) {
|
|
2933
2933
|
this.h4q().d('GameEngine_API', 'roomOnCreate: ' + roomId + ', gameCreatorId = ' + gameCreatorId + ', transition = ' + toString_0(transition));
|
|
2934
2934
|
this.w9m_1.r6n(GameServer$roomOnCreate$slambda_0(usersArray, config, this, roomId, transition, gameCreatorId, spectators, null));
|
|
2935
2935
|
};
|
|
@@ -2953,7 +2953,7 @@
|
|
|
2953
2953
|
this.h4q().d('GameEngine_API', 'roomRefreshPlayerState: ' + playerId);
|
|
2954
2954
|
this.w9m_1.r6n(GameServer$roomRefreshPlayerState$slambda_0(playerId, this, null));
|
|
2955
2955
|
};
|
|
2956
|
-
protoOf(GameServer).
|
|
2956
|
+
protoOf(GameServer).l9w = function (newRid) {
|
|
2957
2957
|
this.h4q().d('GameEngine_API', 'roomOnDelete: newRid = ' + newRid);
|
|
2958
2958
|
this.w9m_1.r6n(GameServer$roomOnDelete$slambda_0(this, newRid, null));
|
|
2959
2959
|
};
|
|
@@ -2961,7 +2961,7 @@
|
|
|
2961
2961
|
this.h4q().d('GameEngine_API', 'setCanStartNewGameEnabled: ' + enabled);
|
|
2962
2962
|
this.w9m_1.r6n(GameServer$setCanStartNewGameEnabled$slambda_0(enabled, null));
|
|
2963
2963
|
};
|
|
2964
|
-
protoOf(GameServer).
|
|
2964
|
+
protoOf(GameServer).m9w = function (reason, roomId) {
|
|
2965
2965
|
this.h4q().d('GameEngine_API', 'shutdown: ' + reason + ', ' + roomId);
|
|
2966
2966
|
this.w9m_1.r6n(GameServer$shutdown$slambda_0(reason, this, roomId, null));
|
|
2967
2967
|
};
|
|
@@ -2980,6 +2980,76 @@
|
|
|
2980
2980
|
serverShutdownReasonMapping = mapOf([to('deploy', ServerShutdownReason_DEPLOY_getInstance()), to('error', ServerShutdownReason_ERROR_getInstance())]);
|
|
2981
2981
|
}
|
|
2982
2982
|
}
|
|
2983
|
+
function RoomMetadata(games) {
|
|
2984
|
+
var tmp;
|
|
2985
|
+
if (games === VOID) {
|
|
2986
|
+
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2987
|
+
tmp = LinkedHashMap_init_$Create$();
|
|
2988
|
+
} else {
|
|
2989
|
+
tmp = games;
|
|
2990
|
+
}
|
|
2991
|
+
games = tmp;
|
|
2992
|
+
this.games = games;
|
|
2993
|
+
}
|
|
2994
|
+
protoOf(RoomMetadata).n9w = function () {
|
|
2995
|
+
return this.games;
|
|
2996
|
+
};
|
|
2997
|
+
protoOf(RoomMetadata).ne = function () {
|
|
2998
|
+
return this.games;
|
|
2999
|
+
};
|
|
3000
|
+
protoOf(RoomMetadata).o9w = function (games) {
|
|
3001
|
+
return new RoomMetadata(games);
|
|
3002
|
+
};
|
|
3003
|
+
protoOf(RoomMetadata).copy = function (games, $super) {
|
|
3004
|
+
games = games === VOID ? this.games : games;
|
|
3005
|
+
return $super === VOID ? this.o9w(games) : $super.o9w.call(this, games);
|
|
3006
|
+
};
|
|
3007
|
+
protoOf(RoomMetadata).toString = function () {
|
|
3008
|
+
return 'RoomMetadata(games=' + toString(this.games) + ')';
|
|
3009
|
+
};
|
|
3010
|
+
protoOf(RoomMetadata).hashCode = function () {
|
|
3011
|
+
return hashCode(this.games);
|
|
3012
|
+
};
|
|
3013
|
+
protoOf(RoomMetadata).equals = function (other) {
|
|
3014
|
+
if (this === other)
|
|
3015
|
+
return true;
|
|
3016
|
+
if (!(other instanceof RoomMetadata))
|
|
3017
|
+
return false;
|
|
3018
|
+
if (!equals(this.games, other.games))
|
|
3019
|
+
return false;
|
|
3020
|
+
return true;
|
|
3021
|
+
};
|
|
3022
|
+
function GameMetadata(gameId) {
|
|
3023
|
+
this.gameId = gameId;
|
|
3024
|
+
}
|
|
3025
|
+
protoOf(GameMetadata).c54 = function () {
|
|
3026
|
+
return this.gameId;
|
|
3027
|
+
};
|
|
3028
|
+
protoOf(GameMetadata).ne = function () {
|
|
3029
|
+
return this.gameId;
|
|
3030
|
+
};
|
|
3031
|
+
protoOf(GameMetadata).a66 = function (gameId) {
|
|
3032
|
+
return new GameMetadata(gameId);
|
|
3033
|
+
};
|
|
3034
|
+
protoOf(GameMetadata).copy = function (gameId, $super) {
|
|
3035
|
+
gameId = gameId === VOID ? this.gameId : gameId;
|
|
3036
|
+
return $super === VOID ? this.a66(gameId) : $super.a66.call(this, gameId);
|
|
3037
|
+
};
|
|
3038
|
+
protoOf(GameMetadata).toString = function () {
|
|
3039
|
+
return 'GameMetadata(gameId=' + this.gameId + ')';
|
|
3040
|
+
};
|
|
3041
|
+
protoOf(GameMetadata).hashCode = function () {
|
|
3042
|
+
return getStringHashCode(this.gameId);
|
|
3043
|
+
};
|
|
3044
|
+
protoOf(GameMetadata).equals = function (other) {
|
|
3045
|
+
if (this === other)
|
|
3046
|
+
return true;
|
|
3047
|
+
if (!(other instanceof GameMetadata))
|
|
3048
|
+
return false;
|
|
3049
|
+
if (!(this.gameId === other.gameId))
|
|
3050
|
+
return false;
|
|
3051
|
+
return true;
|
|
3052
|
+
};
|
|
2983
3053
|
var ServerShutdownReason_DEPLOY_instance;
|
|
2984
3054
|
var ServerShutdownReason_ERROR_instance;
|
|
2985
3055
|
var ServerShutdownReason_entriesInitialized;
|
|
@@ -4051,7 +4121,7 @@
|
|
|
4051
4121
|
tmp.u8_1 = null;
|
|
4052
4122
|
return tmp.z8();
|
|
4053
4123
|
};
|
|
4054
|
-
protoOf(ToClientEventsObserverImpl).
|
|
4124
|
+
protoOf(ToClientEventsObserverImpl).p9n = function () {
|
|
4055
4125
|
if (!this.r9x_1.enabledCombinedEvents) {
|
|
4056
4126
|
return this.w9x_1;
|
|
4057
4127
|
}
|
|
@@ -4574,7 +4644,7 @@
|
|
|
4574
4644
|
var _iterator__ex2g4s_0 = destination.l();
|
|
4575
4645
|
while (_iterator__ex2g4s_0.m()) {
|
|
4576
4646
|
var element = _iterator__ex2g4s_0.n();
|
|
4577
|
-
if (element.
|
|
4647
|
+
if (element.ie_1.isLive) {
|
|
4578
4648
|
destination_0.j(element);
|
|
4579
4649
|
}
|
|
4580
4650
|
}
|
|
@@ -4584,7 +4654,7 @@
|
|
|
4584
4654
|
var _iterator__ex2g4s_1 = destination_0.l();
|
|
4585
4655
|
while (_iterator__ex2g4s_1.m()) {
|
|
4586
4656
|
var item_0 = _iterator__ex2g4s_1.n();
|
|
4587
|
-
var tmp$ret$6 = item_0.
|
|
4657
|
+
var tmp$ret$6 = item_0.he_1;
|
|
4588
4658
|
destination_1.j(tmp$ret$6);
|
|
4589
4659
|
}
|
|
4590
4660
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -4601,7 +4671,7 @@
|
|
|
4601
4671
|
var _iterator__ex2g4s_3 = destination.l();
|
|
4602
4672
|
while (_iterator__ex2g4s_3.m()) {
|
|
4603
4673
|
var item_1 = _iterator__ex2g4s_3.n();
|
|
4604
|
-
var tmp$ret$9 = item_1.
|
|
4674
|
+
var tmp$ret$9 = item_1.he_1;
|
|
4605
4675
|
destination_3.j(tmp$ret$9);
|
|
4606
4676
|
}
|
|
4607
4677
|
var sendToPlayer = UserActionPayload_init_$Create$(tmp0_aid, tmp2, tmp4, element_0, destination_3);
|
|
@@ -4644,7 +4714,7 @@
|
|
|
4644
4714
|
var _iterator__ex2g4s_5 = destination_4.l();
|
|
4645
4715
|
while (_iterator__ex2g4s_5.m()) {
|
|
4646
4716
|
var element_1 = _iterator__ex2g4s_5.n();
|
|
4647
|
-
if (element_1.
|
|
4717
|
+
if (element_1.ie_1.isLive) {
|
|
4648
4718
|
destination_5.j(element_1);
|
|
4649
4719
|
}
|
|
4650
4720
|
}
|
|
@@ -4654,7 +4724,7 @@
|
|
|
4654
4724
|
var _iterator__ex2g4s_6 = destination_5.l();
|
|
4655
4725
|
while (_iterator__ex2g4s_6.m()) {
|
|
4656
4726
|
var item_3 = _iterator__ex2g4s_6.n();
|
|
4657
|
-
var tmp$ret$29 = item_3.
|
|
4727
|
+
var tmp$ret$29 = item_3.he_1;
|
|
4658
4728
|
destination_6.j(tmp$ret$29);
|
|
4659
4729
|
}
|
|
4660
4730
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -4671,7 +4741,7 @@
|
|
|
4671
4741
|
var _iterator__ex2g4s_8 = destination_4.l();
|
|
4672
4742
|
while (_iterator__ex2g4s_8.m()) {
|
|
4673
4743
|
var item_4 = _iterator__ex2g4s_8.n();
|
|
4674
|
-
var tmp$ret$32 = item_4.
|
|
4744
|
+
var tmp$ret$32 = item_4.he_1;
|
|
4675
4745
|
destination_8.j(tmp$ret$32);
|
|
4676
4746
|
}
|
|
4677
4747
|
var sendToPlayer_1 = UserActionPayload_init_$Create$(tmp0_aid_0, tmp2_0, tmp4_0, element_2, destination_8);
|
|
@@ -4731,7 +4801,7 @@
|
|
|
4731
4801
|
var _iterator__ex2g4s_9 = players.l();
|
|
4732
4802
|
while (_iterator__ex2g4s_9.m()) {
|
|
4733
4803
|
var element_3 = _iterator__ex2g4s_9.n();
|
|
4734
|
-
if (element_3.
|
|
4804
|
+
if (element_3.ie_1.isLive) {
|
|
4735
4805
|
destination_9.j(element_3);
|
|
4736
4806
|
}
|
|
4737
4807
|
}
|
|
@@ -4741,7 +4811,7 @@
|
|
|
4741
4811
|
var _iterator__ex2g4s_10 = destination_9.l();
|
|
4742
4812
|
while (_iterator__ex2g4s_10.m()) {
|
|
4743
4813
|
var item_5 = _iterator__ex2g4s_10.n();
|
|
4744
|
-
var tmp$ret$55 = item_5.
|
|
4814
|
+
var tmp$ret$55 = item_5.he_1;
|
|
4745
4815
|
destination_10.j(tmp$ret$55);
|
|
4746
4816
|
}
|
|
4747
4817
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -4758,7 +4828,7 @@
|
|
|
4758
4828
|
var _iterator__ex2g4s_12 = players.l();
|
|
4759
4829
|
while (_iterator__ex2g4s_12.m()) {
|
|
4760
4830
|
var item_6 = _iterator__ex2g4s_12.n();
|
|
4761
|
-
var tmp$ret$58 = item_6.
|
|
4831
|
+
var tmp$ret$58 = item_6.he_1;
|
|
4762
4832
|
destination_12.j(tmp$ret$58);
|
|
4763
4833
|
}
|
|
4764
4834
|
var sendToPlayer_6 = UserActionPayload_init_$Create$(tmp0_aid_1, tmp2_1, tmp4_1, element_4, destination_12);
|
|
@@ -4786,7 +4856,7 @@
|
|
|
4786
4856
|
var _iterator__ex2g4s_13 = players_0.l();
|
|
4787
4857
|
while (_iterator__ex2g4s_13.m()) {
|
|
4788
4858
|
var element_5 = _iterator__ex2g4s_13.n();
|
|
4789
|
-
if (element_5.
|
|
4859
|
+
if (element_5.ie_1.isLive) {
|
|
4790
4860
|
destination_13.j(element_5);
|
|
4791
4861
|
}
|
|
4792
4862
|
}
|
|
@@ -4796,7 +4866,7 @@
|
|
|
4796
4866
|
var _iterator__ex2g4s_14 = destination_13.l();
|
|
4797
4867
|
while (_iterator__ex2g4s_14.m()) {
|
|
4798
4868
|
var item_7 = _iterator__ex2g4s_14.n();
|
|
4799
|
-
var tmp$ret$74 = item_7.
|
|
4869
|
+
var tmp$ret$74 = item_7.he_1;
|
|
4800
4870
|
destination_14.j(tmp$ret$74);
|
|
4801
4871
|
}
|
|
4802
4872
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -4813,7 +4883,7 @@
|
|
|
4813
4883
|
var _iterator__ex2g4s_16 = players_0.l();
|
|
4814
4884
|
while (_iterator__ex2g4s_16.m()) {
|
|
4815
4885
|
var item_8 = _iterator__ex2g4s_16.n();
|
|
4816
|
-
var tmp$ret$77 = item_8.
|
|
4886
|
+
var tmp$ret$77 = item_8.he_1;
|
|
4817
4887
|
destination_16.j(tmp$ret$77);
|
|
4818
4888
|
}
|
|
4819
4889
|
var sendToPlayer_7 = UserActionPayload_init_$Create$(tmp0_aid_2, tmp2_2, tmp4_2, element_6, destination_16);
|
|
@@ -4841,7 +4911,7 @@
|
|
|
4841
4911
|
var _iterator__ex2g4s_17 = players_1.l();
|
|
4842
4912
|
while (_iterator__ex2g4s_17.m()) {
|
|
4843
4913
|
var element_7 = _iterator__ex2g4s_17.n();
|
|
4844
|
-
if (element_7.
|
|
4914
|
+
if (element_7.ie_1.isLive) {
|
|
4845
4915
|
destination_17.j(element_7);
|
|
4846
4916
|
}
|
|
4847
4917
|
}
|
|
@@ -4851,7 +4921,7 @@
|
|
|
4851
4921
|
var _iterator__ex2g4s_18 = destination_17.l();
|
|
4852
4922
|
while (_iterator__ex2g4s_18.m()) {
|
|
4853
4923
|
var item_9 = _iterator__ex2g4s_18.n();
|
|
4854
|
-
var tmp$ret$93 = item_9.
|
|
4924
|
+
var tmp$ret$93 = item_9.he_1;
|
|
4855
4925
|
destination_18.j(tmp$ret$93);
|
|
4856
4926
|
}
|
|
4857
4927
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -4868,7 +4938,7 @@
|
|
|
4868
4938
|
var _iterator__ex2g4s_20 = players_1.l();
|
|
4869
4939
|
while (_iterator__ex2g4s_20.m()) {
|
|
4870
4940
|
var item_10 = _iterator__ex2g4s_20.n();
|
|
4871
|
-
var tmp$ret$96 = item_10.
|
|
4941
|
+
var tmp$ret$96 = item_10.he_1;
|
|
4872
4942
|
destination_20.j(tmp$ret$96);
|
|
4873
4943
|
}
|
|
4874
4944
|
var sendToPlayer_8 = UserActionPayload_init_$Create$(tmp0_aid_3, tmp2_3, tmp4_3, element_8, destination_20);
|
|
@@ -5112,6 +5182,9 @@
|
|
|
5112
5182
|
protoOf(serverConfigReducer$$inlined$reducerForActionType$1).q6h = function (state, action) {
|
|
5113
5183
|
return this.o99((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
5114
5184
|
};
|
|
5185
|
+
function addRoomMetadata($this, _this__u8e3s4, gameId) {
|
|
5186
|
+
return _this__u8e3s4.metadata.copy(plus_0(_this__u8e3s4.metadata.games, new Pair(gameId, new GameMetadata(gameId))));
|
|
5187
|
+
}
|
|
5115
5188
|
function Companion_5() {
|
|
5116
5189
|
this.ua0_1 = 'ServerMechanicLifecycleReducer';
|
|
5117
5190
|
}
|
|
@@ -5144,25 +5217,24 @@
|
|
|
5144
5217
|
protoOf(ServerMechanicLifecycleReducer).a9b = function (state, action) {
|
|
5145
5218
|
this.xa0_1.d('ServerMechanicLifecycleReducer', 'onStart ' + get_versionOrDefault(GameEngineConfig_instance), action);
|
|
5146
5219
|
var serverState = get_serverStatePayloadOrNull(state.payload);
|
|
5147
|
-
var
|
|
5220
|
+
var tableId = action.a8v_1;
|
|
5221
|
+
var tmp6_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
5148
5222
|
var tmp0_$this = this.b9b_1;
|
|
5149
|
-
var
|
|
5150
|
-
var
|
|
5151
|
-
var
|
|
5152
|
-
var
|
|
5153
|
-
var
|
|
5154
|
-
var
|
|
5155
|
-
var tmp7_gameCreatorPlayerId = action.c8v_1;
|
|
5156
|
-
var tmp9_tableOrNull = tmp0_$this.h9c(tmp1_tableId, tmp2_gameId, tmp4_config, tmp3_version, tmp5_users, tmp6_spectators, tmp7_gameCreatorPlayerId, ServerMechanicLifecycleReducer$onStart$lambda(action));
|
|
5223
|
+
var tmp1_version = action.b8v_1;
|
|
5224
|
+
var tmp2_config = action.z8u_1;
|
|
5225
|
+
var tmp3_users = action.d8v_1;
|
|
5226
|
+
var tmp4_spectators = action.spectators;
|
|
5227
|
+
var tmp5_gameCreatorPlayerId = action.c8v_1;
|
|
5228
|
+
var tmp7_tableOrNull = tmp0_$this.h9c(tableId, tableId, tmp2_config, tmp1_version, tmp3_users, tmp4_spectators, tmp5_gameCreatorPlayerId, ServerMechanicLifecycleReducer$onStart$lambda(action));
|
|
5157
5229
|
var tmp;
|
|
5158
5230
|
if (serverState == null) {
|
|
5159
5231
|
this.xa0_1.w(VOID, 'ServerPayload is not onStart');
|
|
5160
|
-
tmp = Companion_instance_14.initial();
|
|
5232
|
+
tmp = Companion_instance_14.initial(VOID, addRoomMetadata(this, get_serverStatePayload_0(state), tableId));
|
|
5161
5233
|
} else {
|
|
5162
|
-
tmp = serverState;
|
|
5234
|
+
tmp = serverState.copy(VOID, addRoomMetadata(this, get_serverStatePayload_0(state), tableId));
|
|
5163
5235
|
}
|
|
5164
|
-
var
|
|
5165
|
-
return state.b8u(
|
|
5236
|
+
var tmp8_payload = tmp;
|
|
5237
|
+
return state.b8u(tmp7_tableOrNull, tmp8_payload, tmp6_gameLifecycleState);
|
|
5166
5238
|
};
|
|
5167
5239
|
protoOf(ServerMechanicLifecycleReducer).y9a = function (state, action) {
|
|
5168
5240
|
this.xa0_1.d('ServerMechanicLifecycleReducer', 'onContinue ' + get_versionOrDefault(GameEngineConfig_instance), action);
|
|
@@ -5172,14 +5244,15 @@
|
|
|
5172
5244
|
var tmp_0 = get_serverStatePayload_0(state).config;
|
|
5173
5245
|
var tmp_1 = action.h8v_1;
|
|
5174
5246
|
var tmp0_safe_receiver = tmp_1 instanceof RestartRoundReason ? tmp_1 : null;
|
|
5175
|
-
var tmp3_payload = tmp.initial(tmp_0.copy(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f65_1));
|
|
5247
|
+
var tmp3_payload = tmp.initial(tmp_0.copy(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f65_1), addRoomMetadata(this, get_serverStatePayload_0(state), action.g8v_1.gameId));
|
|
5176
5248
|
return state.b8u(tmp2_tableOrNull, tmp3_payload, tmp1_gameLifecycleState, null);
|
|
5177
5249
|
};
|
|
5178
5250
|
protoOf(ServerMechanicLifecycleReducer).z9a = function (state, action) {
|
|
5179
5251
|
this.c9b_1.n58(action.previousGameId);
|
|
5180
5252
|
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
5181
5253
|
var tmp1_tableOrNull = this.b9b_1.i9c(state.t6n(), action.gameId);
|
|
5182
|
-
|
|
5254
|
+
var tmp2_payload = get_serverStatePayload_0(state).copy(VOID, addRoomMetadata(this, get_serverStatePayload_0(state), action.gameId));
|
|
5255
|
+
return state.b8u(tmp1_tableOrNull, tmp2_payload, tmp0_gameLifecycleState);
|
|
5183
5256
|
};
|
|
5184
5257
|
function spectatorsReducer(logger) {
|
|
5185
5258
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
@@ -5375,38 +5448,49 @@
|
|
|
5375
5448
|
};
|
|
5376
5449
|
function Companion_6() {
|
|
5377
5450
|
}
|
|
5378
|
-
protoOf(Companion_6).za0 = function (config) {
|
|
5379
|
-
return new ServerStatePayload(config);
|
|
5451
|
+
protoOf(Companion_6).za0 = function (config, metadata) {
|
|
5452
|
+
return new ServerStatePayload(config, metadata);
|
|
5380
5453
|
};
|
|
5381
|
-
protoOf(Companion_6).initial = function (config, $super) {
|
|
5454
|
+
protoOf(Companion_6).initial = function (config, metadata, $super) {
|
|
5382
5455
|
config = config === VOID ? Companion_instance_8.initial(null) : config;
|
|
5383
|
-
|
|
5456
|
+
metadata = metadata === VOID ? new RoomMetadata() : metadata;
|
|
5457
|
+
return $super === VOID ? this.za0(config, metadata) : $super.za0.call(this, config, metadata);
|
|
5384
5458
|
};
|
|
5385
5459
|
var Companion_instance_14;
|
|
5386
5460
|
function Companion_getInstance_7() {
|
|
5387
5461
|
return Companion_instance_14;
|
|
5388
5462
|
}
|
|
5389
|
-
function ServerStatePayload(config) {
|
|
5463
|
+
function ServerStatePayload(config, metadata) {
|
|
5390
5464
|
this.config = config;
|
|
5465
|
+
this.metadata = metadata;
|
|
5391
5466
|
}
|
|
5392
5467
|
protoOf(ServerStatePayload).z3s = function () {
|
|
5393
5468
|
return this.config;
|
|
5394
5469
|
};
|
|
5470
|
+
protoOf(ServerStatePayload).v8e = function () {
|
|
5471
|
+
return this.metadata;
|
|
5472
|
+
};
|
|
5395
5473
|
protoOf(ServerStatePayload).ne = function () {
|
|
5396
5474
|
return this.config;
|
|
5397
5475
|
};
|
|
5398
|
-
protoOf(ServerStatePayload).
|
|
5399
|
-
return
|
|
5476
|
+
protoOf(ServerStatePayload).oe = function () {
|
|
5477
|
+
return this.metadata;
|
|
5400
5478
|
};
|
|
5401
|
-
protoOf(ServerStatePayload).
|
|
5479
|
+
protoOf(ServerStatePayload).aa1 = function (config, metadata) {
|
|
5480
|
+
return new ServerStatePayload(config, metadata);
|
|
5481
|
+
};
|
|
5482
|
+
protoOf(ServerStatePayload).copy = function (config, metadata, $super) {
|
|
5402
5483
|
config = config === VOID ? this.config : config;
|
|
5403
|
-
|
|
5484
|
+
metadata = metadata === VOID ? this.metadata : metadata;
|
|
5485
|
+
return $super === VOID ? this.aa1(config, metadata) : $super.aa1.call(this, config, metadata);
|
|
5404
5486
|
};
|
|
5405
5487
|
protoOf(ServerStatePayload).toString = function () {
|
|
5406
|
-
return 'ServerStatePayload(config=' + this.config.toString() + ')';
|
|
5488
|
+
return 'ServerStatePayload(config=' + this.config.toString() + ', metadata=' + this.metadata.toString() + ')';
|
|
5407
5489
|
};
|
|
5408
5490
|
protoOf(ServerStatePayload).hashCode = function () {
|
|
5409
|
-
|
|
5491
|
+
var result = this.config.hashCode();
|
|
5492
|
+
result = imul(result, 31) + this.metadata.hashCode() | 0;
|
|
5493
|
+
return result;
|
|
5410
5494
|
};
|
|
5411
5495
|
protoOf(ServerStatePayload).equals = function (other) {
|
|
5412
5496
|
if (this === other)
|
|
@@ -5415,6 +5499,8 @@
|
|
|
5415
5499
|
return false;
|
|
5416
5500
|
if (!this.config.equals(other.config))
|
|
5417
5501
|
return false;
|
|
5502
|
+
if (!this.metadata.equals(other.metadata))
|
|
5503
|
+
return false;
|
|
5418
5504
|
return true;
|
|
5419
5505
|
};
|
|
5420
5506
|
function get_serverStatePayload(_this__u8e3s4) {
|
|
@@ -6079,8 +6165,6 @@
|
|
|
6079
6165
|
protoOf(GameServer).shutdown = shutdown;
|
|
6080
6166
|
defineProp(protoOf(GameServer), 'metadata', function () {
|
|
6081
6167
|
return this.v8e();
|
|
6082
|
-
}, function (value) {
|
|
6083
|
-
this.l9w(value);
|
|
6084
6168
|
});
|
|
6085
6169
|
defineProp(protoOf(GameServer), 'id', function () {
|
|
6086
6170
|
return this.y53();
|
|
@@ -6152,6 +6236,14 @@
|
|
|
6152
6236
|
//endregion
|
|
6153
6237
|
//region block: exports
|
|
6154
6238
|
function $jsExportAll$(_) {
|
|
6239
|
+
var $games = _.games || (_.games = {});
|
|
6240
|
+
var $games$jass = $games.jass || ($games.jass = {});
|
|
6241
|
+
var $games$jass$logic = $games$jass.logic || ($games$jass.logic = {});
|
|
6242
|
+
var $games$jass$logic$server = $games$jass$logic.server || ($games$jass$logic.server = {});
|
|
6243
|
+
var $games$jass$logic$server$data = $games$jass$logic$server.data || ($games$jass$logic$server.data = {});
|
|
6244
|
+
var $games$jass$logic$server$data$models = $games$jass$logic$server$data.models || ($games$jass$logic$server$data.models = {});
|
|
6245
|
+
$games$jass$logic$server$data$models.RoomMetadata = RoomMetadata;
|
|
6246
|
+
$games$jass$logic$server$data$models.GameMetadata = GameMetadata;
|
|
6155
6247
|
var $games = _.games || (_.games = {});
|
|
6156
6248
|
var $games$jass = $games.jass || ($games.jass = {});
|
|
6157
6249
|
var $games$jass$logic = $games$jass.logic || ($games$jass.logic = {});
|