raspberry_games_engine_helpers 1.8.347 → 1.8.349
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.d.ts +1 -0
- package/Logic_Debertz-engine.js +17 -11
- package/Logic_Debertz-engine.js.map +1 -1
- package/{secure-random-secure-random.js → error-library-error.js} +2 -2
- package/package.json +1 -1
- package/random-library-crypto-rand.js +15 -0
- package/random-library-crypto-rand.js.map +1 -0
- package/random-library-secure-random.js +15 -0
- package/random-library-secure-random.js.map +1 -0
- package/raspberry-cardgame-lib-core.js +8 -8
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-random.js.map +1 -1
- /package/{secure-random-secure-random.js.map → error-library-error.js.map} +0 -0
package/Logic_Debertz-core.js
CHANGED
|
@@ -215,7 +215,7 @@
|
|
|
215
215
|
initMetadataForClass(LoggerOutputDataDto, 'LoggerOutputDataDto', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_10});
|
|
216
216
|
//endregion
|
|
217
217
|
function GameEngineConfig() {
|
|
218
|
-
this.version = '1.8.
|
|
218
|
+
this.version = '1.8.349';
|
|
219
219
|
}
|
|
220
220
|
protoOf(GameEngineConfig).y27 = function () {
|
|
221
221
|
return this.version;
|
|
@@ -2699,6 +2699,7 @@ export declare interface GameHelper {
|
|
|
2699
2699
|
}
|
|
2700
2700
|
export declare interface GameResources {
|
|
2701
2701
|
createBotUser(playerId: string, existingNicknames?: Array<string>): com.logic.data.models.player.GameUserInfo;
|
|
2702
|
+
/** @deprecated Not used */
|
|
2702
2703
|
createBotUsers(playerIds: Array<string>): Array<com.logic.data.models.player.GameUserInfo>;
|
|
2703
2704
|
readonly __doNotUseOrImplementIt: {
|
|
2704
2705
|
readonly GameResources: unique symbol;
|
package/Logic_Debertz-engine.js
CHANGED
|
@@ -752,14 +752,14 @@
|
|
|
752
752
|
initMetadataForClass(ClearAction, 'ClearAction', VOID, VOID, [Action, NotValidateIfGameFinishing, NotValidateIfGameFinished]);
|
|
753
753
|
initMetadataForClass(FromClientActionPayloadProvider, 'FromClientActionPayloadProvider');
|
|
754
754
|
initMetadataForClass(FromClientAction, 'FromClientAction', VOID, VOID, [Action]);
|
|
755
|
-
initMetadataForClass(PartnerSelectedFromClientAction, 'PartnerSelectedFromClientAction', VOID, FromClientAction, [FromClientAction,
|
|
756
|
-
initMetadataForClass(PlayerReadyFromClientAction, 'PlayerReadyFromClientAction', VOID, FromClientAction, [FromClientAction,
|
|
757
|
-
initMetadataForClass(SuitChoiceFromClientAction, 'SuitChoiceFromClientAction', VOID, FromClientAction, [FromClientAction,
|
|
758
|
-
initMetadataForClass(CombinationChoiceFromClientAction, 'CombinationChoiceFromClientAction', VOID, FromClientAction, [FromClientAction,
|
|
759
|
-
initMetadataForClass(CardFromClientAction, 'CardFromClientAction', VOID, FromClientAction, [FromClientAction,
|
|
755
|
+
initMetadataForClass(PartnerSelectedFromClientAction, 'PartnerSelectedFromClientAction', VOID, FromClientAction, [FromClientAction, PlayerIdContract, Action]);
|
|
756
|
+
initMetadataForClass(PlayerReadyFromClientAction, 'PlayerReadyFromClientAction', VOID, FromClientAction, [FromClientAction, PlayerIdContract, Action]);
|
|
757
|
+
initMetadataForClass(SuitChoiceFromClientAction, 'SuitChoiceFromClientAction', VOID, FromClientAction, [FromClientAction, PlayerIdContract, Action]);
|
|
758
|
+
initMetadataForClass(CombinationChoiceFromClientAction, 'CombinationChoiceFromClientAction', VOID, FromClientAction, [FromClientAction, PlayerIdContract, Action]);
|
|
759
|
+
initMetadataForClass(CardFromClientAction, 'CardFromClientAction', VOID, FromClientAction, [FromClientAction, PlayerIdContract, Action]);
|
|
760
760
|
initMetadataForClass(MessageFromClientAction, 'MessageFromClientAction', VOID, FromClientAction);
|
|
761
761
|
initMetadataForClass(ExitFromClientAction, 'ExitFromClientAction', VOID, FromClientAction);
|
|
762
|
-
initMetadataForClass(RequestedCardDecksFromClientAction, 'RequestedCardDecksFromClientAction', VOID, FromClientAction, [FromClientAction,
|
|
762
|
+
initMetadataForClass(RequestedCardDecksFromClientAction, 'RequestedCardDecksFromClientAction', VOID, FromClientAction, [FromClientAction, PlayerIdContract, Action]);
|
|
763
763
|
initMetadataForCompanion(Companion_148);
|
|
764
764
|
initMetadataForClass(ActionDeliveryPayload, 'ActionDeliveryPayload');
|
|
765
765
|
initMetadataForCompanion(Companion_149, VOID, [SerializerFactory]);
|
|
@@ -1789,13 +1789,13 @@
|
|
|
1789
1789
|
tmp = 0;
|
|
1790
1790
|
break;
|
|
1791
1791
|
case 1:
|
|
1792
|
-
tmp =
|
|
1792
|
+
tmp = 1001;
|
|
1793
1793
|
break;
|
|
1794
1794
|
case 2:
|
|
1795
|
-
tmp =
|
|
1795
|
+
tmp = 1201;
|
|
1796
1796
|
break;
|
|
1797
1797
|
case 3:
|
|
1798
|
-
tmp =
|
|
1798
|
+
tmp = 1401;
|
|
1799
1799
|
break;
|
|
1800
1800
|
default:
|
|
1801
1801
|
noWhenBranchMatchedException();
|
|
@@ -36005,6 +36005,11 @@
|
|
|
36005
36005
|
function values_19() {
|
|
36006
36006
|
return [AvatarSet_ORIGIN_getInstance(), AvatarSet_NOSTALGIA_getInstance()];
|
|
36007
36007
|
}
|
|
36008
|
+
function get_entries_5() {
|
|
36009
|
+
if ($ENTRIES_5 == null)
|
|
36010
|
+
$ENTRIES_5 = enumEntries(values_19());
|
|
36011
|
+
return $ENTRIES_5;
|
|
36012
|
+
}
|
|
36008
36013
|
var AvatarSet_entriesInitialized;
|
|
36009
36014
|
function AvatarSet_initEntries() {
|
|
36010
36015
|
if (AvatarSet_entriesInitialized)
|
|
@@ -36013,6 +36018,7 @@
|
|
|
36013
36018
|
AvatarSet_ORIGIN_instance = new AvatarSet('ORIGIN', 0);
|
|
36014
36019
|
AvatarSet_NOSTALGIA_instance = new AvatarSet('NOSTALGIA', 1);
|
|
36015
36020
|
}
|
|
36021
|
+
var $ENTRIES_5;
|
|
36016
36022
|
function createUser($this, playerId, existingNicknames) {
|
|
36017
36023
|
var data = getRandomAvatarData($this, existingNicknames);
|
|
36018
36024
|
return new GameUserInfo(playerId, getNicknameByIndex($this, data), getAvatarUrlByIndex($this, data), true);
|
|
@@ -36046,8 +36052,8 @@
|
|
|
36046
36052
|
return data;
|
|
36047
36053
|
}
|
|
36048
36054
|
function getRandomAvatarData_0($this) {
|
|
36049
|
-
var avatarSetNumber = Default_getInstance().re(
|
|
36050
|
-
var avatarSet =
|
|
36055
|
+
var avatarSetNumber = Default_getInstance().re(get_entries_5().m());
|
|
36056
|
+
var avatarSet = get_entries_5().o(avatarSetNumber);
|
|
36051
36057
|
return new AvatarData(Default_getInstance().re(avatarSet.i42()), avatarSet);
|
|
36052
36058
|
}
|
|
36053
36059
|
function getAvatarUrlByIndex($this, data) {
|