@gamepark/react-client 6.38.5 → 7.0.0-beta.2
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/dist/Actions/ActionFailed.d.ts +6 -6
- package/dist/Actions/ActionFailed.js +4 -8
- package/dist/Actions/ActionFailed.js.map +1 -1
- package/dist/Actions/AnimationComplete.d.ts +6 -6
- package/dist/Actions/AnimationComplete.js +4 -8
- package/dist/Actions/AnimationComplete.js.map +1 -1
- package/dist/Actions/AnimationPaused.d.ts +6 -6
- package/dist/Actions/AnimationPaused.js +4 -8
- package/dist/Actions/AnimationPaused.js.map +1 -1
- package/dist/Actions/AnimationStart.d.ts +5 -5
- package/dist/Actions/AnimationStart.js +1 -4
- package/dist/Actions/AnimationStart.js.map +1 -1
- package/dist/Actions/ClearFailures.d.ts +1 -5
- package/dist/Actions/ClearFailures.js +3 -9
- package/dist/Actions/ClearFailures.js.map +1 -1
- package/dist/Actions/GameNotificationsReceived.d.ts +8 -10
- package/dist/Actions/GameNotificationsReceived.js +2 -9
- package/dist/Actions/GameNotificationsReceived.js.map +1 -1
- package/dist/Actions/GameOver.d.ts +16 -16
- package/dist/Actions/GameOver.js +4 -8
- package/dist/Actions/GameOver.js.map +1 -1
- package/dist/Actions/GameStateLoaded.d.ts +16 -16
- package/dist/Actions/GameStateLoaded.js +7 -20
- package/dist/Actions/GameStateLoaded.js.map +1 -1
- package/dist/Actions/MovePlayed.d.ts +11 -11
- package/dist/Actions/MovePlayed.js +3 -2
- package/dist/Actions/MovePlayed.js.map +1 -1
- package/dist/Actions/MoveUndone.d.ts +7 -7
- package/dist/Actions/MoveUndone.js +4 -9
- package/dist/Actions/MoveUndone.js.map +1 -1
- package/dist/Actions/PlayerQuit.d.ts +5 -11
- package/dist/Actions/PlayerQuit.js +2 -19
- package/dist/Actions/PlayerQuit.js.map +1 -1
- package/dist/Actions/SetAnimationsSpeed.d.ts +1 -6
- package/dist/Actions/SetAnimationsSpeed.js +3 -9
- package/dist/Actions/SetAnimationsSpeed.js.map +1 -1
- package/dist/Actions/giveUp.d.ts +1 -0
- package/dist/Actions/giveUp.js +3 -0
- package/dist/Actions/giveUp.js.map +1 -0
- package/dist/Actions/index.d.ts +7 -12
- package/dist/Actions/index.js +7 -28
- package/dist/Actions/index.js.map +1 -1
- package/dist/Actions/loadGameState.d.ts +14 -0
- package/dist/Actions/loadGameState.js +3 -0
- package/dist/Actions/loadGameState.js.map +1 -0
- package/dist/Actions/playMove.d.ts +10 -0
- package/dist/Actions/playMove.js +3 -0
- package/dist/Actions/playMove.js.map +1 -0
- package/dist/Actions/receiveNotifications.d.ts +8 -0
- package/dist/Actions/receiveNotifications.js +3 -0
- package/dist/Actions/receiveNotifications.js.map +1 -0
- package/dist/Actions/removePlayer.d.ts +5 -0
- package/dist/Actions/removePlayer.js +3 -0
- package/dist/Actions/removePlayer.js.map +1 -0
- package/dist/Actions/reportFailure.d.ts +1 -0
- package/dist/Actions/reportFailure.js +3 -0
- package/dist/Actions/reportFailure.js.map +1 -0
- package/dist/Actions/setGameOver.d.ts +2 -0
- package/dist/Actions/setGameOver.js +3 -0
- package/dist/Actions/setGameOver.js.map +1 -0
- package/dist/Actions/startAnimation.d.ts +1 -0
- package/dist/Actions/startAnimation.js +3 -0
- package/dist/Actions/startAnimation.js.map +1 -0
- package/dist/Actions/undoMove.d.ts +5 -0
- package/dist/Actions/undoMove.js +4 -0
- package/dist/Actions/undoMove.js.map +1 -0
- package/dist/Chat/ChatChannel.d.ts +5 -5
- package/dist/Chat/ChatChannel.js +1 -2
- package/dist/Chat/Message.d.ts +6 -6
- package/dist/Chat/Message.js +1 -2
- package/dist/Chat/index.d.ts +2 -2
- package/dist/Chat/index.js +2 -18
- package/dist/Chat/index.js.map +1 -1
- package/dist/Deckbuilding/Deck.d.ts +5 -5
- package/dist/Deckbuilding/Deck.js +1 -2
- package/dist/Deckbuilding/index.d.ts +4 -4
- package/dist/Deckbuilding/index.js +4 -24
- package/dist/Deckbuilding/index.js.map +1 -1
- package/dist/Deckbuilding/useDeleteDeck.d.ts +5 -2
- package/dist/Deckbuilding/useDeleteDeck.js +9 -15
- package/dist/Deckbuilding/useDeleteDeck.js.map +1 -1
- package/dist/Deckbuilding/useMyDecks.d.ts +3 -2
- package/dist/Deckbuilding/useMyDecks.js +8 -14
- package/dist/Deckbuilding/useMyDecks.js.map +1 -1
- package/dist/Deckbuilding/useSaveDeck.d.ts +5 -2
- package/dist/Deckbuilding/useSaveDeck.js +9 -15
- package/dist/Deckbuilding/useSaveDeck.js.map +1 -1
- package/dist/EjectPlayer/EjectPlayer.d.ts +1 -6
- package/dist/EjectPlayer/EjectPlayer.js +2 -8
- package/dist/EjectPlayer/EjectPlayer.js.map +1 -1
- package/dist/EjectPlayer/index.d.ts +1 -1
- package/dist/EjectPlayer/index.js +1 -17
- package/dist/EjectPlayer/index.js.map +1 -1
- package/dist/Failure/Failure.d.ts +6 -6
- package/dist/Failure/Failure.js +6 -9
- package/dist/Failure/Failure.js.map +1 -1
- package/dist/Failure/index.d.ts +1 -1
- package/dist/Failure/index.js +1 -17
- package/dist/Failure/index.js.map +1 -1
- package/dist/GiveUp/GiveUp.d.ts +7 -7
- package/dist/GiveUp/GiveUp.js +2 -5
- package/dist/GiveUp/GiveUp.js.map +1 -1
- package/dist/GiveUp/index.d.ts +1 -1
- package/dist/GiveUp/index.js +1 -17
- package/dist/GiveUp/index.js.map +1 -1
- package/dist/Hooks/index.d.ts +5 -5
- package/dist/Hooks/index.js +5 -21
- package/dist/Hooks/index.js.map +1 -1
- package/dist/Hooks/useChatMessages.d.ts +7 -12
- package/dist/Hooks/useChatMessages.js +44 -51
- package/dist/Hooks/useChatMessages.js.map +1 -1
- package/dist/Hooks/useMessageAuthor.d.ts +4 -4
- package/dist/Hooks/useMessageAuthor.js +13 -18
- package/dist/Hooks/useMessageAuthor.js.map +1 -1
- package/dist/Hooks/useOptions.d.ts +2 -2
- package/dist/Hooks/useOptions.js +4 -8
- package/dist/Hooks/useOptions.js.map +1 -1
- package/dist/Hooks/useRematch.d.ts +7 -7
- package/dist/Hooks/useRematch.js +18 -19
- package/dist/Hooks/useRematch.js.map +1 -1
- package/dist/Hooks/useSendMessage.d.ts +4 -1
- package/dist/Hooks/useSendMessage.js +6 -14
- package/dist/Hooks/useSendMessage.js.map +1 -1
- package/dist/Log/StartLiveLog.d.ts +1 -4
- package/dist/Log/StartLiveLog.js +3 -5
- package/dist/Log/StartLiveLog.js.map +1 -1
- package/dist/Log/StopLiveLog.d.ts +2 -5
- package/dist/Log/StopLiveLog.js +6 -9
- package/dist/Log/StopLiveLog.js.map +1 -1
- package/dist/Log/index.d.ts +4 -4
- package/dist/Log/index.js +4 -20
- package/dist/Log/index.js.map +1 -1
- package/dist/Log/useLogControls.d.ts +7 -7
- package/dist/Log/useLogControls.js +18 -22
- package/dist/Log/useLogControls.js.map +1 -1
- package/dist/PlayerTime/PlayerTime.d.ts +11 -11
- package/dist/PlayerTime/PlayerTime.js +1 -2
- package/dist/PlayerTime/index.d.ts +1 -1
- package/dist/PlayerTime/index.js +1 -17
- package/dist/PlayerTime/index.js.map +1 -1
- package/dist/Rematch/RematchQueries.d.ts +19 -19
- package/dist/Rematch/RematchQueries.js +23 -13
- package/dist/Rematch/RematchQueries.js.map +1 -1
- package/dist/Rematch/index.d.ts +1 -1
- package/dist/Rematch/index.js +1 -17
- package/dist/Rematch/index.js.map +1 -1
- package/dist/Sound/MuteSounds.d.ts +2 -5
- package/dist/Sound/MuteSounds.js +7 -10
- package/dist/Sound/MuteSounds.js.map +1 -1
- package/dist/Sound/UnmuteSounds.d.ts +1 -4
- package/dist/Sound/UnmuteSounds.js +3 -5
- package/dist/Sound/UnmuteSounds.js.map +1 -1
- package/dist/Sound/index.d.ts +3 -3
- package/dist/Sound/index.js +3 -19
- package/dist/Sound/index.js.map +1 -1
- package/dist/Sound/useSoundControls.d.ts +7 -7
- package/dist/Sound/useSoundControls.js +18 -22
- package/dist/Sound/useSoundControls.js.map +1 -1
- package/dist/Store/DisplayedAction.d.ts +15 -15
- package/dist/Store/DisplayedAction.js +12 -19
- package/dist/Store/DisplayedAction.js.map +1 -1
- package/dist/Store/GamePageState.d.ts +27 -28
- package/dist/Store/GamePageState.js +1 -2
- package/dist/Store/PlayedMove.d.ts +5 -5
- package/dist/Store/PlayedMove.js +1 -2
- package/dist/Store/endAnimation.d.ts +1 -0
- package/dist/Store/endAnimation.js +3 -0
- package/dist/Store/endAnimation.js.map +1 -0
- package/dist/Store/gameMiddleware.d.ts +4 -4
- package/dist/Store/gameMiddleware.js +34 -41
- package/dist/Store/gameMiddleware.js.map +1 -1
- package/dist/Store/gameReducer.d.ts +14 -20
- package/dist/Store/gameReducer.js +462 -525
- package/dist/Store/gameReducer.js.map +1 -1
- package/dist/Store/index.d.ts +4 -3
- package/dist/Store/index.js +4 -19
- package/dist/Store/index.js.map +1 -1
- package/dist/Store/localMovePreviewMiddleware.d.ts +4 -4
- package/dist/Store/localMovePreviewMiddleware.js +19 -18
- package/dist/Store/localMovePreviewMiddleware.js.map +1 -1
- package/dist/Store/store.d.ts +13 -0
- package/dist/Store/store.js +27 -0
- package/dist/Store/store.js.map +1 -0
- package/dist/Tutorial/PlayTutorialMoves.d.ts +1 -9
- package/dist/Tutorial/PlayTutorialMoves.js +2 -6
- package/dist/Tutorial/PlayTutorialMoves.js.map +1 -1
- package/dist/Tutorial/Tutorial.d.ts +5 -5
- package/dist/Tutorial/Tutorial.js +1 -2
- package/dist/Tutorial/TutorialDescription.d.ts +7 -7
- package/dist/Tutorial/TutorialDescription.js +1 -2
- package/dist/Tutorial/index.d.ts +4 -4
- package/dist/Tutorial/index.js +4 -20
- package/dist/Tutorial/index.js.map +1 -1
- package/dist/Tutorial/useTutorial.d.ts +2 -2
- package/dist/Tutorial/useTutorial.js +12 -22
- package/dist/Tutorial/useTutorial.js.map +1 -1
- package/dist/Types/GameAI.d.ts +1 -1
- package/dist/Types/GameAI.js +1 -2
- package/dist/Types/GameData.d.ts +18 -18
- package/dist/Types/GameData.js +1 -2
- package/dist/Types/GameMessage.d.ts +8 -8
- package/dist/Types/GameMessage.js +1 -2
- package/dist/Types/GameMode.d.ts +6 -6
- package/dist/Types/GameMode.js +7 -10
- package/dist/Types/GameMode.js.map +1 -1
- package/dist/Types/GameNotification.d.ts +6 -6
- package/dist/Types/GameNotification.js +1 -2
- package/dist/Types/GameOptions.d.ts +9 -9
- package/dist/Types/GameOptions.js +5 -8
- package/dist/Types/GameOptions.js.map +1 -1
- package/dist/Types/MovePlayedNotification.d.ts +9 -9
- package/dist/Types/MovePlayedNotification.js +6 -12
- package/dist/Types/MovePlayedNotification.js.map +1 -1
- package/dist/Types/MoveUndoneNotification.d.ts +8 -8
- package/dist/Types/MoveUndoneNotification.js +6 -12
- package/dist/Types/MoveUndoneNotification.js.map +1 -1
- package/dist/Types/Player.d.ts +13 -13
- package/dist/Types/Player.js +1 -2
- package/dist/Types/PlayerQuitReason.d.ts +4 -4
- package/dist/Types/PlayerQuitReason.js +5 -8
- package/dist/Types/PlayerQuitReason.js.map +1 -1
- package/dist/Types/ProxyGameData.d.ts +13 -13
- package/dist/Types/ProxyGameData.js +1 -2
- package/dist/Types/Tournament.d.ts +4 -4
- package/dist/Types/Tournament.js +1 -2
- package/dist/Types/index.d.ts +12 -12
- package/dist/Types/index.js +12 -28
- package/dist/Types/index.js.map +1 -1
- package/dist/User/User.d.ts +6 -6
- package/dist/User/User.js +1 -2
- package/dist/User/index.d.ts +2 -2
- package/dist/User/index.js +2 -18
- package/dist/User/index.js.map +1 -1
- package/dist/User/useMe.d.ts +4 -4
- package/dist/User/useMe.js +10 -21
- package/dist/User/useMe.js.map +1 -1
- package/dist/animations/Animation.d.ts +6 -6
- package/dist/animations/Animation.js +1 -2
- package/dist/animations/AnimationContext.d.ts +8 -8
- package/dist/animations/AnimationContext.js +1 -2
- package/dist/animations/AnimationState.d.ts +6 -6
- package/dist/animations/AnimationState.js +1 -2
- package/dist/animations/AnimationStep.d.ts +6 -6
- package/dist/animations/AnimationStep.js +7 -10
- package/dist/animations/AnimationStep.js.map +1 -1
- package/dist/animations/Animations.d.ts +8 -8
- package/dist/animations/Animations.js +15 -22
- package/dist/animations/Animations.js.map +1 -1
- package/dist/animations/AnimationsListener.d.ts +6 -0
- package/dist/animations/AnimationsListener.js +54 -0
- package/dist/animations/AnimationsListener.js.map +1 -0
- package/dist/animations/AnimationsListenerCreator.d.ts +2 -4
- package/dist/animations/AnimationsListenerCreator.js +40 -50
- package/dist/animations/AnimationsListenerCreator.js.map +1 -1
- package/dist/animations/animationMiddleware.d.ts +4 -0
- package/dist/animations/animationMiddleware.js +50 -0
- package/dist/animations/animationMiddleware.js.map +1 -0
- package/dist/animations/index.d.ts +5 -6
- package/dist/animations/index.js +5 -22
- package/dist/animations/index.js.map +1 -1
- package/dist/api/Client/GameClientAPI.d.ts +24 -24
- package/dist/api/Client/GameClientAPI.js +116 -165
- package/dist/api/Client/GameClientAPI.js.map +1 -1
- package/dist/api/Client/GameNotificationsListener.d.ts +5 -5
- package/dist/api/Client/GameNotificationsListener.js +62 -113
- package/dist/api/Client/GameNotificationsListener.js.map +1 -1
- package/dist/api/Client/RemoteGameLoader.d.ts +4 -5
- package/dist/api/Client/RemoteGameLoader.js +66 -62
- package/dist/api/Client/RemoteGameLoader.js.map +1 -1
- package/dist/api/Client/RemoteGameProvider.d.ts +7 -7
- package/dist/api/Client/RemoteGameProvider.js +19 -70
- package/dist/api/Client/RemoteGameProvider.js.map +1 -1
- package/dist/api/Client/apollo-client.d.ts +2 -2
- package/dist/api/Client/apollo-client.js +40 -58
- package/dist/api/Client/apollo-client.js.map +1 -1
- package/dist/api/Client/index.d.ts +4 -3
- package/dist/api/Client/index.js +4 -19
- package/dist/api/Client/index.js.map +1 -1
- package/dist/api/Client/pusher.d.ts +2 -0
- package/dist/api/Client/pusher.js +9 -0
- package/dist/api/Client/pusher.js.map +1 -0
- package/dist/api/GameAPI.d.ts +10 -10
- package/dist/api/GameAPI.js +1 -2
- package/dist/api/Local/ConsoleTools.d.ts +25 -25
- package/dist/api/Local/ConsoleTools.js +78 -86
- package/dist/api/Local/ConsoleTools.js.map +1 -1
- package/dist/api/Local/GameLocalAPI.d.ts +44 -44
- package/dist/api/Local/GameLocalAPI.js +442 -540
- package/dist/api/Local/GameLocalAPI.js.map +1 -1
- package/dist/api/Local/LocalGameProvider.d.ts +15 -15
- package/dist/api/Local/LocalGameProvider.js +18 -58
- package/dist/api/Local/LocalGameProvider.js.map +1 -1
- package/dist/api/Local/index.d.ts +1 -1
- package/dist/api/Local/index.js +1 -17
- package/dist/api/Local/index.js.map +1 -1
- package/dist/api/index.d.ts +2 -2
- package/dist/api/index.js +2 -18
- package/dist/api/index.js.map +1 -1
- package/dist/index.d.ts +16 -18
- package/dist/index.js +16 -36
- package/dist/index.js.map +1 -1
- package/dist/util/ArrayUtil.d.ts +2 -2
- package/dist/util/ArrayUtil.js +16 -21
- package/dist/util/ArrayUtil.js.map +1 -1
- package/package.json +66 -65
- package/dist/Actions/ActionType.d.ts +0 -3
- package/dist/Actions/ActionType.js +0 -8
- package/dist/Actions/ActionType.js.map +0 -1
- package/dist/Scoring/ScoringDescription.d.ts +0 -8
- package/dist/Scoring/ScoringDescription.js +0 -3
- package/dist/Scoring/ScoringDescription.js.map +0 -1
- package/dist/Scoring/index.d.ts +0 -1
- package/dist/Scoring/index.js +0 -18
- package/dist/Scoring/index.js.map +0 -1
- package/dist/util/TimeUtil.d.ts +0 -2
- package/dist/util/TimeUtil.js +0 -27
- package/dist/util/TimeUtil.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const ACTION_FAILED = "ACTION_FAILED";
|
|
2
|
-
export interface ActionFailed {
|
|
3
|
-
type: typeof ACTION_FAILED;
|
|
4
|
-
reason: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function actionFailed(reason: string): ActionFailed;
|
|
1
|
+
export declare const ACTION_FAILED = "ACTION_FAILED";
|
|
2
|
+
export interface ActionFailed {
|
|
3
|
+
type: typeof ACTION_FAILED;
|
|
4
|
+
reason: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function actionFailed(reason: string): ActionFailed;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
function actionFailed(reason) {
|
|
6
|
-
return { type: exports.ACTION_FAILED, reason: reason };
|
|
7
|
-
}
|
|
8
|
-
exports.actionFailed = actionFailed;
|
|
1
|
+
export const ACTION_FAILED = 'ACTION_FAILED';
|
|
2
|
+
export function actionFailed(reason) {
|
|
3
|
+
return { type: ACTION_FAILED, reason };
|
|
4
|
+
}
|
|
9
5
|
//# sourceMappingURL=ActionFailed.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionFailed.js","sourceRoot":"","sources":["../../src/Actions/ActionFailed.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ActionFailed.js","sourceRoot":"","sources":["../../src/Actions/ActionFailed.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG,eAAe,CAAA;AAO5C,MAAM,UAAU,YAAY,CAAC,MAAc;IACzC,OAAO,EAAC,IAAI,EAAE,aAAa,EAAE,MAAM,EAAC,CAAA;AACtC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const ANIMATION_COMPLETE = "ANIMATION_COMPLETE";
|
|
2
|
-
export interface AnimationComplete {
|
|
3
|
-
type: typeof ANIMATION_COMPLETE;
|
|
4
|
-
animationId: number;
|
|
5
|
-
}
|
|
6
|
-
export declare function animationComplete(animationId: number): AnimationComplete;
|
|
1
|
+
export declare const ANIMATION_COMPLETE = "ANIMATION_COMPLETE";
|
|
2
|
+
export interface AnimationComplete {
|
|
3
|
+
type: typeof ANIMATION_COMPLETE;
|
|
4
|
+
animationId: number;
|
|
5
|
+
}
|
|
6
|
+
export declare function animationComplete(animationId: number): AnimationComplete;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
function animationComplete(animationId) {
|
|
6
|
-
return { type: exports.ANIMATION_COMPLETE, animationId: animationId };
|
|
7
|
-
}
|
|
8
|
-
exports.animationComplete = animationComplete;
|
|
1
|
+
export const ANIMATION_COMPLETE = 'ANIMATION_COMPLETE';
|
|
2
|
+
export function animationComplete(animationId) {
|
|
3
|
+
return { type: ANIMATION_COMPLETE, animationId };
|
|
4
|
+
}
|
|
9
5
|
//# sourceMappingURL=AnimationComplete.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnimationComplete.js","sourceRoot":"","sources":["../../src/Actions/AnimationComplete.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AnimationComplete.js","sourceRoot":"","sources":["../../src/Actions/AnimationComplete.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG,oBAAoB,CAAA;AAOtD,MAAM,UAAU,iBAAiB,CAAC,WAAmB;IACnD,OAAO,EAAE,IAAI,EAAE,kBAAkB,EAAE,WAAW,EAAE,CAAA;AAClD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const ANIMATION_PAUSED = "ANIMATION_PAUSED";
|
|
2
|
-
export interface AnimationPaused {
|
|
3
|
-
type: typeof ANIMATION_PAUSED;
|
|
4
|
-
pause: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare function animationPaused(pause: boolean): AnimationPaused;
|
|
1
|
+
export declare const ANIMATION_PAUSED = "ANIMATION_PAUSED";
|
|
2
|
+
export interface AnimationPaused {
|
|
3
|
+
type: typeof ANIMATION_PAUSED;
|
|
4
|
+
pause: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare function animationPaused(pause: boolean): AnimationPaused;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
function animationPaused(pause) {
|
|
6
|
-
return { type: exports.ANIMATION_PAUSED, pause: pause };
|
|
7
|
-
}
|
|
8
|
-
exports.animationPaused = animationPaused;
|
|
1
|
+
export const ANIMATION_PAUSED = 'ANIMATION_PAUSED';
|
|
2
|
+
export function animationPaused(pause) {
|
|
3
|
+
return { type: ANIMATION_PAUSED, pause };
|
|
4
|
+
}
|
|
9
5
|
//# sourceMappingURL=AnimationPaused.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnimationPaused.js","sourceRoot":"","sources":["../../src/Actions/AnimationPaused.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AnimationPaused.js","sourceRoot":"","sources":["../../src/Actions/AnimationPaused.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG,kBAAkB,CAAA;AAOlD,MAAM,UAAU,eAAe,CAAC,KAAc;IAC5C,OAAO,EAAC,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAC,CAAA;AACxC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const ANIMATION_START = "ANIMATION_START";
|
|
2
|
-
export interface AnimationStart {
|
|
3
|
-
type: typeof ANIMATION_START;
|
|
4
|
-
actionId: string;
|
|
5
|
-
}
|
|
1
|
+
export declare const ANIMATION_START = "ANIMATION_START";
|
|
2
|
+
export interface AnimationStart {
|
|
3
|
+
type: typeof ANIMATION_START;
|
|
4
|
+
actionId: string;
|
|
5
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnimationStart.js","sourceRoot":"","sources":["../../src/Actions/AnimationStart.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AnimationStart.js","sourceRoot":"","sources":["../../src/Actions/AnimationStart.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG,iBAAiB,CAAA"}
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export interface ClearFailures {
|
|
3
|
-
type: typeof CLEAR_FAILURES;
|
|
4
|
-
}
|
|
5
|
-
export declare function clearFailures(): ClearFailures;
|
|
1
|
+
export declare const clearFailures: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"clearFailures">;
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
exports.CLEAR_FAILURES = 'CLEAR_FAILURES';
|
|
5
|
-
function clearFailures() {
|
|
6
|
-
return { type: exports.CLEAR_FAILURES };
|
|
7
|
-
}
|
|
8
|
-
exports.clearFailures = clearFailures;
|
|
9
|
-
//# sourceMappingURL=ClearFailures.js.map
|
|
1
|
+
import { createAction } from '@reduxjs/toolkit';
|
|
2
|
+
export const clearFailures = createAction('clearFailures');
|
|
3
|
+
//# sourceMappingURL=clearFailures.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"clearFailures.js","sourceRoot":"","sources":["../../src/Actions/clearFailures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAE/C,MAAM,CAAC,MAAM,aAAa,GAAG,YAAY,CAAC,eAAe,CAAC,CAAA"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { GameNotification, Player } from '../Types';
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
export declare function gameNotificationsReceived<PlayerId>(notifications: GameNotification<PlayerId>[], notificationsIndex: number | undefined, players: Player<PlayerId>[], serverTime?: number): GameNotificationsReceived<PlayerId>;
|
|
1
|
+
import { GameNotification, Player } from '../Types';
|
|
2
|
+
export interface NotificationsData<PlayerId = any> {
|
|
3
|
+
notifications: GameNotification<PlayerId>[];
|
|
4
|
+
notificationsIndex: number;
|
|
5
|
+
players: Player<PlayerId>[];
|
|
6
|
+
serverTime?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const receiveNotifications: import("@reduxjs/toolkit").ActionCreatorWithPayload<NotificationsData<any>, string>;
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.gameNotificationsReceived = exports.GAME_NOTIFICATIONS_RECEIVED = void 0;
|
|
4
|
-
exports.GAME_NOTIFICATIONS_RECEIVED = 'GAME_NOTIFICATIONS_RECEIVED';
|
|
5
|
-
function gameNotificationsReceived(notifications, notificationsIndex, players, serverTime) {
|
|
6
|
-
if (notificationsIndex === void 0) { notificationsIndex = 0; }
|
|
7
|
-
return { type: exports.GAME_NOTIFICATIONS_RECEIVED, notifications: notifications, notificationsIndex: notificationsIndex, players: players, serverTime: serverTime };
|
|
8
|
-
}
|
|
9
|
-
exports.gameNotificationsReceived = gameNotificationsReceived;
|
|
1
|
+
import { createAction } from '@reduxjs/toolkit';
|
|
2
|
+
export const receiveNotifications = createAction('receiveNotifications');
|
|
10
3
|
//# sourceMappingURL=GameNotificationsReceived.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GameNotificationsReceived.js","sourceRoot":"","sources":["../../src/Actions/GameNotificationsReceived.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GameNotificationsReceived.js","sourceRoot":"","sources":["../../src/Actions/GameNotificationsReceived.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAU/C,MAAM,CAAC,MAAM,oBAAoB,GAAG,YAAY,CAAoB,sBAAsB,CAAC,CAAA"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { PlayerTime } from '../PlayerTime';
|
|
2
|
-
export declare const GAME_OVER = "GAME_OVER";
|
|
3
|
-
export interface GameOver<PlayerId = any> {
|
|
4
|
-
type: typeof GAME_OVER;
|
|
5
|
-
players: {
|
|
6
|
-
id: PlayerId;
|
|
7
|
-
time?: PlayerTime;
|
|
8
|
-
gamePointsDelta?: number;
|
|
9
|
-
tournamentPoints?: number;
|
|
10
|
-
}[];
|
|
11
|
-
}
|
|
12
|
-
export declare function gameOver<PlayerId>(players: {
|
|
13
|
-
id: PlayerId;
|
|
14
|
-
gamePointsDelta?: number;
|
|
15
|
-
tournamentPoints?: number;
|
|
16
|
-
}[]): GameOver<PlayerId>;
|
|
1
|
+
import { PlayerTime } from '../PlayerTime';
|
|
2
|
+
export declare const GAME_OVER = "GAME_OVER";
|
|
3
|
+
export interface GameOver<PlayerId = any> {
|
|
4
|
+
type: typeof GAME_OVER;
|
|
5
|
+
players: {
|
|
6
|
+
id: PlayerId;
|
|
7
|
+
time?: PlayerTime;
|
|
8
|
+
gamePointsDelta?: number;
|
|
9
|
+
tournamentPoints?: number;
|
|
10
|
+
}[];
|
|
11
|
+
}
|
|
12
|
+
export declare function gameOver<PlayerId>(players: {
|
|
13
|
+
id: PlayerId;
|
|
14
|
+
gamePointsDelta?: number;
|
|
15
|
+
tournamentPoints?: number;
|
|
16
|
+
}[]): GameOver<PlayerId>;
|
package/dist/Actions/GameOver.js
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
function gameOver(players) {
|
|
6
|
-
return { type: exports.GAME_OVER, players: players };
|
|
7
|
-
}
|
|
8
|
-
exports.gameOver = gameOver;
|
|
1
|
+
export const GAME_OVER = 'GAME_OVER';
|
|
2
|
+
export function gameOver(players) {
|
|
3
|
+
return { type: GAME_OVER, players };
|
|
4
|
+
}
|
|
9
5
|
//# sourceMappingURL=GameOver.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GameOver.js","sourceRoot":"","sources":["../../src/Actions/GameOver.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GameOver.js","sourceRoot":"","sources":["../../src/Actions/GameOver.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAAA;AAYpC,MAAM,UAAU,QAAQ,CAAW,OAAgF;IACjH,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAA;AACrC,CAAC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { GameData, GameMode, GameNotification, GameOptions, Player, Tournament } from '../Types';
|
|
2
|
-
export declare const GAME_STATE_LOADED = "GAME_STATE_LOADED";
|
|
3
|
-
export interface GameStateLoaded<Game, PlayerId> {
|
|
4
|
-
type: typeof GAME_STATE_LOADED;
|
|
5
|
-
players: Player<PlayerId>[];
|
|
6
|
-
options: GameOptions;
|
|
7
|
-
playerId?: PlayerId;
|
|
8
|
-
mode: GameMode;
|
|
9
|
-
state: Game;
|
|
10
|
-
setup: Game;
|
|
11
|
-
notifications: GameNotification[];
|
|
12
|
-
endDate?: Date;
|
|
13
|
-
serverTime?: number;
|
|
14
|
-
tournament?: Tournament;
|
|
15
|
-
}
|
|
16
|
-
export declare function gameStateLoaded<State, PlayerId>(data: GameData<State, PlayerId>, serverTime?: number): GameStateLoaded<State, PlayerId>;
|
|
1
|
+
import { GameData, GameMode, GameNotification, GameOptions, Player, Tournament } from '../Types';
|
|
2
|
+
export declare const GAME_STATE_LOADED = "GAME_STATE_LOADED";
|
|
3
|
+
export interface GameStateLoaded<Game, PlayerId> {
|
|
4
|
+
type: typeof GAME_STATE_LOADED;
|
|
5
|
+
players: Player<PlayerId>[];
|
|
6
|
+
options: GameOptions;
|
|
7
|
+
playerId?: PlayerId;
|
|
8
|
+
mode: GameMode;
|
|
9
|
+
state: Game;
|
|
10
|
+
setup: Game;
|
|
11
|
+
notifications: GameNotification[];
|
|
12
|
+
endDate?: Date;
|
|
13
|
+
serverTime?: number;
|
|
14
|
+
tournament?: Tournament;
|
|
15
|
+
}
|
|
16
|
+
export declare function gameStateLoaded<State, PlayerId>(data: GameData<State, PlayerId>, serverTime?: number): GameStateLoaded<State, PlayerId>;
|
|
@@ -1,21 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.gameStateLoaded = exports.GAME_STATE_LOADED = void 0;
|
|
15
|
-
exports.GAME_STATE_LOADED = 'GAME_STATE_LOADED';
|
|
16
|
-
function gameStateLoaded(data, serverTime) {
|
|
17
|
-
var _a, _b;
|
|
18
|
-
return __assign(__assign({ type: exports.GAME_STATE_LOADED }, data), { playerId: data.myPlayerId !== null ? data.myPlayerId : undefined, serverTime: serverTime, endDate: (_a = data.endDate) !== null && _a !== void 0 ? _a : undefined, tournament: (_b = data.tournament) !== null && _b !== void 0 ? _b : undefined });
|
|
19
|
-
}
|
|
20
|
-
exports.gameStateLoaded = gameStateLoaded;
|
|
1
|
+
export const GAME_STATE_LOADED = 'GAME_STATE_LOADED';
|
|
2
|
+
export function gameStateLoaded(data, serverTime) {
|
|
3
|
+
return {
|
|
4
|
+
type: GAME_STATE_LOADED, ...data, playerId: data.myPlayerId !== null ? data.myPlayerId : undefined, serverTime, endDate: data.endDate ?? undefined,
|
|
5
|
+
tournament: data.tournament ?? undefined
|
|
6
|
+
};
|
|
7
|
+
}
|
|
21
8
|
//# sourceMappingURL=GameStateLoaded.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GameStateLoaded.js","sourceRoot":"","sources":["../../src/Actions/GameStateLoaded.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GameStateLoaded.js","sourceRoot":"","sources":["../../src/Actions/GameStateLoaded.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,iBAAiB,GAAG,mBAAmB,CAAA;AAgBpD,MAAM,UAAU,eAAe,CAAkB,IAA+B,EAAE,UAAmB;IACnG,OAAO;QACL,IAAI,EAAE,iBAAiB,EAAE,GAAG,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,UAAU,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,IAAI,SAAS;QAClJ,UAAU,EAAE,IAAI,CAAC,UAAU,IAAI,SAAS;KACzC,CAAA;AACH,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
export type PlayOptions = {
|
|
3
|
-
delayed?: boolean;
|
|
4
|
-
skipAnimation?: boolean;
|
|
5
|
-
local?: boolean;
|
|
6
|
-
transient?: boolean;
|
|
7
|
-
};
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
1
|
+
export declare const MOVE_PLAYED = "MOVE_PLAYED";
|
|
2
|
+
export type PlayOptions = {
|
|
3
|
+
delayed?: boolean;
|
|
4
|
+
skipAnimation?: boolean;
|
|
5
|
+
local?: boolean;
|
|
6
|
+
transient?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const playMove: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
9
|
+
move: any;
|
|
10
|
+
options: PlayOptions;
|
|
11
|
+
}, string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MovePlayed.js","sourceRoot":"","sources":["../../src/Actions/MovePlayed.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"MovePlayed.js","sourceRoot":"","sources":["../../src/Actions/MovePlayed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAE/C,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAA;AASxC,MAAM,CAAC,MAAM,QAAQ,GAAG,YAAY,CAAsC,UAAU,CAAC,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare const MOVE_UNDONE = "MOVE_UNDONE";
|
|
2
|
-
export interface MoveUndone {
|
|
3
|
-
type: typeof MOVE_UNDONE;
|
|
4
|
-
actionId: string;
|
|
5
|
-
delayed: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare function moveUndone(actionId: string, delayed?: boolean): MoveUndone;
|
|
1
|
+
export declare const MOVE_UNDONE = "MOVE_UNDONE";
|
|
2
|
+
export interface MoveUndone {
|
|
3
|
+
type: typeof MOVE_UNDONE;
|
|
4
|
+
actionId: string;
|
|
5
|
+
delayed: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function moveUndone(actionId: string, delayed?: boolean): MoveUndone;
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
function moveUndone(actionId, delayed) {
|
|
6
|
-
if (delayed === void 0) { delayed = false; }
|
|
7
|
-
return { type: exports.MOVE_UNDONE, actionId: actionId, delayed: delayed };
|
|
8
|
-
}
|
|
9
|
-
exports.moveUndone = moveUndone;
|
|
1
|
+
export const MOVE_UNDONE = 'MOVE_UNDONE';
|
|
2
|
+
export function moveUndone(actionId, delayed = false) {
|
|
3
|
+
return { type: MOVE_UNDONE, actionId, delayed };
|
|
4
|
+
}
|
|
10
5
|
//# sourceMappingURL=MoveUndone.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MoveUndone.js","sourceRoot":"","sources":["../../src/Actions/MoveUndone.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MoveUndone.js","sourceRoot":"","sources":["../../src/Actions/MoveUndone.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAA;AAQxC,MAAM,UAAU,UAAU,CAAC,QAAgB,EAAE,UAAmB,KAAK;IACnE,OAAO,EAAC,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAC,CAAA;AAC/C,CAAC"}
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
import { PlayerQuitReason } from '../Types';
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
reason: PlayerQuitReason;
|
|
7
|
-
}
|
|
8
|
-
export declare function playerQuit<PlayerId>(data: {
|
|
9
|
-
playerId: PlayerId;
|
|
10
|
-
reason: PlayerQuitReason;
|
|
11
|
-
}): PlayerQuit<PlayerId>;
|
|
1
|
+
import { PlayerQuitReason } from '../Types';
|
|
2
|
+
export declare const removePlayer: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
3
|
+
playerId: any;
|
|
4
|
+
reason: PlayerQuitReason;
|
|
5
|
+
}, string>;
|
|
@@ -1,20 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.playerQuit = exports.PLAYER_QUIT = void 0;
|
|
15
|
-
exports.PLAYER_QUIT = 'PLAYER_QUIT';
|
|
16
|
-
function playerQuit(data) {
|
|
17
|
-
return __assign({ type: exports.PLAYER_QUIT }, data);
|
|
18
|
-
}
|
|
19
|
-
exports.playerQuit = playerQuit;
|
|
1
|
+
import { createAction } from '@reduxjs/toolkit';
|
|
2
|
+
export const removePlayer = createAction('removePlayer');
|
|
20
3
|
//# sourceMappingURL=PlayerQuit.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlayerQuit.js","sourceRoot":"","sources":["../../src/Actions/PlayerQuit.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PlayerQuit.js","sourceRoot":"","sources":["../../src/Actions/PlayerQuit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAG/C,MAAM,CAAC,MAAM,YAAY,GAAG,YAAY,CAA8C,cAAc,CAAC,CAAA"}
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export interface SetAnimationsSpeed {
|
|
3
|
-
type: typeof SET_ANIMATIONS_SPEED;
|
|
4
|
-
speed: number;
|
|
5
|
-
}
|
|
6
|
-
export declare function setAnimationsSpeed(speed: number): SetAnimationsSpeed;
|
|
1
|
+
export declare const setAnimationsSpeed: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, string>;
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
exports.SET_ANIMATIONS_SPEED = 'SET_ANIMATIONS_SPEED';
|
|
5
|
-
function setAnimationsSpeed(speed) {
|
|
6
|
-
return { type: exports.SET_ANIMATIONS_SPEED, speed: speed };
|
|
7
|
-
}
|
|
8
|
-
exports.setAnimationsSpeed = setAnimationsSpeed;
|
|
9
|
-
//# sourceMappingURL=SetAnimationsSpeed.js.map
|
|
1
|
+
import { createAction } from '@reduxjs/toolkit';
|
|
2
|
+
export const setAnimationsSpeed = createAction('setAnimationsSpeed');
|
|
3
|
+
//# sourceMappingURL=setAnimationsSpeed.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"setAnimationsSpeed.js","sourceRoot":"","sources":["../../src/Actions/setAnimationsSpeed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAE/C,MAAM,CAAC,MAAM,kBAAkB,GAAG,YAAY,CAAS,oBAAoB,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const giveUp: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"giveUp">;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"giveUp.js","sourceRoot":"","sources":["../../src/Actions/giveUp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAE/C,MAAM,CAAC,MAAM,MAAM,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAA"}
|
package/dist/Actions/index.d.ts
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './GameOver';
|
|
9
|
-
export * from './GameStateLoaded';
|
|
10
|
-
export * from './MovePlayed';
|
|
11
|
-
export * from './MoveUndone';
|
|
12
|
-
export * from './SetAnimationsSpeed';
|
|
1
|
+
export * from './clearFailures';
|
|
2
|
+
export * from './receiveNotifications';
|
|
3
|
+
export * from './giveUp';
|
|
4
|
+
export * from './setGameOver';
|
|
5
|
+
export * from './playMove';
|
|
6
|
+
export * from './undoMove';
|
|
7
|
+
export * from './setAnimationsSpeed';
|
package/dist/Actions/index.js
CHANGED
|
@@ -1,29 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./ActionFailed"), exports);
|
|
18
|
-
__exportStar(require("./ActionType"), exports);
|
|
19
|
-
__exportStar(require("./AnimationComplete"), exports);
|
|
20
|
-
__exportStar(require("./AnimationPaused"), exports);
|
|
21
|
-
__exportStar(require("./AnimationStart"), exports);
|
|
22
|
-
__exportStar(require("./ClearFailures"), exports);
|
|
23
|
-
__exportStar(require("./GameNotificationsReceived"), exports);
|
|
24
|
-
__exportStar(require("./GameOver"), exports);
|
|
25
|
-
__exportStar(require("./GameStateLoaded"), exports);
|
|
26
|
-
__exportStar(require("./MovePlayed"), exports);
|
|
27
|
-
__exportStar(require("./MoveUndone"), exports);
|
|
28
|
-
__exportStar(require("./SetAnimationsSpeed"), exports);
|
|
1
|
+
export * from './clearFailures';
|
|
2
|
+
export * from './receiveNotifications';
|
|
3
|
+
export * from './giveUp';
|
|
4
|
+
export * from './setGameOver';
|
|
5
|
+
export * from './playMove';
|
|
6
|
+
export * from './undoMove';
|
|
7
|
+
export * from './setAnimationsSpeed';
|
|
29
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Actions/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,sBAAsB,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { GameMode, GameNotification, GameOptions, Player, Tournament } from '../Types';
|
|
2
|
+
export declare const loadGameState: import("@reduxjs/toolkit").ActionCreatorWithPayload<GameState<any, any>, string>;
|
|
3
|
+
export interface GameState<Game = any, PlayerId = any> {
|
|
4
|
+
players: Player<PlayerId>[];
|
|
5
|
+
options: GameOptions;
|
|
6
|
+
playerId?: PlayerId;
|
|
7
|
+
mode: GameMode;
|
|
8
|
+
state: Game;
|
|
9
|
+
setup: Game;
|
|
10
|
+
notifications: GameNotification[];
|
|
11
|
+
endDate?: Date;
|
|
12
|
+
serverTime?: number;
|
|
13
|
+
tournament?: Tournament;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loadGameState.js","sourceRoot":"","sources":["../../src/Actions/loadGameState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAG/C,MAAM,CAAC,MAAM,aAAa,GAAG,YAAY,CAAY,eAAe,CAAC,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type PlayOptions = {
|
|
2
|
+
delayed?: boolean;
|
|
3
|
+
skipAnimation?: boolean;
|
|
4
|
+
local?: boolean;
|
|
5
|
+
transient?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare const playMove: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
8
|
+
move: any;
|
|
9
|
+
options?: PlayOptions;
|
|
10
|
+
}, string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"playMove.js","sourceRoot":"","sources":["../../src/Actions/playMove.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAS/C,MAAM,CAAC,MAAM,QAAQ,GAAG,YAAY,CAAuC,UAAU,CAAC,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GameNotification, Player } from '../Types';
|
|
2
|
+
export interface NotificationsData<PlayerId = any> {
|
|
3
|
+
notifications: GameNotification<PlayerId>[];
|
|
4
|
+
notificationsIndex: number;
|
|
5
|
+
players: Player<PlayerId>[];
|
|
6
|
+
serverTime?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const receiveNotifications: import("@reduxjs/toolkit").ActionCreatorWithPayload<NotificationsData<any>, string>;
|