@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.
Files changed (317) hide show
  1. package/dist/Actions/ActionFailed.d.ts +6 -6
  2. package/dist/Actions/ActionFailed.js +4 -8
  3. package/dist/Actions/ActionFailed.js.map +1 -1
  4. package/dist/Actions/AnimationComplete.d.ts +6 -6
  5. package/dist/Actions/AnimationComplete.js +4 -8
  6. package/dist/Actions/AnimationComplete.js.map +1 -1
  7. package/dist/Actions/AnimationPaused.d.ts +6 -6
  8. package/dist/Actions/AnimationPaused.js +4 -8
  9. package/dist/Actions/AnimationPaused.js.map +1 -1
  10. package/dist/Actions/AnimationStart.d.ts +5 -5
  11. package/dist/Actions/AnimationStart.js +1 -4
  12. package/dist/Actions/AnimationStart.js.map +1 -1
  13. package/dist/Actions/ClearFailures.d.ts +1 -5
  14. package/dist/Actions/ClearFailures.js +3 -9
  15. package/dist/Actions/ClearFailures.js.map +1 -1
  16. package/dist/Actions/GameNotificationsReceived.d.ts +8 -10
  17. package/dist/Actions/GameNotificationsReceived.js +2 -9
  18. package/dist/Actions/GameNotificationsReceived.js.map +1 -1
  19. package/dist/Actions/GameOver.d.ts +16 -16
  20. package/dist/Actions/GameOver.js +4 -8
  21. package/dist/Actions/GameOver.js.map +1 -1
  22. package/dist/Actions/GameStateLoaded.d.ts +16 -16
  23. package/dist/Actions/GameStateLoaded.js +7 -20
  24. package/dist/Actions/GameStateLoaded.js.map +1 -1
  25. package/dist/Actions/MovePlayed.d.ts +11 -11
  26. package/dist/Actions/MovePlayed.js +3 -2
  27. package/dist/Actions/MovePlayed.js.map +1 -1
  28. package/dist/Actions/MoveUndone.d.ts +7 -7
  29. package/dist/Actions/MoveUndone.js +4 -9
  30. package/dist/Actions/MoveUndone.js.map +1 -1
  31. package/dist/Actions/PlayerQuit.d.ts +5 -11
  32. package/dist/Actions/PlayerQuit.js +2 -19
  33. package/dist/Actions/PlayerQuit.js.map +1 -1
  34. package/dist/Actions/SetAnimationsSpeed.d.ts +1 -6
  35. package/dist/Actions/SetAnimationsSpeed.js +3 -9
  36. package/dist/Actions/SetAnimationsSpeed.js.map +1 -1
  37. package/dist/Actions/giveUp.d.ts +1 -0
  38. package/dist/Actions/giveUp.js +3 -0
  39. package/dist/Actions/giveUp.js.map +1 -0
  40. package/dist/Actions/index.d.ts +7 -12
  41. package/dist/Actions/index.js +7 -28
  42. package/dist/Actions/index.js.map +1 -1
  43. package/dist/Actions/loadGameState.d.ts +14 -0
  44. package/dist/Actions/loadGameState.js +3 -0
  45. package/dist/Actions/loadGameState.js.map +1 -0
  46. package/dist/Actions/playMove.d.ts +10 -0
  47. package/dist/Actions/playMove.js +3 -0
  48. package/dist/Actions/playMove.js.map +1 -0
  49. package/dist/Actions/receiveNotifications.d.ts +8 -0
  50. package/dist/Actions/receiveNotifications.js +3 -0
  51. package/dist/Actions/receiveNotifications.js.map +1 -0
  52. package/dist/Actions/removePlayer.d.ts +5 -0
  53. package/dist/Actions/removePlayer.js +3 -0
  54. package/dist/Actions/removePlayer.js.map +1 -0
  55. package/dist/Actions/reportFailure.d.ts +1 -0
  56. package/dist/Actions/reportFailure.js +3 -0
  57. package/dist/Actions/reportFailure.js.map +1 -0
  58. package/dist/Actions/setGameOver.d.ts +2 -0
  59. package/dist/Actions/setGameOver.js +3 -0
  60. package/dist/Actions/setGameOver.js.map +1 -0
  61. package/dist/Actions/startAnimation.d.ts +1 -0
  62. package/dist/Actions/startAnimation.js +3 -0
  63. package/dist/Actions/startAnimation.js.map +1 -0
  64. package/dist/Actions/undoMove.d.ts +5 -0
  65. package/dist/Actions/undoMove.js +4 -0
  66. package/dist/Actions/undoMove.js.map +1 -0
  67. package/dist/Chat/ChatChannel.d.ts +5 -5
  68. package/dist/Chat/ChatChannel.js +1 -2
  69. package/dist/Chat/Message.d.ts +6 -6
  70. package/dist/Chat/Message.js +1 -2
  71. package/dist/Chat/index.d.ts +2 -2
  72. package/dist/Chat/index.js +2 -18
  73. package/dist/Chat/index.js.map +1 -1
  74. package/dist/Deckbuilding/Deck.d.ts +5 -5
  75. package/dist/Deckbuilding/Deck.js +1 -2
  76. package/dist/Deckbuilding/index.d.ts +4 -4
  77. package/dist/Deckbuilding/index.js +4 -24
  78. package/dist/Deckbuilding/index.js.map +1 -1
  79. package/dist/Deckbuilding/useDeleteDeck.d.ts +5 -2
  80. package/dist/Deckbuilding/useDeleteDeck.js +9 -15
  81. package/dist/Deckbuilding/useDeleteDeck.js.map +1 -1
  82. package/dist/Deckbuilding/useMyDecks.d.ts +3 -2
  83. package/dist/Deckbuilding/useMyDecks.js +8 -14
  84. package/dist/Deckbuilding/useMyDecks.js.map +1 -1
  85. package/dist/Deckbuilding/useSaveDeck.d.ts +5 -2
  86. package/dist/Deckbuilding/useSaveDeck.js +9 -15
  87. package/dist/Deckbuilding/useSaveDeck.js.map +1 -1
  88. package/dist/EjectPlayer/EjectPlayer.d.ts +1 -6
  89. package/dist/EjectPlayer/EjectPlayer.js +2 -8
  90. package/dist/EjectPlayer/EjectPlayer.js.map +1 -1
  91. package/dist/EjectPlayer/index.d.ts +1 -1
  92. package/dist/EjectPlayer/index.js +1 -17
  93. package/dist/EjectPlayer/index.js.map +1 -1
  94. package/dist/Failure/Failure.d.ts +6 -6
  95. package/dist/Failure/Failure.js +6 -9
  96. package/dist/Failure/Failure.js.map +1 -1
  97. package/dist/Failure/index.d.ts +1 -1
  98. package/dist/Failure/index.js +1 -17
  99. package/dist/Failure/index.js.map +1 -1
  100. package/dist/GiveUp/GiveUp.d.ts +7 -7
  101. package/dist/GiveUp/GiveUp.js +2 -5
  102. package/dist/GiveUp/GiveUp.js.map +1 -1
  103. package/dist/GiveUp/index.d.ts +1 -1
  104. package/dist/GiveUp/index.js +1 -17
  105. package/dist/GiveUp/index.js.map +1 -1
  106. package/dist/Hooks/index.d.ts +5 -5
  107. package/dist/Hooks/index.js +5 -21
  108. package/dist/Hooks/index.js.map +1 -1
  109. package/dist/Hooks/useChatMessages.d.ts +7 -12
  110. package/dist/Hooks/useChatMessages.js +44 -51
  111. package/dist/Hooks/useChatMessages.js.map +1 -1
  112. package/dist/Hooks/useMessageAuthor.d.ts +4 -4
  113. package/dist/Hooks/useMessageAuthor.js +13 -18
  114. package/dist/Hooks/useMessageAuthor.js.map +1 -1
  115. package/dist/Hooks/useOptions.d.ts +2 -2
  116. package/dist/Hooks/useOptions.js +4 -8
  117. package/dist/Hooks/useOptions.js.map +1 -1
  118. package/dist/Hooks/useRematch.d.ts +7 -7
  119. package/dist/Hooks/useRematch.js +18 -19
  120. package/dist/Hooks/useRematch.js.map +1 -1
  121. package/dist/Hooks/useSendMessage.d.ts +4 -1
  122. package/dist/Hooks/useSendMessage.js +6 -14
  123. package/dist/Hooks/useSendMessage.js.map +1 -1
  124. package/dist/Log/StartLiveLog.d.ts +1 -4
  125. package/dist/Log/StartLiveLog.js +3 -5
  126. package/dist/Log/StartLiveLog.js.map +1 -1
  127. package/dist/Log/StopLiveLog.d.ts +2 -5
  128. package/dist/Log/StopLiveLog.js +6 -9
  129. package/dist/Log/StopLiveLog.js.map +1 -1
  130. package/dist/Log/index.d.ts +4 -4
  131. package/dist/Log/index.js +4 -20
  132. package/dist/Log/index.js.map +1 -1
  133. package/dist/Log/useLogControls.d.ts +7 -7
  134. package/dist/Log/useLogControls.js +18 -22
  135. package/dist/Log/useLogControls.js.map +1 -1
  136. package/dist/PlayerTime/PlayerTime.d.ts +11 -11
  137. package/dist/PlayerTime/PlayerTime.js +1 -2
  138. package/dist/PlayerTime/index.d.ts +1 -1
  139. package/dist/PlayerTime/index.js +1 -17
  140. package/dist/PlayerTime/index.js.map +1 -1
  141. package/dist/Rematch/RematchQueries.d.ts +19 -19
  142. package/dist/Rematch/RematchQueries.js +23 -13
  143. package/dist/Rematch/RematchQueries.js.map +1 -1
  144. package/dist/Rematch/index.d.ts +1 -1
  145. package/dist/Rematch/index.js +1 -17
  146. package/dist/Rematch/index.js.map +1 -1
  147. package/dist/Sound/MuteSounds.d.ts +2 -5
  148. package/dist/Sound/MuteSounds.js +7 -10
  149. package/dist/Sound/MuteSounds.js.map +1 -1
  150. package/dist/Sound/UnmuteSounds.d.ts +1 -4
  151. package/dist/Sound/UnmuteSounds.js +3 -5
  152. package/dist/Sound/UnmuteSounds.js.map +1 -1
  153. package/dist/Sound/index.d.ts +3 -3
  154. package/dist/Sound/index.js +3 -19
  155. package/dist/Sound/index.js.map +1 -1
  156. package/dist/Sound/useSoundControls.d.ts +7 -7
  157. package/dist/Sound/useSoundControls.js +18 -22
  158. package/dist/Sound/useSoundControls.js.map +1 -1
  159. package/dist/Store/DisplayedAction.d.ts +15 -15
  160. package/dist/Store/DisplayedAction.js +12 -19
  161. package/dist/Store/DisplayedAction.js.map +1 -1
  162. package/dist/Store/GamePageState.d.ts +27 -28
  163. package/dist/Store/GamePageState.js +1 -2
  164. package/dist/Store/PlayedMove.d.ts +5 -5
  165. package/dist/Store/PlayedMove.js +1 -2
  166. package/dist/Store/endAnimation.d.ts +1 -0
  167. package/dist/Store/endAnimation.js +3 -0
  168. package/dist/Store/endAnimation.js.map +1 -0
  169. package/dist/Store/gameMiddleware.d.ts +4 -4
  170. package/dist/Store/gameMiddleware.js +34 -41
  171. package/dist/Store/gameMiddleware.js.map +1 -1
  172. package/dist/Store/gameReducer.d.ts +14 -20
  173. package/dist/Store/gameReducer.js +462 -525
  174. package/dist/Store/gameReducer.js.map +1 -1
  175. package/dist/Store/index.d.ts +4 -3
  176. package/dist/Store/index.js +4 -19
  177. package/dist/Store/index.js.map +1 -1
  178. package/dist/Store/localMovePreviewMiddleware.d.ts +4 -4
  179. package/dist/Store/localMovePreviewMiddleware.js +19 -18
  180. package/dist/Store/localMovePreviewMiddleware.js.map +1 -1
  181. package/dist/Store/store.d.ts +13 -0
  182. package/dist/Store/store.js +27 -0
  183. package/dist/Store/store.js.map +1 -0
  184. package/dist/Tutorial/PlayTutorialMoves.d.ts +1 -9
  185. package/dist/Tutorial/PlayTutorialMoves.js +2 -6
  186. package/dist/Tutorial/PlayTutorialMoves.js.map +1 -1
  187. package/dist/Tutorial/Tutorial.d.ts +5 -5
  188. package/dist/Tutorial/Tutorial.js +1 -2
  189. package/dist/Tutorial/TutorialDescription.d.ts +7 -7
  190. package/dist/Tutorial/TutorialDescription.js +1 -2
  191. package/dist/Tutorial/index.d.ts +4 -4
  192. package/dist/Tutorial/index.js +4 -20
  193. package/dist/Tutorial/index.js.map +1 -1
  194. package/dist/Tutorial/useTutorial.d.ts +2 -2
  195. package/dist/Tutorial/useTutorial.js +12 -22
  196. package/dist/Tutorial/useTutorial.js.map +1 -1
  197. package/dist/Types/GameAI.d.ts +1 -1
  198. package/dist/Types/GameAI.js +1 -2
  199. package/dist/Types/GameData.d.ts +18 -18
  200. package/dist/Types/GameData.js +1 -2
  201. package/dist/Types/GameMessage.d.ts +8 -8
  202. package/dist/Types/GameMessage.js +1 -2
  203. package/dist/Types/GameMode.d.ts +6 -6
  204. package/dist/Types/GameMode.js +7 -10
  205. package/dist/Types/GameMode.js.map +1 -1
  206. package/dist/Types/GameNotification.d.ts +6 -6
  207. package/dist/Types/GameNotification.js +1 -2
  208. package/dist/Types/GameOptions.d.ts +9 -9
  209. package/dist/Types/GameOptions.js +5 -8
  210. package/dist/Types/GameOptions.js.map +1 -1
  211. package/dist/Types/MovePlayedNotification.d.ts +9 -9
  212. package/dist/Types/MovePlayedNotification.js +6 -12
  213. package/dist/Types/MovePlayedNotification.js.map +1 -1
  214. package/dist/Types/MoveUndoneNotification.d.ts +8 -8
  215. package/dist/Types/MoveUndoneNotification.js +6 -12
  216. package/dist/Types/MoveUndoneNotification.js.map +1 -1
  217. package/dist/Types/Player.d.ts +13 -13
  218. package/dist/Types/Player.js +1 -2
  219. package/dist/Types/PlayerQuitReason.d.ts +4 -4
  220. package/dist/Types/PlayerQuitReason.js +5 -8
  221. package/dist/Types/PlayerQuitReason.js.map +1 -1
  222. package/dist/Types/ProxyGameData.d.ts +13 -13
  223. package/dist/Types/ProxyGameData.js +1 -2
  224. package/dist/Types/Tournament.d.ts +4 -4
  225. package/dist/Types/Tournament.js +1 -2
  226. package/dist/Types/index.d.ts +12 -12
  227. package/dist/Types/index.js +12 -28
  228. package/dist/Types/index.js.map +1 -1
  229. package/dist/User/User.d.ts +6 -6
  230. package/dist/User/User.js +1 -2
  231. package/dist/User/index.d.ts +2 -2
  232. package/dist/User/index.js +2 -18
  233. package/dist/User/index.js.map +1 -1
  234. package/dist/User/useMe.d.ts +4 -4
  235. package/dist/User/useMe.js +10 -21
  236. package/dist/User/useMe.js.map +1 -1
  237. package/dist/animations/Animation.d.ts +6 -6
  238. package/dist/animations/Animation.js +1 -2
  239. package/dist/animations/AnimationContext.d.ts +8 -8
  240. package/dist/animations/AnimationContext.js +1 -2
  241. package/dist/animations/AnimationState.d.ts +6 -6
  242. package/dist/animations/AnimationState.js +1 -2
  243. package/dist/animations/AnimationStep.d.ts +6 -6
  244. package/dist/animations/AnimationStep.js +7 -10
  245. package/dist/animations/AnimationStep.js.map +1 -1
  246. package/dist/animations/Animations.d.ts +8 -8
  247. package/dist/animations/Animations.js +15 -22
  248. package/dist/animations/Animations.js.map +1 -1
  249. package/dist/animations/AnimationsListener.d.ts +6 -0
  250. package/dist/animations/AnimationsListener.js +54 -0
  251. package/dist/animations/AnimationsListener.js.map +1 -0
  252. package/dist/animations/AnimationsListenerCreator.d.ts +2 -4
  253. package/dist/animations/AnimationsListenerCreator.js +40 -50
  254. package/dist/animations/AnimationsListenerCreator.js.map +1 -1
  255. package/dist/animations/animationMiddleware.d.ts +4 -0
  256. package/dist/animations/animationMiddleware.js +50 -0
  257. package/dist/animations/animationMiddleware.js.map +1 -0
  258. package/dist/animations/index.d.ts +5 -6
  259. package/dist/animations/index.js +5 -22
  260. package/dist/animations/index.js.map +1 -1
  261. package/dist/api/Client/GameClientAPI.d.ts +24 -24
  262. package/dist/api/Client/GameClientAPI.js +116 -165
  263. package/dist/api/Client/GameClientAPI.js.map +1 -1
  264. package/dist/api/Client/GameNotificationsListener.d.ts +5 -5
  265. package/dist/api/Client/GameNotificationsListener.js +62 -113
  266. package/dist/api/Client/GameNotificationsListener.js.map +1 -1
  267. package/dist/api/Client/RemoteGameLoader.d.ts +4 -5
  268. package/dist/api/Client/RemoteGameLoader.js +66 -62
  269. package/dist/api/Client/RemoteGameLoader.js.map +1 -1
  270. package/dist/api/Client/RemoteGameProvider.d.ts +7 -7
  271. package/dist/api/Client/RemoteGameProvider.js +19 -70
  272. package/dist/api/Client/RemoteGameProvider.js.map +1 -1
  273. package/dist/api/Client/apollo-client.d.ts +2 -2
  274. package/dist/api/Client/apollo-client.js +40 -58
  275. package/dist/api/Client/apollo-client.js.map +1 -1
  276. package/dist/api/Client/index.d.ts +4 -3
  277. package/dist/api/Client/index.js +4 -19
  278. package/dist/api/Client/index.js.map +1 -1
  279. package/dist/api/Client/pusher.d.ts +2 -0
  280. package/dist/api/Client/pusher.js +9 -0
  281. package/dist/api/Client/pusher.js.map +1 -0
  282. package/dist/api/GameAPI.d.ts +10 -10
  283. package/dist/api/GameAPI.js +1 -2
  284. package/dist/api/Local/ConsoleTools.d.ts +25 -25
  285. package/dist/api/Local/ConsoleTools.js +78 -86
  286. package/dist/api/Local/ConsoleTools.js.map +1 -1
  287. package/dist/api/Local/GameLocalAPI.d.ts +44 -44
  288. package/dist/api/Local/GameLocalAPI.js +442 -540
  289. package/dist/api/Local/GameLocalAPI.js.map +1 -1
  290. package/dist/api/Local/LocalGameProvider.d.ts +15 -15
  291. package/dist/api/Local/LocalGameProvider.js +18 -58
  292. package/dist/api/Local/LocalGameProvider.js.map +1 -1
  293. package/dist/api/Local/index.d.ts +1 -1
  294. package/dist/api/Local/index.js +1 -17
  295. package/dist/api/Local/index.js.map +1 -1
  296. package/dist/api/index.d.ts +2 -2
  297. package/dist/api/index.js +2 -18
  298. package/dist/api/index.js.map +1 -1
  299. package/dist/index.d.ts +16 -18
  300. package/dist/index.js +16 -36
  301. package/dist/index.js.map +1 -1
  302. package/dist/util/ArrayUtil.d.ts +2 -2
  303. package/dist/util/ArrayUtil.js +16 -21
  304. package/dist/util/ArrayUtil.js.map +1 -1
  305. package/package.json +66 -65
  306. package/dist/Actions/ActionType.d.ts +0 -3
  307. package/dist/Actions/ActionType.js +0 -8
  308. package/dist/Actions/ActionType.js.map +0 -1
  309. package/dist/Scoring/ScoringDescription.d.ts +0 -8
  310. package/dist/Scoring/ScoringDescription.js +0 -3
  311. package/dist/Scoring/ScoringDescription.js.map +0 -1
  312. package/dist/Scoring/index.d.ts +0 -1
  313. package/dist/Scoring/index.js +0 -18
  314. package/dist/Scoring/index.js.map +0 -1
  315. package/dist/util/TimeUtil.d.ts +0 -2
  316. package/dist/util/TimeUtil.js +0 -27
  317. 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
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.actionFailed = exports.ACTION_FAILED = void 0;
4
- exports.ACTION_FAILED = 'ACTION_FAILED';
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":";;;AAAa,QAAA,aAAa,GAAG,eAAe,CAAA;AAO5C,SAAgB,YAAY,CAAC,MAAc;IACzC,OAAO,EAAC,IAAI,EAAE,qBAAa,EAAE,MAAM,QAAA,EAAC,CAAA;AACtC,CAAC;AAFD,oCAEC"}
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
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.animationComplete = exports.ANIMATION_COMPLETE = void 0;
4
- exports.ANIMATION_COMPLETE = 'ANIMATION_COMPLETE';
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":";;;AAAa,QAAA,kBAAkB,GAAG,oBAAoB,CAAA;AAOtD,SAAgB,iBAAiB,CAAC,WAAmB;IACnD,OAAO,EAAE,IAAI,EAAE,0BAAkB,EAAE,WAAW,aAAA,EAAE,CAAA;AAClD,CAAC;AAFD,8CAEC"}
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
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.animationPaused = exports.ANIMATION_PAUSED = void 0;
4
- exports.ANIMATION_PAUSED = 'ANIMATION_PAUSED';
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":";;;AAAa,QAAA,gBAAgB,GAAG,kBAAkB,CAAA;AAOlD,SAAgB,eAAe,CAAC,KAAc;IAC5C,OAAO,EAAC,IAAI,EAAE,wBAAgB,EAAE,KAAK,OAAA,EAAC,CAAA;AACxC,CAAC;AAFD,0CAEC"}
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,5 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ANIMATION_START = void 0;
4
- exports.ANIMATION_START = 'ANIMATION_START';
1
+ export const ANIMATION_START = 'ANIMATION_START';
5
2
  //# sourceMappingURL=AnimationStart.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AnimationStart.js","sourceRoot":"","sources":["../../src/Actions/AnimationStart.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,iBAAiB,CAAA"}
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 CLEAR_FAILURES = "CLEAR_FAILURES";
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
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.clearFailures = exports.CLEAR_FAILURES = void 0;
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":"ClearFailures.js","sourceRoot":"","sources":["../../src/Actions/ClearFailures.ts"],"names":[],"mappings":";;;AAAa,QAAA,cAAc,GAAG,gBAAgB,CAAA;AAM9C,SAAgB,aAAa;IAC3B,OAAO,EAAC,IAAI,EAAE,sBAAc,EAAC,CAAA;AAC/B,CAAC;AAFD,sCAEC"}
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 declare const GAME_NOTIFICATIONS_RECEIVED = "GAME_NOTIFICATIONS_RECEIVED";
3
- export interface GameNotificationsReceived<PlayerId> {
4
- type: typeof GAME_NOTIFICATIONS_RECEIVED;
5
- notifications: GameNotification<PlayerId>[];
6
- notificationsIndex: number;
7
- players: Player<PlayerId>[];
8
- serverTime?: number;
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
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
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":";;;AAEa,QAAA,2BAA2B,GAAG,6BAA6B,CAAA;AAUxE,SAAgB,yBAAyB,CAAW,aAA2C,EAAE,kBAA8B,EAAE,OAA2B,EAAE,UAAmB;IAAhF,mCAAA,EAAA,sBAA8B;IAC7H,OAAO,EAAE,IAAI,EAAE,mCAA2B,EAAE,aAAa,eAAA,EAAE,kBAAkB,oBAAA,EAAE,OAAO,SAAA,EAAE,UAAU,YAAA,EAAE,CAAA;AACtG,CAAC;AAFD,8DAEC"}
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>;
@@ -1,9 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.gameOver = exports.GAME_OVER = void 0;
4
- exports.GAME_OVER = 'GAME_OVER';
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":";;;AAEa,QAAA,SAAS,GAAG,WAAW,CAAA;AAYpC,SAAgB,QAAQ,CAAW,OAAgF;IACjH,OAAO,EAAE,IAAI,EAAE,iBAAS,EAAE,OAAO,SAAA,EAAE,CAAA;AACrC,CAAC;AAFD,4BAEC"}
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
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
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.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":";;;;;;;;;;;;;;AAEa,QAAA,iBAAiB,GAAG,mBAAmB,CAAA;AAgBpD,SAAgB,eAAe,CAAkB,IAA+B,EAAE,UAAmB;;IACnG,2BACE,IAAI,EAAE,yBAAiB,IAAK,IAAI,KAAE,QAAQ,EAAE,IAAI,CAAC,UAAU,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,EAAE,UAAU,YAAA,EAAE,OAAO,EAAE,MAAA,IAAI,CAAC,OAAO,mCAAI,SAAS,EAClJ,UAAU,EAAE,MAAA,IAAI,CAAC,UAAU,mCAAI,SAAS,IACzC;AACH,CAAC;AALD,0CAKC"}
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
- import { ActionType } from './ActionType';
2
- export type PlayOptions = {
3
- delayed?: boolean;
4
- skipAnimation?: boolean;
5
- local?: boolean;
6
- transient?: boolean;
7
- };
8
- export type MovePlayed<M> = {
9
- type: typeof ActionType.MOVE_PLAYED;
10
- move: M;
11
- } & PlayOptions;
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,3 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ import { createAction } from '@reduxjs/toolkit';
2
+ export const MOVE_PLAYED = 'MOVE_PLAYED';
3
+ export const playMove = createAction('playMove');
3
4
  //# sourceMappingURL=MovePlayed.js.map
@@ -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
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.moveUndone = exports.MOVE_UNDONE = void 0;
4
- exports.MOVE_UNDONE = 'MOVE_UNDONE';
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":";;;AAAa,QAAA,WAAW,GAAG,aAAa,CAAA;AAQxC,SAAgB,UAAU,CAAC,QAAgB,EAAE,OAAwB;IAAxB,wBAAA,EAAA,eAAwB;IACnE,OAAO,EAAC,IAAI,EAAE,mBAAW,EAAE,QAAQ,UAAA,EAAE,OAAO,SAAA,EAAC,CAAA;AAC/C,CAAC;AAFD,gCAEC"}
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 PLAYER_QUIT = "PLAYER_QUIT";
3
- export interface PlayerQuit<PlayerId = any> {
4
- type: typeof PLAYER_QUIT;
5
- playerId: PlayerId;
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
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
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":";;;;;;;;;;;;;;AAEa,QAAA,WAAW,GAAG,aAAa,CAAA;AAQxC,SAAgB,UAAU,CAAW,IAAsD;IACzF,kBAAS,IAAI,EAAE,mBAAW,IAAK,IAAI,EAAE;AACvC,CAAC;AAFD,gCAEC"}
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 SET_ANIMATIONS_SPEED = "SET_ANIMATIONS_SPEED";
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
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.setAnimationsSpeed = exports.SET_ANIMATIONS_SPEED = void 0;
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":"SetAnimationsSpeed.js","sourceRoot":"","sources":["../../src/Actions/SetAnimationsSpeed.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG,sBAAsB,CAAA;AAO1D,SAAgB,kBAAkB,CAAC,KAAa;IAC9C,OAAO,EAAC,IAAI,EAAE,4BAAoB,EAAE,KAAK,OAAA,EAAC,CAAA;AAC5C,CAAC;AAFD,gDAEC"}
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,3 @@
1
+ import { createAction } from '@reduxjs/toolkit';
2
+ export const giveUp = createAction('giveUp');
3
+ //# sourceMappingURL=giveUp.js.map
@@ -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"}
@@ -1,12 +1,7 @@
1
- export * from './ActionFailed';
2
- export * from './ActionType';
3
- export * from './AnimationComplete';
4
- export * from './AnimationPaused';
5
- export * from './AnimationStart';
6
- export * from './ClearFailures';
7
- export * from './GameNotificationsReceived';
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';
@@ -1,29 +1,8 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
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":";;;;;;;;;;;;;;;;AAAA,iDAA8B;AAC9B,+CAA4B;AAC5B,sDAAmC;AACnC,oDAAiC;AACjC,mDAAgC;AAChC,kDAA+B;AAC/B,8DAA2C;AAC3C,6CAA0B;AAC1B,oDAAiC;AACjC,+CAA4B;AAC5B,+CAA4B;AAC5B,uDAAoC"}
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,3 @@
1
+ import { createAction } from '@reduxjs/toolkit';
2
+ export const loadGameState = createAction('loadGameState');
3
+ //# sourceMappingURL=loadGameState.js.map
@@ -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,3 @@
1
+ import { createAction } from '@reduxjs/toolkit';
2
+ export const playMove = createAction('playMove');
3
+ //# sourceMappingURL=playMove.js.map
@@ -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>;