raspberry_games_server_game_logic 1.8.401 → 1.8.403
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/Logic_Debertz-core.js +1 -1
- package/Logic_Debertz-engine.js +8798 -8750
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.js +83 -91
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +4 -4
- package/kotlinx-coroutines-core.js +9 -9
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
|
@@ -865,7 +865,7 @@
|
|
|
865
865
|
continue $sm;
|
|
866
866
|
case 1:
|
|
867
867
|
this.s8_1 = 2;
|
|
868
|
-
var this_0 = windowedByInterval(_get_fromClientEventsObserver__a7vzd3(this.q9p_1).
|
|
868
|
+
var this_0 = windowedByInterval(_get_fromClientEventsObserver__a7vzd3(this.q9p_1).i8o(), fromInt(_get_serverReduxConfig__rprcrm(this.q9p_1).serverStateUpdateIntervalMillis));
|
|
869
869
|
suspendResult = emitAll(this.r9p_1, new _no_name_provided__qut3iv(this_0, this.p9p_1), this);
|
|
870
870
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
871
871
|
return suspendResult;
|
|
@@ -1063,7 +1063,7 @@
|
|
|
1063
1063
|
continue $sm;
|
|
1064
1064
|
case 1:
|
|
1065
1065
|
this.f9r_1 = this.i9r_1;
|
|
1066
|
-
var tmp0_elvis_lhs = this.h9r_1.
|
|
1066
|
+
var tmp0_elvis_lhs = this.h9r_1.tableOrNull;
|
|
1067
1067
|
if (tmp0_elvis_lhs == null) {
|
|
1068
1068
|
this.s8_1 = 4;
|
|
1069
1069
|
var tmp_2 = this;
|
|
@@ -2211,7 +2211,7 @@
|
|
|
2211
2211
|
if (get_isFinished(this.g9y_1.state) || get_isFinishing(this.g9y_1.state)) {
|
|
2212
2212
|
return Unit_instance;
|
|
2213
2213
|
}
|
|
2214
|
-
if (!get_isCreated(this.g9y_1.state) || !this.d9y_1.t66().
|
|
2214
|
+
if (!get_isCreated(this.g9y_1.state) || !this.d9y_1.t66().x6r()) {
|
|
2215
2215
|
this.d9y_1.h4q().v('GameEngine_API', 'playerLive: ' + this.e9y_1 + ' before game is created');
|
|
2216
2216
|
return Unit_instance;
|
|
2217
2217
|
}
|
|
@@ -2268,7 +2268,7 @@
|
|
|
2268
2268
|
if (get_isFinished(this.t9y_1.state) || get_isFinishing(this.t9y_1.state)) {
|
|
2269
2269
|
return Unit_instance;
|
|
2270
2270
|
}
|
|
2271
|
-
if (!get_isCreated(this.t9y_1.state) || !this.p9y_1.t66().
|
|
2271
|
+
if (!get_isCreated(this.t9y_1.state) || !this.p9y_1.t66().x6r()) {
|
|
2272
2272
|
this.p9y_1.h4q().w('GameEngine_API', 'playerLeft: ' + this.q9y_1 + ' before game is created');
|
|
2273
2273
|
return Unit_instance;
|
|
2274
2274
|
}
|
|
@@ -2353,7 +2353,7 @@
|
|
|
2353
2353
|
var item = _iterator__ex2g4s.n();
|
|
2354
2354
|
destination.j(new GameServer$roomOnCreate$2$updatedUsers$previousTeams$1(item));
|
|
2355
2355
|
}
|
|
2356
|
-
var previousTeams = tmp_2.
|
|
2356
|
+
var previousTeams = tmp_2.z8n(destination);
|
|
2357
2357
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
2358
2358
|
var _iterator__ex2g4s_0 = users.l();
|
|
2359
2359
|
while (_iterator__ex2g4s_0.m()) {
|
|
@@ -2377,7 +2377,7 @@
|
|
|
2377
2377
|
destination_1.j(destination_2);
|
|
2378
2378
|
}
|
|
2379
2379
|
var updatedTeams = destination_1;
|
|
2380
|
-
tmp_1 = _get_teamsLogicProvider__u10pm6(this.e9z_1).
|
|
2380
|
+
tmp_1 = _get_teamsLogicProvider__u10pm6(this.e9z_1).d8o(updatedTeams);
|
|
2381
2381
|
} else {
|
|
2382
2382
|
tmp_1 = users;
|
|
2383
2383
|
}
|
|
@@ -2750,10 +2750,10 @@
|
|
|
2750
2750
|
var tmp = this.s8_1;
|
|
2751
2751
|
if (tmp === 0) {
|
|
2752
2752
|
this.t8_1 = 1;
|
|
2753
|
-
var table = this.na2_1.state.
|
|
2753
|
+
var table = this.na2_1.state.w6r();
|
|
2754
2754
|
var player = getPlayer(table.players, this.ka2_1);
|
|
2755
|
-
if (player.
|
|
2756
|
-
this.na2_1.dispatch(_get_playerConnectionInteractor__si6cxf(this.la2_1).
|
|
2755
|
+
if (player.e6v_1.y68().n67_1.isLive) {
|
|
2756
|
+
this.na2_1.dispatch(_get_playerConnectionInteractor__si6cxf(this.la2_1).t8u(player, table));
|
|
2757
2757
|
} else {
|
|
2758
2758
|
var tmp_0 = this.na2_1.dispatch;
|
|
2759
2759
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
@@ -2805,7 +2805,7 @@
|
|
|
2805
2805
|
var tmp = this.s8_1;
|
|
2806
2806
|
if (tmp === 0) {
|
|
2807
2807
|
this.t8_1 = 1;
|
|
2808
|
-
var it = this.wa2_1.t66().
|
|
2808
|
+
var it = this.wa2_1.t66().w6q_1;
|
|
2809
2809
|
var tmp_0;
|
|
2810
2810
|
if (it == null) {
|
|
2811
2811
|
this.wa2_1.h4q().w('GameEngine_API', "GameServer: Termination reason can't be null");
|
|
@@ -2825,7 +2825,7 @@
|
|
|
2825
2825
|
var transition = tmp_1;
|
|
2826
2826
|
var tmp_2 = this.za2_1.dispatch;
|
|
2827
2827
|
var tmp0_reason = terminationState.q8y_1;
|
|
2828
|
-
var tmp1_isGameFinished = this.wa2_1.t66().
|
|
2828
|
+
var tmp1_isGameFinished = this.wa2_1.t66().w6r().isGameFinished;
|
|
2829
2829
|
tmp_2(new FinishGameMechanicAction(tmp0_reason, tmp1_isGameFinished, VOID, transition));
|
|
2830
2830
|
return Unit_instance;
|
|
2831
2831
|
} else if (tmp === 1) {
|
|
@@ -2921,7 +2921,7 @@
|
|
|
2921
2921
|
if (tmp === 0) {
|
|
2922
2922
|
this.t8_1 = 1;
|
|
2923
2923
|
var state = this.xa3_1.store.state;
|
|
2924
|
-
if (state.
|
|
2924
|
+
if (state.x6r()) {
|
|
2925
2925
|
var tmp0_elvis_lhs = toDomainEnumSafe(this.ta3_1, get_serverShutdownReasonMapping());
|
|
2926
2926
|
var shutdownReason = tmp0_elvis_lhs == null ? ServerShutdownReason_ERROR_getInstance() : tmp0_elvis_lhs;
|
|
2927
2927
|
var tmp_0 = this.xa3_1.dispatch;
|
|
@@ -2942,7 +2942,7 @@
|
|
|
2942
2942
|
} else {
|
|
2943
2943
|
this.ua3_1.h4q().w('GameEngine_API', "GameServer: can't shutdown engine without table, roomId = " + this.va3_1);
|
|
2944
2944
|
var tmp_3 = this.xa3_1.dispatch;
|
|
2945
|
-
var tmp2_safe_receiver = state.
|
|
2945
|
+
var tmp2_safe_receiver = state.w6q_1;
|
|
2946
2946
|
tmp_3(new ClearAction(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.r8y_1));
|
|
2947
2947
|
}
|
|
2948
2948
|
return Unit_instance;
|
|
@@ -3054,26 +3054,26 @@
|
|
|
3054
3054
|
protoOf(GameServer).m6q = function () {
|
|
3055
3055
|
return this.j9u_1;
|
|
3056
3056
|
};
|
|
3057
|
-
protoOf(GameServer).
|
|
3057
|
+
protoOf(GameServer).i8j = function () {
|
|
3058
3058
|
return get_serverStatePayload_0(this.t66()).metadata;
|
|
3059
3059
|
};
|
|
3060
3060
|
protoOf(GameServer).canReconnectPlayer = function (player) {
|
|
3061
|
-
var player_0 = firstOrNull(filterByPlayerId(this.t66().
|
|
3061
|
+
var player_0 = firstOrNull(filterByPlayerId(this.t66().w6r().players, player));
|
|
3062
3062
|
if (player_0 == null) {
|
|
3063
3063
|
return false;
|
|
3064
3064
|
}
|
|
3065
|
-
return player_0.
|
|
3065
|
+
return player_0.e6v_1.y68().n67_1.canReconnect;
|
|
3066
3066
|
};
|
|
3067
3067
|
protoOf(GameServer).y53 = function () {
|
|
3068
|
-
return this.t66().
|
|
3068
|
+
return this.t66().w6r().id;
|
|
3069
|
+
};
|
|
3070
|
+
protoOf(GameServer).w6r = function () {
|
|
3071
|
+
return this.t66().w6r();
|
|
3069
3072
|
};
|
|
3070
3073
|
protoOf(GameServer).x6r = function () {
|
|
3071
3074
|
return this.t66().x6r();
|
|
3072
3075
|
};
|
|
3073
3076
|
protoOf(GameServer).y6r = function () {
|
|
3074
|
-
return this.t66().y6r();
|
|
3075
|
-
};
|
|
3076
|
-
protoOf(GameServer).z6r = function () {
|
|
3077
3077
|
return this.t66().gameLifecycleState;
|
|
3078
3078
|
};
|
|
3079
3079
|
protoOf(GameServer).subscribeToClientAction = function (subscriber) {
|
|
@@ -3094,63 +3094,55 @@
|
|
|
3094
3094
|
};
|
|
3095
3095
|
protoOf(GameServer).fromClientEvent = function (action) {
|
|
3096
3096
|
this.h4q().d('GameEngine_API', 'fromClientEvent: ' + action.playerId + ', ' + action.actionTag);
|
|
3097
|
-
this.j9u_1.
|
|
3097
|
+
this.j9u_1.u6r(GameServer$fromClientEvent$slambda_0(action, null));
|
|
3098
3098
|
};
|
|
3099
3099
|
protoOf(GameServer).playerLostConnection = function (playerId) {
|
|
3100
3100
|
this.h4q().d('GameEngine_API', 'playerLostConnection: ' + playerId);
|
|
3101
|
-
this.j9u_1.
|
|
3101
|
+
this.j9u_1.u6r(GameServer$playerLostConnection$slambda_0(playerId, null));
|
|
3102
3102
|
};
|
|
3103
3103
|
protoOf(GameServer).playerLive = function (playerId) {
|
|
3104
3104
|
this.h4q().d('GameEngine_API', 'playerLive: ' + playerId);
|
|
3105
|
-
this.j9u_1.
|
|
3105
|
+
this.j9u_1.u6r(GameServer$playerLive$slambda_0(this, playerId, null));
|
|
3106
3106
|
};
|
|
3107
3107
|
protoOf(GameServer).ya3 = function (playerId, permanently) {
|
|
3108
3108
|
this.h4q().d('GameEngine_API', 'playerLeft: ' + playerId);
|
|
3109
|
-
this.j9u_1.
|
|
3109
|
+
this.j9u_1.u6r(GameServer$playerLeft$slambda_0(this, playerId, permanently, null));
|
|
3110
3110
|
};
|
|
3111
3111
|
protoOf(GameServer).za3 = function (roomId, gameCreatorId, config, usersArray, transition, spectators) {
|
|
3112
3112
|
this.h4q().d('GameEngine_API', 'roomOnCreate: ' + roomId + ', gameCreatorId = ' + gameCreatorId + ', transition = ' + toString_0(transition));
|
|
3113
|
-
this.j9u_1.
|
|
3113
|
+
this.j9u_1.u6r(GameServer$roomOnCreate$slambda_0(usersArray, config, this, roomId, transition, gameCreatorId, spectators, null));
|
|
3114
3114
|
};
|
|
3115
3115
|
protoOf(GameServer).roomOnContinueFromState = function (roomId, state) {
|
|
3116
3116
|
this.h4q().d('GameEngine_API', 'roomOnContinueFromState: ' + roomId);
|
|
3117
|
-
var isCreated = this.j9u_1.
|
|
3118
|
-
this.j9u_1.
|
|
3117
|
+
var isCreated = this.j9u_1.v6r(GameServer$roomOnContinueFromState$slambda_0(state, null));
|
|
3118
|
+
this.j9u_1.u6r(GameServer$roomOnContinueFromState$slambda_2(isCreated, state, null));
|
|
3119
3119
|
};
|
|
3120
3120
|
protoOf(GameServer).roomOnContinueFromRound = function (roomId, tableLite) {
|
|
3121
3121
|
this.h4q().d('GameEngine_API', 'roomOnContinueFromRound: ' + roomId + ', round = ' + tableLite.gameInfo.round.roundNumber);
|
|
3122
|
-
this.j9u_1.
|
|
3123
|
-
this.j9u_1.
|
|
3122
|
+
this.j9u_1.u6r(GameServer$roomOnContinueFromRound$slambda_0(tableLite, roomId, this, null));
|
|
3123
|
+
this.j9u_1.u6r(GameServer$roomOnContinueFromRound$slambda_2(null));
|
|
3124
3124
|
};
|
|
3125
3125
|
protoOf(GameServer).addSpectatorsToRoom = function (spectators) {
|
|
3126
|
-
this.j9u_1.
|
|
3126
|
+
this.j9u_1.u6r(GameServer$addSpectatorsToRoom$slambda_0(spectators, null));
|
|
3127
3127
|
};
|
|
3128
3128
|
protoOf(GameServer).removeSpectatorsFromRoom = function (spectators) {
|
|
3129
|
-
this.j9u_1.
|
|
3129
|
+
this.j9u_1.u6r(GameServer$removeSpectatorsFromRoom$slambda_0(spectators, null));
|
|
3130
3130
|
};
|
|
3131
3131
|
protoOf(GameServer).roomRefreshPlayerState = function (playerId) {
|
|
3132
3132
|
this.h4q().d('GameEngine_API', 'roomRefreshPlayerState: ' + playerId);
|
|
3133
|
-
this.j9u_1.
|
|
3133
|
+
this.j9u_1.u6r(GameServer$roomRefreshPlayerState$slambda_0(playerId, this, null));
|
|
3134
3134
|
};
|
|
3135
3135
|
protoOf(GameServer).aa4 = function (newRid) {
|
|
3136
3136
|
this.h4q().d('GameEngine_API', 'roomOnDelete: newRid = ' + newRid);
|
|
3137
|
-
this.j9u_1.
|
|
3137
|
+
this.j9u_1.u6r(GameServer$roomOnDelete$slambda_0(this, newRid, null));
|
|
3138
3138
|
};
|
|
3139
3139
|
protoOf(GameServer).setCanStartNewGameEnabled = function (enabled) {
|
|
3140
3140
|
this.h4q().d('GameEngine_API', 'setCanStartNewGameEnabled: ' + enabled);
|
|
3141
|
-
this.j9u_1.
|
|
3141
|
+
this.j9u_1.u6r(GameServer$setCanStartNewGameEnabled$slambda_0(enabled, null));
|
|
3142
3142
|
};
|
|
3143
3143
|
protoOf(GameServer).ba4 = function (reason, roomId) {
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
this.j9u_1.v6r(GameServer$shutdown$slambda_0(reason, this, roomId, null));
|
|
3147
|
-
} catch ($p) {
|
|
3148
|
-
if ($p instanceof Error) {
|
|
3149
|
-
var e = $p;
|
|
3150
|
-
} else {
|
|
3151
|
-
throw $p;
|
|
3152
|
-
}
|
|
3153
|
-
}
|
|
3144
|
+
this.h4q().d('GameEngine_API', 'shutdown: ' + reason + ', ' + roomId);
|
|
3145
|
+
this.j9u_1.u6r(GameServer$shutdown$slambda_0(reason, this, roomId, null));
|
|
3154
3146
|
};
|
|
3155
3147
|
protoOf(GameServer).clear = function () {
|
|
3156
3148
|
return this.i2();
|
|
@@ -3371,10 +3363,10 @@
|
|
|
3371
3363
|
this.ia4_1 = roomId;
|
|
3372
3364
|
this.table = table;
|
|
3373
3365
|
}
|
|
3374
|
-
protoOf(TableStateUpdateDto).
|
|
3366
|
+
protoOf(TableStateUpdateDto).b8g = function () {
|
|
3375
3367
|
return this.ia4_1;
|
|
3376
3368
|
};
|
|
3377
|
-
protoOf(TableStateUpdateDto).
|
|
3369
|
+
protoOf(TableStateUpdateDto).w6r = function () {
|
|
3378
3370
|
return this.table;
|
|
3379
3371
|
};
|
|
3380
3372
|
protoOf(TableStateUpdateDto).oe = function () {
|
|
@@ -3501,10 +3493,10 @@
|
|
|
3501
3493
|
this.la4_1 = roomId;
|
|
3502
3494
|
this.actions = actions;
|
|
3503
3495
|
}
|
|
3504
|
-
protoOf(ActionsStateUpdateDto).
|
|
3496
|
+
protoOf(ActionsStateUpdateDto).b8g = function () {
|
|
3505
3497
|
return this.la4_1;
|
|
3506
3498
|
};
|
|
3507
|
-
protoOf(ActionsStateUpdateDto).
|
|
3499
|
+
protoOf(ActionsStateUpdateDto).p8g = function () {
|
|
3508
3500
|
return this.actions;
|
|
3509
3501
|
};
|
|
3510
3502
|
protoOf(ActionsStateUpdateDto).oe = function () {
|
|
@@ -3564,10 +3556,10 @@
|
|
|
3564
3556
|
var tmp$ret$0 = mapToDto(item);
|
|
3565
3557
|
destination.j(tmp$ret$0);
|
|
3566
3558
|
}
|
|
3567
|
-
return new ActionsStateUpdateDto(_this__u8e3s4.ma4_1, encoderDecoderProvider.
|
|
3559
|
+
return new ActionsStateUpdateDto(_this__u8e3s4.ma4_1, encoderDecoderProvider.i8n(destination));
|
|
3568
3560
|
}
|
|
3569
3561
|
function mapToDto_3(_this__u8e3s4, encoderDecoderProvider) {
|
|
3570
|
-
return new TableStateUpdateDto(_this__u8e3s4.na4_1, encoderDecoderProvider.
|
|
3562
|
+
return new TableStateUpdateDto(_this__u8e3s4.na4_1, encoderDecoderProvider.g8n(mapToDto_0(_this__u8e3s4.table)));
|
|
3571
3563
|
}
|
|
3572
3564
|
function ServerStateUpdate() {
|
|
3573
3565
|
}
|
|
@@ -3575,10 +3567,10 @@
|
|
|
3575
3567
|
this.na4_1 = roomId;
|
|
3576
3568
|
this.table = table;
|
|
3577
3569
|
}
|
|
3578
|
-
protoOf(TableStateUpdate).
|
|
3570
|
+
protoOf(TableStateUpdate).b8g = function () {
|
|
3579
3571
|
return this.na4_1;
|
|
3580
3572
|
};
|
|
3581
|
-
protoOf(TableStateUpdate).
|
|
3573
|
+
protoOf(TableStateUpdate).w6r = function () {
|
|
3582
3574
|
return this.table;
|
|
3583
3575
|
};
|
|
3584
3576
|
protoOf(TableStateUpdate).oe = function () {
|
|
@@ -3618,10 +3610,10 @@
|
|
|
3618
3610
|
this.ma4_1 = roomId;
|
|
3619
3611
|
this.actions = actions;
|
|
3620
3612
|
}
|
|
3621
|
-
protoOf(ActionsStateUpdate).
|
|
3613
|
+
protoOf(ActionsStateUpdate).b8g = function () {
|
|
3622
3614
|
return this.ma4_1;
|
|
3623
3615
|
};
|
|
3624
|
-
protoOf(ActionsStateUpdate).
|
|
3616
|
+
protoOf(ActionsStateUpdate).p8g = function () {
|
|
3625
3617
|
return this.actions;
|
|
3626
3618
|
};
|
|
3627
3619
|
protoOf(ActionsStateUpdate).oe = function () {
|
|
@@ -4736,11 +4728,11 @@
|
|
|
4736
4728
|
var state = store.state;
|
|
4737
4729
|
if (tmp4.isGameFinished) {
|
|
4738
4730
|
if (get_serverStatePayload_0(state).config.shouldFinishGameWhenDeploy) {
|
|
4739
|
-
store.dispatch(Companion_instance.fromTableWithAnalytics(new GameFinishedReason(Reason_DEPLOY_getInstance()), true, state.
|
|
4731
|
+
store.dispatch(Companion_instance.fromTableWithAnalytics(new GameFinishedReason(Reason_DEPLOY_getInstance()), true, state.tableOrNull));
|
|
4740
4732
|
break $l$block_0;
|
|
4741
4733
|
}
|
|
4742
|
-
if (state.
|
|
4743
|
-
store.dispatch(Companion_instance.fromTableWithAnalytics(new GameFinishedReason(Reason_REVENGED_getInstance()), true, state.
|
|
4734
|
+
if (state.w6r().config.mode.equals(RoomMode_REVENGE_getInstance())) {
|
|
4735
|
+
store.dispatch(Companion_instance.fromTableWithAnalytics(new GameFinishedReason(Reason_REVENGED_getInstance()), true, state.tableOrNull));
|
|
4744
4736
|
break $l$block_0;
|
|
4745
4737
|
}
|
|
4746
4738
|
}
|
|
@@ -4825,7 +4817,7 @@
|
|
|
4825
4817
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
4826
4818
|
var tmp0_0 = this.ua7_1;
|
|
4827
4819
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4828
|
-
var table = state.
|
|
4820
|
+
var table = state.w6r();
|
|
4829
4821
|
var sendToPlayer_0 = new RoomActionPayload(tmp0_0.ta7_1.d6e(), table.id, null);
|
|
4830
4822
|
var tmp$ret$21 = mapToClient_16(action_0, sendToPlayer_0);
|
|
4831
4823
|
tmp = listOfNotNull(tmp$ret$21);
|
|
@@ -4895,7 +4887,7 @@
|
|
|
4895
4887
|
if (action_0 instanceof FinishingGameMechanicAction) {
|
|
4896
4888
|
var tmp0_2 = this.ua7_1;
|
|
4897
4889
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4898
|
-
var table_0 = state.
|
|
4890
|
+
var table_0 = state.w6r();
|
|
4899
4891
|
var sendToPlayer_2 = new RoomActionPayload(tmp0_2.ta7_1.d6e(), table_0.id, null);
|
|
4900
4892
|
var tmp$ret$44 = mapToClient_14(action_0, sendToPlayer_2);
|
|
4901
4893
|
tmp = listOfNotNull(tmp$ret$44);
|
|
@@ -4903,7 +4895,7 @@
|
|
|
4903
4895
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
4904
4896
|
var tmp0_3 = this.ua7_1;
|
|
4905
4897
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4906
|
-
var table_1 = state.
|
|
4898
|
+
var table_1 = state.w6r();
|
|
4907
4899
|
var sendToPlayer_3 = new RoomActionPayload(tmp0_3.ta7_1.d6e(), table_1.id, null);
|
|
4908
4900
|
var tmp$ret$46 = mapToClient_13(action_0, sendToPlayer_3);
|
|
4909
4901
|
tmp = listOfNotNull(tmp$ret$46);
|
|
@@ -4911,7 +4903,7 @@
|
|
|
4911
4903
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
4912
4904
|
var tmp0_4 = this.ua7_1;
|
|
4913
4905
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4914
|
-
var table_2 = state.
|
|
4906
|
+
var table_2 = state.w6r();
|
|
4915
4907
|
var sendToPlayer_4 = new RoomActionPayload(tmp0_4.ta7_1.d6e(), table_2.id, null);
|
|
4916
4908
|
var tmp$ret$48 = mapToClient_12(action_0, sendToPlayer_4);
|
|
4917
4909
|
tmp = listOfNotNull(tmp$ret$48);
|
|
@@ -4919,7 +4911,7 @@
|
|
|
4919
4911
|
if (action_0 instanceof ErrorAction) {
|
|
4920
4912
|
var tmp0_5 = this.ua7_1;
|
|
4921
4913
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4922
|
-
var table_3 = state.
|
|
4914
|
+
var table_3 = state.w6r();
|
|
4923
4915
|
var sendToPlayer_5 = new RoomActionPayload(tmp0_5.ta7_1.d6e(), table_3.id, null);
|
|
4924
4916
|
var tmp$ret$50 = mapToClient_11(action_0, sendToPlayer_5);
|
|
4925
4917
|
tmp = listOfNotNull(tmp$ret$50);
|
|
@@ -4927,7 +4919,7 @@
|
|
|
4927
4919
|
if (action_0 instanceof SceneMechanicAction) {
|
|
4928
4920
|
var tmp0_6 = this.ua7_1;
|
|
4929
4921
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
4930
|
-
var table_4 = state.
|
|
4922
|
+
var table_4 = state.w6r();
|
|
4931
4923
|
var tmp2_1 = table_4.id;
|
|
4932
4924
|
var tmp4_1 = getGameCreator(table_4.players).playerId;
|
|
4933
4925
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
@@ -4982,7 +4974,7 @@
|
|
|
4982
4974
|
if (action_0 instanceof SceneActMechanicAction) {
|
|
4983
4975
|
var tmp0_7 = this.ua7_1;
|
|
4984
4976
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
4985
|
-
var table_5 = state.
|
|
4977
|
+
var table_5 = state.w6r();
|
|
4986
4978
|
var tmp2_2 = table_5.id;
|
|
4987
4979
|
var tmp4_2 = getGameCreator(table_5.players).playerId;
|
|
4988
4980
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
@@ -5037,7 +5029,7 @@
|
|
|
5037
5029
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
5038
5030
|
var tmp0_8 = this.ua7_1;
|
|
5039
5031
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
5040
|
-
var table_6 = state.
|
|
5032
|
+
var table_6 = state.w6r();
|
|
5041
5033
|
var tmp2_3 = table_6.id;
|
|
5042
5034
|
var tmp4_3 = getGameCreator(table_6.players).playerId;
|
|
5043
5035
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
@@ -5080,7 +5072,7 @@
|
|
|
5080
5072
|
}
|
|
5081
5073
|
var sendToPlayer_8 = UserActionPayload_init_$Create$(tmp0_aid_3, tmp2_3, tmp4_3, element_8, destination_20);
|
|
5082
5074
|
var tmp_0;
|
|
5083
|
-
if (this.ua7_1.sa7_1.supportBackwardActions && getPlayer(state.
|
|
5075
|
+
if (this.ua7_1.sa7_1.supportBackwardActions && getPlayer(state.w6r().players, sendToPlayer_8.w7f_1).g6v_1.b6z_1) {
|
|
5084
5076
|
tmp_0 = null;
|
|
5085
5077
|
} else {
|
|
5086
5078
|
tmp_0 = mapToClient_8(action_0, sendToPlayer_8);
|
|
@@ -5097,7 +5089,7 @@
|
|
|
5097
5089
|
} else {
|
|
5098
5090
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
5099
5091
|
var tmp0_9 = this.ua7_1;
|
|
5100
|
-
var tmp2_4 = state.
|
|
5092
|
+
var tmp2_4 = state.w6r();
|
|
5101
5093
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5102
5094
|
var exceptPlayerId = this.ua7_1.sa7_1.supportBackwardActions ? action_0.p90_1 : null;
|
|
5103
5095
|
var sendToPlayer_9 = new RoomActionPayload(tmp0_9.ta7_1.d6e(), tmp2_4.id, exceptPlayerId);
|
|
@@ -5106,9 +5098,9 @@
|
|
|
5106
5098
|
} else {
|
|
5107
5099
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
5108
5100
|
var tmp0_10 = this.ua7_1;
|
|
5109
|
-
var tmp2_5 = state.
|
|
5101
|
+
var tmp2_5 = state.w6r();
|
|
5110
5102
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5111
|
-
var exceptPlayerId_0 = this.ua7_1.sa7_1.supportBackwardActions ? action_0.
|
|
5103
|
+
var exceptPlayerId_0 = this.ua7_1.sa7_1.supportBackwardActions ? action_0.q8v_1 : null;
|
|
5112
5104
|
var sendToPlayer_10 = new RoomActionPayload(tmp0_10.ta7_1.d6e(), tmp2_5.id, exceptPlayerId_0);
|
|
5113
5105
|
var tmp$ret$111 = mapToClient_6(action_0, sendToPlayer_10);
|
|
5114
5106
|
tmp = listOfNotNull(tmp$ret$111);
|
|
@@ -5116,14 +5108,14 @@
|
|
|
5116
5108
|
if (action_0 instanceof TrumpMechanicAction) {
|
|
5117
5109
|
var tmp0_11 = this.ua7_1;
|
|
5118
5110
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5119
|
-
var table_7 = state.
|
|
5111
|
+
var table_7 = state.w6r();
|
|
5120
5112
|
var sendToPlayer_11 = new RoomActionPayload(tmp0_11.ta7_1.d6e(), table_7.id, null);
|
|
5121
5113
|
var tmp$ret$113 = mapToClient_5(action_0, sendToPlayer_11);
|
|
5122
5114
|
tmp = listOfNotNull(tmp$ret$113);
|
|
5123
5115
|
} else {
|
|
5124
5116
|
if (action_0 instanceof CombinationChoiceMechanicAction) {
|
|
5125
5117
|
var tmp0_12 = this.ua7_1;
|
|
5126
|
-
var tmp2_6 = state.
|
|
5118
|
+
var tmp2_6 = state.w6r();
|
|
5127
5119
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5128
5120
|
var exceptPlayerId_1 = this.ua7_1.sa7_1.supportBackwardActions ? action_0.v90_1 : null;
|
|
5129
5121
|
var sendToPlayer_12 = new RoomActionPayload(tmp0_12.ta7_1.d6e(), tmp2_6.id, exceptPlayerId_1);
|
|
@@ -5132,9 +5124,9 @@
|
|
|
5132
5124
|
} else {
|
|
5133
5125
|
if (action_0 instanceof PutCardMechanicAction) {
|
|
5134
5126
|
var tmp0_13 = this.ua7_1;
|
|
5135
|
-
var tmp2_7 = state.
|
|
5127
|
+
var tmp2_7 = state.w6r();
|
|
5136
5128
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5137
|
-
var exceptPlayerId_2 = this.ua7_1.sa7_1.supportBackwardActions ? action_0.
|
|
5129
|
+
var exceptPlayerId_2 = this.ua7_1.sa7_1.supportBackwardActions ? action_0.v8v_1 : null;
|
|
5138
5130
|
var sendToPlayer_13 = new RoomActionPayload(tmp0_13.ta7_1.d6e(), tmp2_7.id, exceptPlayerId_2);
|
|
5139
5131
|
var tmp$ret$117 = mapToClient_3(action_0, sendToPlayer_13);
|
|
5140
5132
|
tmp = listOfNotNull(tmp$ret$117);
|
|
@@ -5142,7 +5134,7 @@
|
|
|
5142
5134
|
if (action_0 instanceof PickUpBribeMechanicAction) {
|
|
5143
5135
|
var tmp0_14 = this.ua7_1;
|
|
5144
5136
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5145
|
-
var table_8 = state.
|
|
5137
|
+
var table_8 = state.w6r();
|
|
5146
5138
|
var sendToPlayer_14 = new RoomActionPayload(tmp0_14.ta7_1.d6e(), table_8.id, null);
|
|
5147
5139
|
var tmp$ret$119 = mapToClient_2(action_0, sendToPlayer_14);
|
|
5148
5140
|
tmp = listOfNotNull(tmp$ret$119);
|
|
@@ -5150,7 +5142,7 @@
|
|
|
5150
5142
|
if (action_0 instanceof WinnerCombinationsMechanicAction) {
|
|
5151
5143
|
var tmp0_15 = this.ua7_1;
|
|
5152
5144
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5153
|
-
var table_9 = state.
|
|
5145
|
+
var table_9 = state.w6r();
|
|
5154
5146
|
var sendToPlayer_15 = new RoomActionPayload(tmp0_15.ta7_1.d6e(), table_9.id, null);
|
|
5155
5147
|
var tmp$ret$121 = mapToClient_1(action_0, sendToPlayer_15);
|
|
5156
5148
|
tmp = listOfNotNull(tmp$ret$121);
|
|
@@ -5158,7 +5150,7 @@
|
|
|
5158
5150
|
if (action_0 instanceof MessageMechanicAction) {
|
|
5159
5151
|
var message = action_0.z90_1;
|
|
5160
5152
|
var tmp0_16 = this.ua7_1;
|
|
5161
|
-
var tmp2_8 = state.
|
|
5153
|
+
var tmp2_8 = state.w6r();
|
|
5162
5154
|
var tmp_1;
|
|
5163
5155
|
var tmp_2;
|
|
5164
5156
|
if (this.ua7_1.sa7_1.supportBackwardActions) {
|
|
@@ -5179,7 +5171,7 @@
|
|
|
5179
5171
|
} else {
|
|
5180
5172
|
if (action_0 instanceof PlayerConnectionChangedMechanicAction) {
|
|
5181
5173
|
var tmp0_17 = this.ua7_1;
|
|
5182
|
-
var tmp2_9 = state.
|
|
5174
|
+
var tmp2_9 = state.w6r();
|
|
5183
5175
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5184
5176
|
var exceptPlayerId_4 = action_0.playerId;
|
|
5185
5177
|
var sendToPlayer_17 = new RoomActionPayload(tmp0_17.ta7_1.d6e(), tmp2_9.id, exceptPlayerId_4);
|
|
@@ -5388,7 +5380,7 @@
|
|
|
5388
5380
|
protoOf(ServerMechanicLifecycleReducer).l9h = function (state, action) {
|
|
5389
5381
|
this.o9h_1.n58(action.previousGameId);
|
|
5390
5382
|
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
5391
|
-
var tmp1_tableOrNull = this.n9h_1.u9i(state.
|
|
5383
|
+
var tmp1_tableOrNull = this.n9h_1.u9i(state.w6r(), action.gameId);
|
|
5392
5384
|
var tmp2_payload = get_serverStatePayload_0(state).copy(VOID, addRoomMetadata(this, get_serverStatePayload_0(state), action.gameId));
|
|
5393
5385
|
return state.p8y(tmp1_tableOrNull, tmp2_payload, tmp0_gameLifecycleState);
|
|
5394
5386
|
};
|
|
@@ -5404,7 +5396,7 @@
|
|
|
5404
5396
|
};
|
|
5405
5397
|
protoOf(spectatorsReducer$$inlined$reducerForActionType$1).a9g = function (state, action) {
|
|
5406
5398
|
var action_0 = isInterface(action, SpectatorsAction) ? action : THROW_CCE();
|
|
5407
|
-
var table = state.
|
|
5399
|
+
var table = state.w6r();
|
|
5408
5400
|
var tmp;
|
|
5409
5401
|
if (action_0 instanceof AddSpectatorsAction) {
|
|
5410
5402
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -5605,7 +5597,7 @@
|
|
|
5605
5597
|
protoOf(ServerStatePayload).z3s = function () {
|
|
5606
5598
|
return this.config;
|
|
5607
5599
|
};
|
|
5608
|
-
protoOf(ServerStatePayload).
|
|
5600
|
+
protoOf(ServerStatePayload).i8j = function () {
|
|
5609
5601
|
return this.metadata;
|
|
5610
5602
|
};
|
|
5611
5603
|
protoOf(ServerStatePayload).oe = function () {
|
|
@@ -5673,7 +5665,7 @@
|
|
|
5673
5665
|
if (!(gameId == null)) {
|
|
5674
5666
|
tmp = new ServerLoggerKey(gameId);
|
|
5675
5667
|
} else {
|
|
5676
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5668
|
+
var tmp0_safe_receiver = _this__u8e3s4.tableOrNull;
|
|
5677
5669
|
tmp = tmp0_safe_receiver == null ? null : get_serverLoggerKey(tmp0_safe_receiver);
|
|
5678
5670
|
}
|
|
5679
5671
|
return tmp;
|
|
@@ -5933,7 +5925,7 @@
|
|
|
5933
5925
|
}
|
|
5934
5926
|
var tmp0_safe_receiver = $gameServer();
|
|
5935
5927
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t66();
|
|
5936
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
5928
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.tableOrNull;
|
|
5937
5929
|
return tmp2_safe_receiver == null ? null : toLoggerPayload(tmp2_safe_receiver);
|
|
5938
5930
|
};
|
|
5939
5931
|
}
|
|
@@ -6183,7 +6175,7 @@
|
|
|
6183
6175
|
tmp_1.ja9_1 = tmp_3.w64(this, getPropertyCallableRef('playerAnswerInteractor', 1, tmp_4, TestHelperImpl$_get_playerAnswerInteractor_$ref_1j4fiy(), null));
|
|
6184
6176
|
}
|
|
6185
6177
|
protoOf(TestHelperImpl).getPlayerAnswer = function (table, playerId, botConfig) {
|
|
6186
|
-
return _get_playerAnswerInteractor__msggz1(this).
|
|
6178
|
+
return _get_playerAnswerInteractor__msggz1(this).y8o(playerId, table, botConfig);
|
|
6187
6179
|
};
|
|
6188
6180
|
protoOf(TestHelperImpl).getPlayerAnswerFromClientAction = function (table, currentPlayerId, action, botConfig) {
|
|
6189
6181
|
var mechanicAction = mapFromClient(action, new FromClientActionPayloadProvider(currentPlayerId, TestHelperImpl$getPlayerAnswerFromClientAction$lambda));
|
|
@@ -6349,33 +6341,33 @@
|
|
|
6349
6341
|
protoOf(GameServer).roomOnDelete = roomOnDelete;
|
|
6350
6342
|
protoOf(GameServer).shutdown = shutdown;
|
|
6351
6343
|
defineProp(protoOf(GameServer), 'metadata', function () {
|
|
6352
|
-
return this.
|
|
6344
|
+
return this.i8j();
|
|
6353
6345
|
});
|
|
6354
6346
|
defineProp(protoOf(GameServer), 'id', function () {
|
|
6355
6347
|
return this.y53();
|
|
6356
6348
|
});
|
|
6357
6349
|
defineProp(protoOf(GameServer), 'table', function () {
|
|
6358
|
-
return this.
|
|
6350
|
+
return this.w6r();
|
|
6359
6351
|
});
|
|
6360
6352
|
defineProp(protoOf(GameServer), 'isTableExists', function () {
|
|
6361
|
-
return this.
|
|
6353
|
+
return this.x6r();
|
|
6362
6354
|
});
|
|
6363
6355
|
defineProp(protoOf(GameServer), 'gameLifecycleState', function () {
|
|
6364
|
-
return this.
|
|
6356
|
+
return this.y6r();
|
|
6365
6357
|
});
|
|
6366
6358
|
protoOf($serializer).wz = typeParametersSerializers;
|
|
6367
6359
|
defineProp(protoOf(TableStateUpdateDto), 'roomId', function () {
|
|
6368
|
-
return this.
|
|
6360
|
+
return this.b8g();
|
|
6369
6361
|
});
|
|
6370
6362
|
protoOf($serializer_0).wz = typeParametersSerializers;
|
|
6371
6363
|
defineProp(protoOf(ActionsStateUpdateDto), 'roomId', function () {
|
|
6372
|
-
return this.
|
|
6364
|
+
return this.b8g();
|
|
6373
6365
|
});
|
|
6374
6366
|
defineProp(protoOf(TableStateUpdate), 'roomId', function () {
|
|
6375
|
-
return this.
|
|
6367
|
+
return this.b8g();
|
|
6376
6368
|
});
|
|
6377
6369
|
defineProp(protoOf(ActionsStateUpdate), 'roomId', function () {
|
|
6378
|
-
return this.
|
|
6370
|
+
return this.b8g();
|
|
6379
6371
|
});
|
|
6380
6372
|
protoOf(UpdateServerConfigAction).r6f = get_actionTag;
|
|
6381
6373
|
defineProp(protoOf(UpdateServerConfigAction), 'actionTag', function () {
|