raspberry_games_server_game_logic 1.8.269 → 1.8.270
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.
|
@@ -2676,272 +2676,282 @@
|
|
|
2676
2676
|
var this_3 = this.s9j_1;
|
|
2677
2677
|
var tableId_0 = action_0.l8q_1.id;
|
|
2678
2678
|
var gameCreatorPlayerId_0 = action_0.gameCreatorPlayerId;
|
|
2679
|
-
|
|
2679
|
+
// Inline function 'kotlin.collections.map' call
|
|
2680
|
+
var this_4 = action_0.users;
|
|
2681
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
2682
|
+
var destination_4 = ArrayList_init_$Create$(collectionSizeOrDefault(this_4, 10));
|
|
2683
|
+
var tmp0_iterator_4 = this_4.j();
|
|
2684
|
+
while (tmp0_iterator_4.k()) {
|
|
2685
|
+
var item_2 = tmp0_iterator_4.l();
|
|
2686
|
+
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2687
|
+
var tmp$ret$20 = to(item_2.f67_1, PlayerConnectionState_LIVE_getInstance());
|
|
2688
|
+
destination_4.e(tmp$ret$20);
|
|
2689
|
+
}
|
|
2680
2690
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
2681
2691
|
// Inline function 'kotlin.collections.map' call
|
|
2682
2692
|
// Inline function 'kotlin.collections.filter' call
|
|
2683
2693
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2684
|
-
var
|
|
2685
|
-
var
|
|
2686
|
-
while (
|
|
2687
|
-
var element_1 =
|
|
2694
|
+
var destination_5 = ArrayList_init_$Create$_0();
|
|
2695
|
+
var tmp0_iterator_5 = destination_4.j();
|
|
2696
|
+
while (tmp0_iterator_5.k()) {
|
|
2697
|
+
var element_1 = tmp0_iterator_5.l();
|
|
2688
2698
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2689
2699
|
if (element_1.oe_1.isLive) {
|
|
2690
|
-
|
|
2700
|
+
destination_5.e(element_1);
|
|
2691
2701
|
}
|
|
2692
2702
|
}
|
|
2693
2703
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2694
|
-
var
|
|
2695
|
-
var
|
|
2696
|
-
while (
|
|
2697
|
-
var
|
|
2704
|
+
var destination_6 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_5, 10));
|
|
2705
|
+
var tmp0_iterator_6 = destination_5.j();
|
|
2706
|
+
while (tmp0_iterator_6.k()) {
|
|
2707
|
+
var item_3 = tmp0_iterator_6.l();
|
|
2698
2708
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2699
|
-
var tmp$ret$
|
|
2700
|
-
|
|
2709
|
+
var tmp$ret$26 = item_3.ne_1;
|
|
2710
|
+
destination_6.e(tmp$ret$26);
|
|
2701
2711
|
}
|
|
2702
2712
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
2703
|
-
var
|
|
2713
|
+
var destination_7 = ArrayList_init_$Create$_0();
|
|
2704
2714
|
// Inline function 'kotlin.collections.forEach' call
|
|
2705
|
-
var
|
|
2706
|
-
while (
|
|
2707
|
-
var element_2 =
|
|
2715
|
+
var tmp0_iterator_7 = destination_6.j();
|
|
2716
|
+
while (tmp0_iterator_7.k()) {
|
|
2717
|
+
var element_2 = tmp0_iterator_7.l();
|
|
2708
2718
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2709
2719
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2710
2720
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2711
2721
|
var tmp0_aid_0 = this_3.r9j_1.m6d();
|
|
2712
2722
|
// Inline function 'kotlin.collections.map' call
|
|
2713
2723
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2714
|
-
var
|
|
2715
|
-
var
|
|
2716
|
-
while (
|
|
2717
|
-
var
|
|
2724
|
+
var destination_8 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_4, 10));
|
|
2725
|
+
var tmp0_iterator_8 = destination_4.j();
|
|
2726
|
+
while (tmp0_iterator_8.k()) {
|
|
2727
|
+
var item_4 = tmp0_iterator_8.l();
|
|
2718
2728
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>.<anonymous>' call
|
|
2719
|
-
var tmp$ret$
|
|
2720
|
-
|
|
2729
|
+
var tmp$ret$29 = item_4.ne_1;
|
|
2730
|
+
destination_8.e(tmp$ret$29);
|
|
2721
2731
|
}
|
|
2722
|
-
var sendToPlayer_1 = UserActionPayload_init_$Create$(tmp0_aid_0, tableId_0, gameCreatorPlayerId_0, element_2,
|
|
2732
|
+
var sendToPlayer_1 = UserActionPayload_init_$Create$(tmp0_aid_0, tableId_0, gameCreatorPlayerId_0, element_2, destination_8);
|
|
2723
2733
|
var tmp0_safe_receiver_0 = mapToClient_15(action_0, sendToPlayer_1);
|
|
2724
2734
|
if (tmp0_safe_receiver_0 == null)
|
|
2725
2735
|
null;
|
|
2726
2736
|
else {
|
|
2727
2737
|
// Inline function 'kotlin.let' call
|
|
2728
2738
|
// Inline function 'kotlin.contracts.contract' call
|
|
2729
|
-
|
|
2739
|
+
destination_7.e(tmp0_safe_receiver_0);
|
|
2730
2740
|
}
|
|
2731
2741
|
}
|
|
2732
|
-
tmp =
|
|
2742
|
+
tmp = destination_7;
|
|
2733
2743
|
} else {
|
|
2734
2744
|
if (action_0 instanceof FinishingGameMechanicAction) {
|
|
2735
2745
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2736
|
-
var
|
|
2746
|
+
var this_5 = this.s9j_1;
|
|
2737
2747
|
var table_0 = state.g6n();
|
|
2738
2748
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2739
|
-
var sendToPlayer_2 = new RoomActionPayload(
|
|
2740
|
-
var tmp$ret$
|
|
2741
|
-
tmp = listOfNotNull(tmp$ret$
|
|
2749
|
+
var sendToPlayer_2 = new RoomActionPayload(this_5.r9j_1.m6d(), table_0.id, null);
|
|
2750
|
+
var tmp$ret$38 = mapToClient_14(action_0, sendToPlayer_2);
|
|
2751
|
+
tmp = listOfNotNull(tmp$ret$38);
|
|
2742
2752
|
} else {
|
|
2743
2753
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
2744
2754
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2745
|
-
var
|
|
2755
|
+
var this_6 = this.s9j_1;
|
|
2746
2756
|
var table_1 = state.g6n();
|
|
2747
2757
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2748
|
-
var sendToPlayer_3 = new RoomActionPayload(
|
|
2749
|
-
var tmp$ret$
|
|
2750
|
-
tmp = listOfNotNull(tmp$ret$
|
|
2758
|
+
var sendToPlayer_3 = new RoomActionPayload(this_6.r9j_1.m6d(), table_1.id, null);
|
|
2759
|
+
var tmp$ret$40 = mapToClient_13(action_0, sendToPlayer_3);
|
|
2760
|
+
tmp = listOfNotNull(tmp$ret$40);
|
|
2751
2761
|
} else {
|
|
2752
2762
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
2753
2763
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2754
|
-
var
|
|
2764
|
+
var this_7 = this.s9j_1;
|
|
2755
2765
|
var table_2 = state.g6n();
|
|
2756
2766
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2757
|
-
var sendToPlayer_4 = new RoomActionPayload(
|
|
2758
|
-
var tmp$ret$
|
|
2759
|
-
tmp = listOfNotNull(tmp$ret$
|
|
2767
|
+
var sendToPlayer_4 = new RoomActionPayload(this_7.r9j_1.m6d(), table_2.id, null);
|
|
2768
|
+
var tmp$ret$42 = mapToClient_12(action_0, sendToPlayer_4);
|
|
2769
|
+
tmp = listOfNotNull(tmp$ret$42);
|
|
2760
2770
|
} else {
|
|
2761
2771
|
if (action_0 instanceof ErrorAction) {
|
|
2762
2772
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2763
|
-
var
|
|
2773
|
+
var this_8 = this.s9j_1;
|
|
2764
2774
|
var table_3 = state.g6n();
|
|
2765
2775
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2766
|
-
var sendToPlayer_5 = new RoomActionPayload(
|
|
2767
|
-
var tmp$ret$
|
|
2768
|
-
tmp = listOfNotNull(tmp$ret$
|
|
2776
|
+
var sendToPlayer_5 = new RoomActionPayload(this_8.r9j_1.m6d(), table_3.id, null);
|
|
2777
|
+
var tmp$ret$44 = mapToClient_11(action_0, sendToPlayer_5);
|
|
2778
|
+
tmp = listOfNotNull(tmp$ret$44);
|
|
2769
2779
|
} else {
|
|
2770
2780
|
if (action_0 instanceof SceneMechanicAction) {
|
|
2771
2781
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2772
|
-
var
|
|
2782
|
+
var this_9 = this.s9j_1;
|
|
2773
2783
|
var table_4 = state.g6n();
|
|
2774
2784
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2775
2785
|
var tableId_1 = table_4.id;
|
|
2776
2786
|
var gameCreatorPlayerId_1 = getGameCreator(table_4.players).playerId;
|
|
2777
|
-
var
|
|
2787
|
+
var players = table_4.playersConnections;
|
|
2778
2788
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
2779
2789
|
// Inline function 'kotlin.collections.map' call
|
|
2780
2790
|
// Inline function 'kotlin.collections.filter' call
|
|
2781
2791
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2782
|
-
var
|
|
2783
|
-
var
|
|
2784
|
-
while (
|
|
2785
|
-
var element_3 =
|
|
2792
|
+
var destination_9 = ArrayList_init_$Create$_0();
|
|
2793
|
+
var tmp0_iterator_9 = players.j();
|
|
2794
|
+
while (tmp0_iterator_9.k()) {
|
|
2795
|
+
var element_3 = tmp0_iterator_9.l();
|
|
2786
2796
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2787
2797
|
if (element_3.oe_1.isLive) {
|
|
2788
|
-
|
|
2798
|
+
destination_9.e(element_3);
|
|
2789
2799
|
}
|
|
2790
2800
|
}
|
|
2791
2801
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2792
|
-
var
|
|
2793
|
-
var
|
|
2794
|
-
while (
|
|
2795
|
-
var
|
|
2802
|
+
var destination_10 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_9, 10));
|
|
2803
|
+
var tmp0_iterator_10 = destination_9.j();
|
|
2804
|
+
while (tmp0_iterator_10.k()) {
|
|
2805
|
+
var item_5 = tmp0_iterator_10.l();
|
|
2796
2806
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2797
|
-
var tmp$ret$
|
|
2798
|
-
|
|
2807
|
+
var tmp$ret$49 = item_5.ne_1;
|
|
2808
|
+
destination_10.e(tmp$ret$49);
|
|
2799
2809
|
}
|
|
2800
2810
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
2801
|
-
var
|
|
2811
|
+
var destination_11 = ArrayList_init_$Create$_0();
|
|
2802
2812
|
// Inline function 'kotlin.collections.forEach' call
|
|
2803
|
-
var
|
|
2804
|
-
while (
|
|
2805
|
-
var element_4 =
|
|
2813
|
+
var tmp0_iterator_11 = destination_10.j();
|
|
2814
|
+
while (tmp0_iterator_11.k()) {
|
|
2815
|
+
var element_4 = tmp0_iterator_11.l();
|
|
2806
2816
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2807
2817
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2808
2818
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2809
|
-
var tmp0_aid_1 =
|
|
2819
|
+
var tmp0_aid_1 = this_9.r9j_1.m6d();
|
|
2810
2820
|
// Inline function 'kotlin.collections.map' call
|
|
2811
2821
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2812
|
-
var
|
|
2813
|
-
var
|
|
2814
|
-
while (
|
|
2815
|
-
var
|
|
2822
|
+
var destination_12 = ArrayList_init_$Create$(collectionSizeOrDefault(players, 10));
|
|
2823
|
+
var tmp0_iterator_12 = players.j();
|
|
2824
|
+
while (tmp0_iterator_12.k()) {
|
|
2825
|
+
var item_6 = tmp0_iterator_12.l();
|
|
2816
2826
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>.<anonymous>' call
|
|
2817
|
-
var tmp$ret$
|
|
2818
|
-
|
|
2827
|
+
var tmp$ret$52 = item_6.ne_1;
|
|
2828
|
+
destination_12.e(tmp$ret$52);
|
|
2819
2829
|
}
|
|
2820
|
-
var sendToPlayer_6 = UserActionPayload_init_$Create$(tmp0_aid_1, tableId_1, gameCreatorPlayerId_1, element_4,
|
|
2830
|
+
var sendToPlayer_6 = UserActionPayload_init_$Create$(tmp0_aid_1, tableId_1, gameCreatorPlayerId_1, element_4, destination_12);
|
|
2821
2831
|
var tmp0_safe_receiver_1 = mapToClient_10(action_0, sendToPlayer_6);
|
|
2822
2832
|
if (tmp0_safe_receiver_1 == null)
|
|
2823
2833
|
null;
|
|
2824
2834
|
else {
|
|
2825
2835
|
// Inline function 'kotlin.let' call
|
|
2826
2836
|
// Inline function 'kotlin.contracts.contract' call
|
|
2827
|
-
|
|
2837
|
+
destination_11.e(tmp0_safe_receiver_1);
|
|
2828
2838
|
}
|
|
2829
2839
|
}
|
|
2830
|
-
tmp =
|
|
2840
|
+
tmp = destination_11;
|
|
2831
2841
|
} else {
|
|
2832
2842
|
if (action_0 instanceof SceneActMechanicAction) {
|
|
2833
2843
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2834
|
-
var
|
|
2844
|
+
var this_10 = this.s9j_1;
|
|
2835
2845
|
var table_5 = state.g6n();
|
|
2836
2846
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2837
2847
|
var tableId_2 = table_5.id;
|
|
2838
2848
|
var gameCreatorPlayerId_2 = getGameCreator(table_5.players).playerId;
|
|
2839
|
-
var
|
|
2849
|
+
var players_0 = table_5.playersConnections;
|
|
2840
2850
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
2841
2851
|
// Inline function 'kotlin.collections.map' call
|
|
2842
2852
|
// Inline function 'kotlin.collections.filter' call
|
|
2843
2853
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2844
|
-
var
|
|
2845
|
-
var
|
|
2846
|
-
while (
|
|
2847
|
-
var element_5 =
|
|
2854
|
+
var destination_13 = ArrayList_init_$Create$_0();
|
|
2855
|
+
var tmp0_iterator_13 = players_0.j();
|
|
2856
|
+
while (tmp0_iterator_13.k()) {
|
|
2857
|
+
var element_5 = tmp0_iterator_13.l();
|
|
2848
2858
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2849
2859
|
if (element_5.oe_1.isLive) {
|
|
2850
|
-
|
|
2860
|
+
destination_13.e(element_5);
|
|
2851
2861
|
}
|
|
2852
2862
|
}
|
|
2853
2863
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2854
|
-
var
|
|
2855
|
-
var
|
|
2856
|
-
while (
|
|
2857
|
-
var
|
|
2864
|
+
var destination_14 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_13, 10));
|
|
2865
|
+
var tmp0_iterator_14 = destination_13.j();
|
|
2866
|
+
while (tmp0_iterator_14.k()) {
|
|
2867
|
+
var item_7 = tmp0_iterator_14.l();
|
|
2858
2868
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2859
|
-
var tmp$ret$
|
|
2860
|
-
|
|
2869
|
+
var tmp$ret$65 = item_7.ne_1;
|
|
2870
|
+
destination_14.e(tmp$ret$65);
|
|
2861
2871
|
}
|
|
2862
2872
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
2863
|
-
var
|
|
2873
|
+
var destination_15 = ArrayList_init_$Create$_0();
|
|
2864
2874
|
// Inline function 'kotlin.collections.forEach' call
|
|
2865
|
-
var
|
|
2866
|
-
while (
|
|
2867
|
-
var element_6 =
|
|
2875
|
+
var tmp0_iterator_15 = destination_14.j();
|
|
2876
|
+
while (tmp0_iterator_15.k()) {
|
|
2877
|
+
var element_6 = tmp0_iterator_15.l();
|
|
2868
2878
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2869
2879
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2870
2880
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2871
|
-
var tmp0_aid_2 =
|
|
2881
|
+
var tmp0_aid_2 = this_10.r9j_1.m6d();
|
|
2872
2882
|
// Inline function 'kotlin.collections.map' call
|
|
2873
2883
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2874
|
-
var
|
|
2875
|
-
var
|
|
2876
|
-
while (
|
|
2877
|
-
var
|
|
2884
|
+
var destination_16 = ArrayList_init_$Create$(collectionSizeOrDefault(players_0, 10));
|
|
2885
|
+
var tmp0_iterator_16 = players_0.j();
|
|
2886
|
+
while (tmp0_iterator_16.k()) {
|
|
2887
|
+
var item_8 = tmp0_iterator_16.l();
|
|
2878
2888
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>.<anonymous>' call
|
|
2879
|
-
var tmp$ret$
|
|
2880
|
-
|
|
2889
|
+
var tmp$ret$68 = item_8.ne_1;
|
|
2890
|
+
destination_16.e(tmp$ret$68);
|
|
2881
2891
|
}
|
|
2882
|
-
var sendToPlayer_7 = UserActionPayload_init_$Create$(tmp0_aid_2, tableId_2, gameCreatorPlayerId_2, element_6,
|
|
2892
|
+
var sendToPlayer_7 = UserActionPayload_init_$Create$(tmp0_aid_2, tableId_2, gameCreatorPlayerId_2, element_6, destination_16);
|
|
2883
2893
|
var tmp0_safe_receiver_2 = mapToClient_9(action_0, sendToPlayer_7);
|
|
2884
2894
|
if (tmp0_safe_receiver_2 == null)
|
|
2885
2895
|
null;
|
|
2886
2896
|
else {
|
|
2887
2897
|
// Inline function 'kotlin.let' call
|
|
2888
2898
|
// Inline function 'kotlin.contracts.contract' call
|
|
2889
|
-
|
|
2899
|
+
destination_15.e(tmp0_safe_receiver_2);
|
|
2890
2900
|
}
|
|
2891
2901
|
}
|
|
2892
|
-
tmp =
|
|
2902
|
+
tmp = destination_15;
|
|
2893
2903
|
} else {
|
|
2894
2904
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
2895
2905
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2896
|
-
var
|
|
2906
|
+
var this_11 = this.s9j_1;
|
|
2897
2907
|
var table_6 = state.g6n();
|
|
2898
2908
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2899
2909
|
var tableId_3 = table_6.id;
|
|
2900
2910
|
var gameCreatorPlayerId_3 = getGameCreator(table_6.players).playerId;
|
|
2901
|
-
var
|
|
2911
|
+
var players_1 = table_6.playersConnections;
|
|
2902
2912
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
2903
2913
|
// Inline function 'kotlin.collections.map' call
|
|
2904
2914
|
// Inline function 'kotlin.collections.filter' call
|
|
2905
2915
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2906
|
-
var
|
|
2907
|
-
var
|
|
2908
|
-
while (
|
|
2909
|
-
var element_7 =
|
|
2916
|
+
var destination_17 = ArrayList_init_$Create$_0();
|
|
2917
|
+
var tmp0_iterator_17 = players_1.j();
|
|
2918
|
+
while (tmp0_iterator_17.k()) {
|
|
2919
|
+
var element_7 = tmp0_iterator_17.l();
|
|
2910
2920
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2911
2921
|
if (element_7.oe_1.isLive) {
|
|
2912
|
-
|
|
2922
|
+
destination_17.e(element_7);
|
|
2913
2923
|
}
|
|
2914
2924
|
}
|
|
2915
2925
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2916
|
-
var
|
|
2917
|
-
var
|
|
2918
|
-
while (
|
|
2919
|
-
var
|
|
2926
|
+
var destination_18 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_17, 10));
|
|
2927
|
+
var tmp0_iterator_18 = destination_17.j();
|
|
2928
|
+
while (tmp0_iterator_18.k()) {
|
|
2929
|
+
var item_9 = tmp0_iterator_18.l();
|
|
2920
2930
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2921
|
-
var tmp$ret$
|
|
2922
|
-
|
|
2931
|
+
var tmp$ret$81 = item_9.ne_1;
|
|
2932
|
+
destination_18.e(tmp$ret$81);
|
|
2923
2933
|
}
|
|
2924
2934
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
2925
|
-
var
|
|
2935
|
+
var destination_19 = ArrayList_init_$Create$_0();
|
|
2926
2936
|
// Inline function 'kotlin.collections.forEach' call
|
|
2927
|
-
var
|
|
2928
|
-
while (
|
|
2929
|
-
var element_8 =
|
|
2937
|
+
var tmp0_iterator_19 = destination_18.j();
|
|
2938
|
+
while (tmp0_iterator_19.k()) {
|
|
2939
|
+
var element_8 = tmp0_iterator_19.l();
|
|
2930
2940
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2931
2941
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2932
2942
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2933
|
-
var tmp0_aid_3 =
|
|
2943
|
+
var tmp0_aid_3 = this_11.r9j_1.m6d();
|
|
2934
2944
|
// Inline function 'kotlin.collections.map' call
|
|
2935
2945
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2936
|
-
var
|
|
2937
|
-
var
|
|
2938
|
-
while (
|
|
2939
|
-
var
|
|
2946
|
+
var destination_20 = ArrayList_init_$Create$(collectionSizeOrDefault(players_1, 10));
|
|
2947
|
+
var tmp0_iterator_20 = players_1.j();
|
|
2948
|
+
while (tmp0_iterator_20.k()) {
|
|
2949
|
+
var item_10 = tmp0_iterator_20.l();
|
|
2940
2950
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>.<anonymous>' call
|
|
2941
|
-
var tmp$ret$
|
|
2942
|
-
|
|
2951
|
+
var tmp$ret$84 = item_10.ne_1;
|
|
2952
|
+
destination_20.e(tmp$ret$84);
|
|
2943
2953
|
}
|
|
2944
|
-
var sendToPlayer_8 = UserActionPayload_init_$Create$(tmp0_aid_3, tableId_3, gameCreatorPlayerId_3, element_8,
|
|
2954
|
+
var sendToPlayer_8 = UserActionPayload_init_$Create$(tmp0_aid_3, tableId_3, gameCreatorPlayerId_3, element_8, destination_20);
|
|
2945
2955
|
var tmp_0;
|
|
2946
2956
|
if (this.s9j_1.q9j_1.supportBackwardActions && getPlayer(state.g6n().players, sendToPlayer_8.k79_1).z6s_1.d6t_1) {
|
|
2947
2957
|
tmp_0 = null;
|
|
@@ -2954,82 +2964,82 @@
|
|
|
2954
2964
|
else {
|
|
2955
2965
|
// Inline function 'kotlin.let' call
|
|
2956
2966
|
// Inline function 'kotlin.contracts.contract' call
|
|
2957
|
-
|
|
2967
|
+
destination_19.e(tmp0_safe_receiver_3);
|
|
2958
2968
|
}
|
|
2959
2969
|
}
|
|
2960
|
-
tmp =
|
|
2970
|
+
tmp = destination_19;
|
|
2961
2971
|
} else {
|
|
2962
2972
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
2963
2973
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2964
|
-
var
|
|
2974
|
+
var this_12 = this.s9j_1;
|
|
2965
2975
|
var table_7 = state.g6n();
|
|
2966
2976
|
var exceptPlayerId = this.s9j_1.q9j_1.supportBackwardActions ? action_0.f8r_1 : null;
|
|
2967
2977
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2968
|
-
var sendToPlayer_9 = new RoomActionPayload(
|
|
2969
|
-
var tmp$ret$
|
|
2970
|
-
tmp = listOfNotNull(tmp$ret$
|
|
2978
|
+
var sendToPlayer_9 = new RoomActionPayload(this_12.r9j_1.m6d(), table_7.id, exceptPlayerId);
|
|
2979
|
+
var tmp$ret$94 = mapToClient_7(action_0, sendToPlayer_9);
|
|
2980
|
+
tmp = listOfNotNull(tmp$ret$94);
|
|
2971
2981
|
} else {
|
|
2972
2982
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
2973
2983
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2974
|
-
var
|
|
2984
|
+
var this_13 = this.s9j_1;
|
|
2975
2985
|
var table_8 = state.g6n();
|
|
2976
2986
|
var exceptPlayerId_0 = this.s9j_1.q9j_1.supportBackwardActions ? action_0.d8m_1 : null;
|
|
2977
2987
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2978
|
-
var sendToPlayer_10 = new RoomActionPayload(
|
|
2979
|
-
var tmp$ret$
|
|
2980
|
-
tmp = listOfNotNull(tmp$ret$
|
|
2988
|
+
var sendToPlayer_10 = new RoomActionPayload(this_13.r9j_1.m6d(), table_8.id, exceptPlayerId_0);
|
|
2989
|
+
var tmp$ret$96 = mapToClient_6(action_0, sendToPlayer_10);
|
|
2990
|
+
tmp = listOfNotNull(tmp$ret$96);
|
|
2981
2991
|
} else {
|
|
2982
2992
|
if (action_0 instanceof TrumpMechanicAction) {
|
|
2983
2993
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2984
|
-
var
|
|
2994
|
+
var this_14 = this.s9j_1;
|
|
2985
2995
|
var table_9 = state.g6n();
|
|
2986
2996
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2987
|
-
var sendToPlayer_11 = new RoomActionPayload(
|
|
2988
|
-
var tmp$ret$
|
|
2989
|
-
tmp = listOfNotNull(tmp$ret$
|
|
2997
|
+
var sendToPlayer_11 = new RoomActionPayload(this_14.r9j_1.m6d(), table_9.id, null);
|
|
2998
|
+
var tmp$ret$98 = mapToClient_5(action_0, sendToPlayer_11);
|
|
2999
|
+
tmp = listOfNotNull(tmp$ret$98);
|
|
2990
3000
|
} else {
|
|
2991
3001
|
if (action_0 instanceof CombinationChoiceMechanicAction) {
|
|
2992
3002
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2993
|
-
var
|
|
3003
|
+
var this_15 = this.s9j_1;
|
|
2994
3004
|
var table_10 = state.g6n();
|
|
2995
3005
|
var exceptPlayerId_1 = this.s9j_1.q9j_1.supportBackwardActions ? action_0.l8r_1 : null;
|
|
2996
3006
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2997
|
-
var sendToPlayer_12 = new RoomActionPayload(
|
|
2998
|
-
var tmp$ret$
|
|
2999
|
-
tmp = listOfNotNull(tmp$ret$
|
|
3007
|
+
var sendToPlayer_12 = new RoomActionPayload(this_15.r9j_1.m6d(), table_10.id, exceptPlayerId_1);
|
|
3008
|
+
var tmp$ret$100 = mapToClient_4(action_0, sendToPlayer_12);
|
|
3009
|
+
tmp = listOfNotNull(tmp$ret$100);
|
|
3000
3010
|
} else {
|
|
3001
3011
|
if (action_0 instanceof PutCardMechanicAction) {
|
|
3002
3012
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3003
|
-
var
|
|
3013
|
+
var this_16 = this.s9j_1;
|
|
3004
3014
|
var table_11 = state.g6n();
|
|
3005
3015
|
var exceptPlayerId_2 = this.s9j_1.q9j_1.supportBackwardActions ? action_0.i8m_1 : null;
|
|
3006
3016
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3007
|
-
var sendToPlayer_13 = new RoomActionPayload(
|
|
3008
|
-
var tmp$ret$
|
|
3009
|
-
tmp = listOfNotNull(tmp$ret$
|
|
3017
|
+
var sendToPlayer_13 = new RoomActionPayload(this_16.r9j_1.m6d(), table_11.id, exceptPlayerId_2);
|
|
3018
|
+
var tmp$ret$102 = mapToClient_3(action_0, sendToPlayer_13);
|
|
3019
|
+
tmp = listOfNotNull(tmp$ret$102);
|
|
3010
3020
|
} else {
|
|
3011
3021
|
if (action_0 instanceof PickUpBribeMechanicAction) {
|
|
3012
3022
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3013
|
-
var
|
|
3023
|
+
var this_17 = this.s9j_1;
|
|
3014
3024
|
var table_12 = state.g6n();
|
|
3015
3025
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3016
|
-
var sendToPlayer_14 = new RoomActionPayload(
|
|
3017
|
-
var tmp$ret$
|
|
3018
|
-
tmp = listOfNotNull(tmp$ret$
|
|
3026
|
+
var sendToPlayer_14 = new RoomActionPayload(this_17.r9j_1.m6d(), table_12.id, null);
|
|
3027
|
+
var tmp$ret$104 = mapToClient_2(action_0, sendToPlayer_14);
|
|
3028
|
+
tmp = listOfNotNull(tmp$ret$104);
|
|
3019
3029
|
} else {
|
|
3020
3030
|
if (action_0 instanceof WinnerCombinationsMechanicAction) {
|
|
3021
3031
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3022
|
-
var
|
|
3032
|
+
var this_18 = this.s9j_1;
|
|
3023
3033
|
var table_13 = state.g6n();
|
|
3024
3034
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3025
|
-
var sendToPlayer_15 = new RoomActionPayload(
|
|
3026
|
-
var tmp$ret$
|
|
3027
|
-
tmp = listOfNotNull(tmp$ret$
|
|
3035
|
+
var sendToPlayer_15 = new RoomActionPayload(this_18.r9j_1.m6d(), table_13.id, null);
|
|
3036
|
+
var tmp$ret$106 = mapToClient_1(action_0, sendToPlayer_15);
|
|
3037
|
+
tmp = listOfNotNull(tmp$ret$106);
|
|
3028
3038
|
} else {
|
|
3029
3039
|
if (action_0 instanceof MessageMechanicAction) {
|
|
3030
3040
|
var message = action_0.p8r_1;
|
|
3031
3041
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3032
|
-
var
|
|
3042
|
+
var this_19 = this.s9j_1;
|
|
3033
3043
|
var table_14 = state.g6n();
|
|
3034
3044
|
var tmp_1;
|
|
3035
3045
|
var tmp_2;
|
|
@@ -3045,19 +3055,19 @@
|
|
|
3045
3055
|
}
|
|
3046
3056
|
var exceptPlayerId_3 = tmp_1;
|
|
3047
3057
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3048
|
-
var sendToPlayer_16 = new RoomActionPayload(
|
|
3049
|
-
var tmp$ret$
|
|
3050
|
-
tmp = listOfNotNull(tmp$ret$
|
|
3058
|
+
var sendToPlayer_16 = new RoomActionPayload(this_19.r9j_1.m6d(), table_14.id, exceptPlayerId_3);
|
|
3059
|
+
var tmp$ret$108 = mapToClient_0(action_0, sendToPlayer_16);
|
|
3060
|
+
tmp = listOfNotNull(tmp$ret$108);
|
|
3051
3061
|
} else {
|
|
3052
3062
|
if (action_0 instanceof PlayerConnectionChangedMechanicAction) {
|
|
3053
3063
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3054
|
-
var
|
|
3064
|
+
var this_20 = this.s9j_1;
|
|
3055
3065
|
var table_15 = state.g6n();
|
|
3056
3066
|
var exceptPlayerId_4 = action_0.playerId;
|
|
3057
3067
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3058
|
-
var sendToPlayer_17 = new RoomActionPayload(
|
|
3059
|
-
var tmp$ret$
|
|
3060
|
-
tmp = listOfNotNull(tmp$ret$
|
|
3068
|
+
var sendToPlayer_17 = new RoomActionPayload(this_20.r9j_1.m6d(), table_15.id, exceptPlayerId_4);
|
|
3069
|
+
var tmp$ret$110 = mapToClient(action_0, sendToPlayer_17);
|
|
3070
|
+
tmp = listOfNotNull(tmp$ret$110);
|
|
3061
3071
|
} else {
|
|
3062
3072
|
noWhenBranchMatchedException();
|
|
3063
3073
|
}
|
|
@@ -3081,9 +3091,9 @@
|
|
|
3081
3091
|
}
|
|
3082
3092
|
var actionsToSent = tmp;
|
|
3083
3093
|
// Inline function 'kotlin.collections.forEach' call
|
|
3084
|
-
var
|
|
3085
|
-
while (
|
|
3086
|
-
var element_9 =
|
|
3094
|
+
var tmp0_iterator_21 = actionsToSent.j();
|
|
3095
|
+
while (tmp0_iterator_21.k()) {
|
|
3096
|
+
var element_9 = tmp0_iterator_21.l();
|
|
3087
3097
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3088
3098
|
store.dispatch(element_9);
|
|
3089
3099
|
}
|