Changeset 9bd09b0 for redux/reducers
- Timestamp:
- 06/23/22 00:08:35 (2 years ago)
- Branches:
- main
- Children:
- ace7865
- Parents:
- 285c3cc
- Location:
- redux/reducers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
redux/reducers/playerSlice.js
r285c3cc r9bd09b0 9 9 credits: 0, 10 10 }, 11 game: { 11 blackjackGame: { 12 status: '', 12 13 playerCards: [], 13 14 dealerCards: [], 15 sideBetName: '', 16 }, 17 rouletteGame: { 14 18 status: '', 15 sideBetName: '', 19 timeToStart: 0, 20 players: [], 16 21 } 17 22 } … … 24 29 state.player = action.payload; 25 30 }, 26 setGame: (state, action) => { 27 state.game = action.payload; 31 setBlackjackGame: (state, action) => { 32 state.blackjackGame = action.payload; 33 }, 34 setRouletteGame: (state, action) => { 35 state.rouletteGame = action.payload; 28 36 }, 29 37 } 30 38 }) 31 39 32 export const { setPlayer, set Game } = playerSlice.actions40 export const { setPlayer, setBlackjackGame, setRouletteGame } = playerSlice.actions 33 41 34 42 export default playerSlice.reducer -
redux/reducers/styleSlice.js
r285c3cc r9bd09b0 80 80 sideBetsPaysText: '', 81 81 } 82 }, 83 // roulette 84 roulette: { 85 displays: { 86 betModal: false, 87 }, 88 inputControls: { 89 bet: { 90 chosenCredits: 0, 91 }, 92 }, 93 whichBets: [], 94 coinPlaced: { 95 x: 0, 96 y: 0, 97 } 82 98 } 83 99 } … … 92 108 setBlackjack: (state, action) => { 93 109 state.blackjack = action.payload; 110 }, 111 setRoulette: (state, action) => { 112 state.roulette = action.payload; 94 113 } 95 114 } 96 115 }) 97 116 98 export const { setStyle, setBlackjack } = styleSlice.actions117 export const { setStyle, setBlackjack, setRoulette } = styleSlice.actions 99 118 100 119 export default styleSlice.reducer
Note:
See TracChangeset
for help on using the changeset viewer.