raspberry_games_server_game_logic 1.8.400 → 1.8.402
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/Kotlin-DateTime-library-kotlinx-datetime.js +1 -1
- 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 +82 -82
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlinx-coroutines-core.js +8 -8
- 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,55 +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
3144
|
this.h4q().d('GameEngine_API', 'shutdown: ' + reason + ', ' + roomId);
|
|
3145
|
-
this.j9u_1.
|
|
3145
|
+
this.j9u_1.u6r(GameServer$shutdown$slambda_0(reason, this, roomId, null));
|
|
3146
3146
|
};
|
|
3147
3147
|
protoOf(GameServer).clear = function () {
|
|
3148
3148
|
return this.i2();
|
|
@@ -3363,10 +3363,10 @@
|
|
|
3363
3363
|
this.ia4_1 = roomId;
|
|
3364
3364
|
this.table = table;
|
|
3365
3365
|
}
|
|
3366
|
-
protoOf(TableStateUpdateDto).
|
|
3366
|
+
protoOf(TableStateUpdateDto).b8g = function () {
|
|
3367
3367
|
return this.ia4_1;
|
|
3368
3368
|
};
|
|
3369
|
-
protoOf(TableStateUpdateDto).
|
|
3369
|
+
protoOf(TableStateUpdateDto).w6r = function () {
|
|
3370
3370
|
return this.table;
|
|
3371
3371
|
};
|
|
3372
3372
|
protoOf(TableStateUpdateDto).oe = function () {
|
|
@@ -3493,10 +3493,10 @@
|
|
|
3493
3493
|
this.la4_1 = roomId;
|
|
3494
3494
|
this.actions = actions;
|
|
3495
3495
|
}
|
|
3496
|
-
protoOf(ActionsStateUpdateDto).
|
|
3496
|
+
protoOf(ActionsStateUpdateDto).b8g = function () {
|
|
3497
3497
|
return this.la4_1;
|
|
3498
3498
|
};
|
|
3499
|
-
protoOf(ActionsStateUpdateDto).
|
|
3499
|
+
protoOf(ActionsStateUpdateDto).p8g = function () {
|
|
3500
3500
|
return this.actions;
|
|
3501
3501
|
};
|
|
3502
3502
|
protoOf(ActionsStateUpdateDto).oe = function () {
|
|
@@ -3556,10 +3556,10 @@
|
|
|
3556
3556
|
var tmp$ret$0 = mapToDto(item);
|
|
3557
3557
|
destination.j(tmp$ret$0);
|
|
3558
3558
|
}
|
|
3559
|
-
return new ActionsStateUpdateDto(_this__u8e3s4.ma4_1, encoderDecoderProvider.
|
|
3559
|
+
return new ActionsStateUpdateDto(_this__u8e3s4.ma4_1, encoderDecoderProvider.i8n(destination));
|
|
3560
3560
|
}
|
|
3561
3561
|
function mapToDto_3(_this__u8e3s4, encoderDecoderProvider) {
|
|
3562
|
-
return new TableStateUpdateDto(_this__u8e3s4.na4_1, encoderDecoderProvider.
|
|
3562
|
+
return new TableStateUpdateDto(_this__u8e3s4.na4_1, encoderDecoderProvider.g8n(mapToDto_0(_this__u8e3s4.table)));
|
|
3563
3563
|
}
|
|
3564
3564
|
function ServerStateUpdate() {
|
|
3565
3565
|
}
|
|
@@ -3567,10 +3567,10 @@
|
|
|
3567
3567
|
this.na4_1 = roomId;
|
|
3568
3568
|
this.table = table;
|
|
3569
3569
|
}
|
|
3570
|
-
protoOf(TableStateUpdate).
|
|
3570
|
+
protoOf(TableStateUpdate).b8g = function () {
|
|
3571
3571
|
return this.na4_1;
|
|
3572
3572
|
};
|
|
3573
|
-
protoOf(TableStateUpdate).
|
|
3573
|
+
protoOf(TableStateUpdate).w6r = function () {
|
|
3574
3574
|
return this.table;
|
|
3575
3575
|
};
|
|
3576
3576
|
protoOf(TableStateUpdate).oe = function () {
|
|
@@ -3610,10 +3610,10 @@
|
|
|
3610
3610
|
this.ma4_1 = roomId;
|
|
3611
3611
|
this.actions = actions;
|
|
3612
3612
|
}
|
|
3613
|
-
protoOf(ActionsStateUpdate).
|
|
3613
|
+
protoOf(ActionsStateUpdate).b8g = function () {
|
|
3614
3614
|
return this.ma4_1;
|
|
3615
3615
|
};
|
|
3616
|
-
protoOf(ActionsStateUpdate).
|
|
3616
|
+
protoOf(ActionsStateUpdate).p8g = function () {
|
|
3617
3617
|
return this.actions;
|
|
3618
3618
|
};
|
|
3619
3619
|
protoOf(ActionsStateUpdate).oe = function () {
|
|
@@ -4728,11 +4728,11 @@
|
|
|
4728
4728
|
var state = store.state;
|
|
4729
4729
|
if (tmp4.isGameFinished) {
|
|
4730
4730
|
if (get_serverStatePayload_0(state).config.shouldFinishGameWhenDeploy) {
|
|
4731
|
-
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));
|
|
4732
4732
|
break $l$block_0;
|
|
4733
4733
|
}
|
|
4734
|
-
if (state.
|
|
4735
|
-
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));
|
|
4736
4736
|
break $l$block_0;
|
|
4737
4737
|
}
|
|
4738
4738
|
}
|
|
@@ -4817,7 +4817,7 @@
|
|
|
4817
4817
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
4818
4818
|
var tmp0_0 = this.ua7_1;
|
|
4819
4819
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4820
|
-
var table = state.
|
|
4820
|
+
var table = state.w6r();
|
|
4821
4821
|
var sendToPlayer_0 = new RoomActionPayload(tmp0_0.ta7_1.d6e(), table.id, null);
|
|
4822
4822
|
var tmp$ret$21 = mapToClient_16(action_0, sendToPlayer_0);
|
|
4823
4823
|
tmp = listOfNotNull(tmp$ret$21);
|
|
@@ -4887,7 +4887,7 @@
|
|
|
4887
4887
|
if (action_0 instanceof FinishingGameMechanicAction) {
|
|
4888
4888
|
var tmp0_2 = this.ua7_1;
|
|
4889
4889
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4890
|
-
var table_0 = state.
|
|
4890
|
+
var table_0 = state.w6r();
|
|
4891
4891
|
var sendToPlayer_2 = new RoomActionPayload(tmp0_2.ta7_1.d6e(), table_0.id, null);
|
|
4892
4892
|
var tmp$ret$44 = mapToClient_14(action_0, sendToPlayer_2);
|
|
4893
4893
|
tmp = listOfNotNull(tmp$ret$44);
|
|
@@ -4895,7 +4895,7 @@
|
|
|
4895
4895
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
4896
4896
|
var tmp0_3 = this.ua7_1;
|
|
4897
4897
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4898
|
-
var table_1 = state.
|
|
4898
|
+
var table_1 = state.w6r();
|
|
4899
4899
|
var sendToPlayer_3 = new RoomActionPayload(tmp0_3.ta7_1.d6e(), table_1.id, null);
|
|
4900
4900
|
var tmp$ret$46 = mapToClient_13(action_0, sendToPlayer_3);
|
|
4901
4901
|
tmp = listOfNotNull(tmp$ret$46);
|
|
@@ -4903,7 +4903,7 @@
|
|
|
4903
4903
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
4904
4904
|
var tmp0_4 = this.ua7_1;
|
|
4905
4905
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4906
|
-
var table_2 = state.
|
|
4906
|
+
var table_2 = state.w6r();
|
|
4907
4907
|
var sendToPlayer_4 = new RoomActionPayload(tmp0_4.ta7_1.d6e(), table_2.id, null);
|
|
4908
4908
|
var tmp$ret$48 = mapToClient_12(action_0, sendToPlayer_4);
|
|
4909
4909
|
tmp = listOfNotNull(tmp$ret$48);
|
|
@@ -4911,7 +4911,7 @@
|
|
|
4911
4911
|
if (action_0 instanceof ErrorAction) {
|
|
4912
4912
|
var tmp0_5 = this.ua7_1;
|
|
4913
4913
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4914
|
-
var table_3 = state.
|
|
4914
|
+
var table_3 = state.w6r();
|
|
4915
4915
|
var sendToPlayer_5 = new RoomActionPayload(tmp0_5.ta7_1.d6e(), table_3.id, null);
|
|
4916
4916
|
var tmp$ret$50 = mapToClient_11(action_0, sendToPlayer_5);
|
|
4917
4917
|
tmp = listOfNotNull(tmp$ret$50);
|
|
@@ -4919,7 +4919,7 @@
|
|
|
4919
4919
|
if (action_0 instanceof SceneMechanicAction) {
|
|
4920
4920
|
var tmp0_6 = this.ua7_1;
|
|
4921
4921
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
4922
|
-
var table_4 = state.
|
|
4922
|
+
var table_4 = state.w6r();
|
|
4923
4923
|
var tmp2_1 = table_4.id;
|
|
4924
4924
|
var tmp4_1 = getGameCreator(table_4.players).playerId;
|
|
4925
4925
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
@@ -4974,7 +4974,7 @@
|
|
|
4974
4974
|
if (action_0 instanceof SceneActMechanicAction) {
|
|
4975
4975
|
var tmp0_7 = this.ua7_1;
|
|
4976
4976
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
4977
|
-
var table_5 = state.
|
|
4977
|
+
var table_5 = state.w6r();
|
|
4978
4978
|
var tmp2_2 = table_5.id;
|
|
4979
4979
|
var tmp4_2 = getGameCreator(table_5.players).playerId;
|
|
4980
4980
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
@@ -5029,7 +5029,7 @@
|
|
|
5029
5029
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
5030
5030
|
var tmp0_8 = this.ua7_1;
|
|
5031
5031
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
5032
|
-
var table_6 = state.
|
|
5032
|
+
var table_6 = state.w6r();
|
|
5033
5033
|
var tmp2_3 = table_6.id;
|
|
5034
5034
|
var tmp4_3 = getGameCreator(table_6.players).playerId;
|
|
5035
5035
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
@@ -5072,7 +5072,7 @@
|
|
|
5072
5072
|
}
|
|
5073
5073
|
var sendToPlayer_8 = UserActionPayload_init_$Create$(tmp0_aid_3, tmp2_3, tmp4_3, element_8, destination_20);
|
|
5074
5074
|
var tmp_0;
|
|
5075
|
-
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) {
|
|
5076
5076
|
tmp_0 = null;
|
|
5077
5077
|
} else {
|
|
5078
5078
|
tmp_0 = mapToClient_8(action_0, sendToPlayer_8);
|
|
@@ -5089,7 +5089,7 @@
|
|
|
5089
5089
|
} else {
|
|
5090
5090
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
5091
5091
|
var tmp0_9 = this.ua7_1;
|
|
5092
|
-
var tmp2_4 = state.
|
|
5092
|
+
var tmp2_4 = state.w6r();
|
|
5093
5093
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5094
5094
|
var exceptPlayerId = this.ua7_1.sa7_1.supportBackwardActions ? action_0.p90_1 : null;
|
|
5095
5095
|
var sendToPlayer_9 = new RoomActionPayload(tmp0_9.ta7_1.d6e(), tmp2_4.id, exceptPlayerId);
|
|
@@ -5098,9 +5098,9 @@
|
|
|
5098
5098
|
} else {
|
|
5099
5099
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
5100
5100
|
var tmp0_10 = this.ua7_1;
|
|
5101
|
-
var tmp2_5 = state.
|
|
5101
|
+
var tmp2_5 = state.w6r();
|
|
5102
5102
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5103
|
-
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;
|
|
5104
5104
|
var sendToPlayer_10 = new RoomActionPayload(tmp0_10.ta7_1.d6e(), tmp2_5.id, exceptPlayerId_0);
|
|
5105
5105
|
var tmp$ret$111 = mapToClient_6(action_0, sendToPlayer_10);
|
|
5106
5106
|
tmp = listOfNotNull(tmp$ret$111);
|
|
@@ -5108,14 +5108,14 @@
|
|
|
5108
5108
|
if (action_0 instanceof TrumpMechanicAction) {
|
|
5109
5109
|
var tmp0_11 = this.ua7_1;
|
|
5110
5110
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5111
|
-
var table_7 = state.
|
|
5111
|
+
var table_7 = state.w6r();
|
|
5112
5112
|
var sendToPlayer_11 = new RoomActionPayload(tmp0_11.ta7_1.d6e(), table_7.id, null);
|
|
5113
5113
|
var tmp$ret$113 = mapToClient_5(action_0, sendToPlayer_11);
|
|
5114
5114
|
tmp = listOfNotNull(tmp$ret$113);
|
|
5115
5115
|
} else {
|
|
5116
5116
|
if (action_0 instanceof CombinationChoiceMechanicAction) {
|
|
5117
5117
|
var tmp0_12 = this.ua7_1;
|
|
5118
|
-
var tmp2_6 = state.
|
|
5118
|
+
var tmp2_6 = state.w6r();
|
|
5119
5119
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5120
5120
|
var exceptPlayerId_1 = this.ua7_1.sa7_1.supportBackwardActions ? action_0.v90_1 : null;
|
|
5121
5121
|
var sendToPlayer_12 = new RoomActionPayload(tmp0_12.ta7_1.d6e(), tmp2_6.id, exceptPlayerId_1);
|
|
@@ -5124,9 +5124,9 @@
|
|
|
5124
5124
|
} else {
|
|
5125
5125
|
if (action_0 instanceof PutCardMechanicAction) {
|
|
5126
5126
|
var tmp0_13 = this.ua7_1;
|
|
5127
|
-
var tmp2_7 = state.
|
|
5127
|
+
var tmp2_7 = state.w6r();
|
|
5128
5128
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5129
|
-
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;
|
|
5130
5130
|
var sendToPlayer_13 = new RoomActionPayload(tmp0_13.ta7_1.d6e(), tmp2_7.id, exceptPlayerId_2);
|
|
5131
5131
|
var tmp$ret$117 = mapToClient_3(action_0, sendToPlayer_13);
|
|
5132
5132
|
tmp = listOfNotNull(tmp$ret$117);
|
|
@@ -5134,7 +5134,7 @@
|
|
|
5134
5134
|
if (action_0 instanceof PickUpBribeMechanicAction) {
|
|
5135
5135
|
var tmp0_14 = this.ua7_1;
|
|
5136
5136
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5137
|
-
var table_8 = state.
|
|
5137
|
+
var table_8 = state.w6r();
|
|
5138
5138
|
var sendToPlayer_14 = new RoomActionPayload(tmp0_14.ta7_1.d6e(), table_8.id, null);
|
|
5139
5139
|
var tmp$ret$119 = mapToClient_2(action_0, sendToPlayer_14);
|
|
5140
5140
|
tmp = listOfNotNull(tmp$ret$119);
|
|
@@ -5142,7 +5142,7 @@
|
|
|
5142
5142
|
if (action_0 instanceof WinnerCombinationsMechanicAction) {
|
|
5143
5143
|
var tmp0_15 = this.ua7_1;
|
|
5144
5144
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5145
|
-
var table_9 = state.
|
|
5145
|
+
var table_9 = state.w6r();
|
|
5146
5146
|
var sendToPlayer_15 = new RoomActionPayload(tmp0_15.ta7_1.d6e(), table_9.id, null);
|
|
5147
5147
|
var tmp$ret$121 = mapToClient_1(action_0, sendToPlayer_15);
|
|
5148
5148
|
tmp = listOfNotNull(tmp$ret$121);
|
|
@@ -5150,7 +5150,7 @@
|
|
|
5150
5150
|
if (action_0 instanceof MessageMechanicAction) {
|
|
5151
5151
|
var message = action_0.z90_1;
|
|
5152
5152
|
var tmp0_16 = this.ua7_1;
|
|
5153
|
-
var tmp2_8 = state.
|
|
5153
|
+
var tmp2_8 = state.w6r();
|
|
5154
5154
|
var tmp_1;
|
|
5155
5155
|
var tmp_2;
|
|
5156
5156
|
if (this.ua7_1.sa7_1.supportBackwardActions) {
|
|
@@ -5171,7 +5171,7 @@
|
|
|
5171
5171
|
} else {
|
|
5172
5172
|
if (action_0 instanceof PlayerConnectionChangedMechanicAction) {
|
|
5173
5173
|
var tmp0_17 = this.ua7_1;
|
|
5174
|
-
var tmp2_9 = state.
|
|
5174
|
+
var tmp2_9 = state.w6r();
|
|
5175
5175
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5176
5176
|
var exceptPlayerId_4 = action_0.playerId;
|
|
5177
5177
|
var sendToPlayer_17 = new RoomActionPayload(tmp0_17.ta7_1.d6e(), tmp2_9.id, exceptPlayerId_4);
|
|
@@ -5380,7 +5380,7 @@
|
|
|
5380
5380
|
protoOf(ServerMechanicLifecycleReducer).l9h = function (state, action) {
|
|
5381
5381
|
this.o9h_1.n58(action.previousGameId);
|
|
5382
5382
|
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
5383
|
-
var tmp1_tableOrNull = this.n9h_1.u9i(state.
|
|
5383
|
+
var tmp1_tableOrNull = this.n9h_1.u9i(state.w6r(), action.gameId);
|
|
5384
5384
|
var tmp2_payload = get_serverStatePayload_0(state).copy(VOID, addRoomMetadata(this, get_serverStatePayload_0(state), action.gameId));
|
|
5385
5385
|
return state.p8y(tmp1_tableOrNull, tmp2_payload, tmp0_gameLifecycleState);
|
|
5386
5386
|
};
|
|
@@ -5396,7 +5396,7 @@
|
|
|
5396
5396
|
};
|
|
5397
5397
|
protoOf(spectatorsReducer$$inlined$reducerForActionType$1).a9g = function (state, action) {
|
|
5398
5398
|
var action_0 = isInterface(action, SpectatorsAction) ? action : THROW_CCE();
|
|
5399
|
-
var table = state.
|
|
5399
|
+
var table = state.w6r();
|
|
5400
5400
|
var tmp;
|
|
5401
5401
|
if (action_0 instanceof AddSpectatorsAction) {
|
|
5402
5402
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -5597,7 +5597,7 @@
|
|
|
5597
5597
|
protoOf(ServerStatePayload).z3s = function () {
|
|
5598
5598
|
return this.config;
|
|
5599
5599
|
};
|
|
5600
|
-
protoOf(ServerStatePayload).
|
|
5600
|
+
protoOf(ServerStatePayload).i8j = function () {
|
|
5601
5601
|
return this.metadata;
|
|
5602
5602
|
};
|
|
5603
5603
|
protoOf(ServerStatePayload).oe = function () {
|
|
@@ -5665,7 +5665,7 @@
|
|
|
5665
5665
|
if (!(gameId == null)) {
|
|
5666
5666
|
tmp = new ServerLoggerKey(gameId);
|
|
5667
5667
|
} else {
|
|
5668
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5668
|
+
var tmp0_safe_receiver = _this__u8e3s4.tableOrNull;
|
|
5669
5669
|
tmp = tmp0_safe_receiver == null ? null : get_serverLoggerKey(tmp0_safe_receiver);
|
|
5670
5670
|
}
|
|
5671
5671
|
return tmp;
|
|
@@ -5925,7 +5925,7 @@
|
|
|
5925
5925
|
}
|
|
5926
5926
|
var tmp0_safe_receiver = $gameServer();
|
|
5927
5927
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t66();
|
|
5928
|
-
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;
|
|
5929
5929
|
return tmp2_safe_receiver == null ? null : toLoggerPayload(tmp2_safe_receiver);
|
|
5930
5930
|
};
|
|
5931
5931
|
}
|
|
@@ -6175,7 +6175,7 @@
|
|
|
6175
6175
|
tmp_1.ja9_1 = tmp_3.w64(this, getPropertyCallableRef('playerAnswerInteractor', 1, tmp_4, TestHelperImpl$_get_playerAnswerInteractor_$ref_1j4fiy(), null));
|
|
6176
6176
|
}
|
|
6177
6177
|
protoOf(TestHelperImpl).getPlayerAnswer = function (table, playerId, botConfig) {
|
|
6178
|
-
return _get_playerAnswerInteractor__msggz1(this).
|
|
6178
|
+
return _get_playerAnswerInteractor__msggz1(this).y8o(playerId, table, botConfig);
|
|
6179
6179
|
};
|
|
6180
6180
|
protoOf(TestHelperImpl).getPlayerAnswerFromClientAction = function (table, currentPlayerId, action, botConfig) {
|
|
6181
6181
|
var mechanicAction = mapFromClient(action, new FromClientActionPayloadProvider(currentPlayerId, TestHelperImpl$getPlayerAnswerFromClientAction$lambda));
|
|
@@ -6341,33 +6341,33 @@
|
|
|
6341
6341
|
protoOf(GameServer).roomOnDelete = roomOnDelete;
|
|
6342
6342
|
protoOf(GameServer).shutdown = shutdown;
|
|
6343
6343
|
defineProp(protoOf(GameServer), 'metadata', function () {
|
|
6344
|
-
return this.
|
|
6344
|
+
return this.i8j();
|
|
6345
6345
|
});
|
|
6346
6346
|
defineProp(protoOf(GameServer), 'id', function () {
|
|
6347
6347
|
return this.y53();
|
|
6348
6348
|
});
|
|
6349
6349
|
defineProp(protoOf(GameServer), 'table', function () {
|
|
6350
|
-
return this.
|
|
6350
|
+
return this.w6r();
|
|
6351
6351
|
});
|
|
6352
6352
|
defineProp(protoOf(GameServer), 'isTableExists', function () {
|
|
6353
|
-
return this.
|
|
6353
|
+
return this.x6r();
|
|
6354
6354
|
});
|
|
6355
6355
|
defineProp(protoOf(GameServer), 'gameLifecycleState', function () {
|
|
6356
|
-
return this.
|
|
6356
|
+
return this.y6r();
|
|
6357
6357
|
});
|
|
6358
6358
|
protoOf($serializer).wz = typeParametersSerializers;
|
|
6359
6359
|
defineProp(protoOf(TableStateUpdateDto), 'roomId', function () {
|
|
6360
|
-
return this.
|
|
6360
|
+
return this.b8g();
|
|
6361
6361
|
});
|
|
6362
6362
|
protoOf($serializer_0).wz = typeParametersSerializers;
|
|
6363
6363
|
defineProp(protoOf(ActionsStateUpdateDto), 'roomId', function () {
|
|
6364
|
-
return this.
|
|
6364
|
+
return this.b8g();
|
|
6365
6365
|
});
|
|
6366
6366
|
defineProp(protoOf(TableStateUpdate), 'roomId', function () {
|
|
6367
|
-
return this.
|
|
6367
|
+
return this.b8g();
|
|
6368
6368
|
});
|
|
6369
6369
|
defineProp(protoOf(ActionsStateUpdate), 'roomId', function () {
|
|
6370
|
-
return this.
|
|
6370
|
+
return this.b8g();
|
|
6371
6371
|
});
|
|
6372
6372
|
protoOf(UpdateServerConfigAction).r6f = get_actionTag;
|
|
6373
6373
|
defineProp(protoOf(UpdateServerConfigAction), 'actionTag', function () {
|