Changeset d0ef259 for redux/reducers


Ignore:
Timestamp:
07/12/22 00:13:20 (2 years ago)
Author:
anastasovv <simon@…>
Branches:
main
Children:
e9f11ac
Parents:
95ce58b
Message:

Roulette rethought with 1 second update calls

Location:
redux/reducers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • redux/reducers/playerSlice.js

    r95ce58b rd0ef259  
    1616    },
    1717    rouletteGame: {
    18         status: '',
    19         timeToStart: 0,
    20         players: [],
     18        game: {
     19            status: '_1_ongoing_timer',
     20            timeToStart: 30,
     21            COUNTDOWN_FROM: 30,
     22            WAIT_BEFORE: 20,
     23            magicNumber: -1,
     24            winningBets: [],
     25            players: [],
     26        },
     27        player: {
     28            session_id: '',
     29            name: '',
     30            whichBets: [],
     31            coinPlaced: {
     32                x: -1,
     33                y: -1,
     34            },
     35            credits: -1,
     36            betAmount: 0,
     37            wonAmount: 0,
     38            status: '_1_',
     39            outcome: 'none',
     40            gotResults: false,
     41        },
    2142    },
    2243    pokerGame: {
  • redux/reducers/styleSlice.js

    r95ce58b rd0ef259  
    8383    // roulette
    8484    roulette: {
    85         COUNTDOWN_FROM: 30,
    8685        displays: {
    8786            betModal: false,
     
    9493        whichBets: [],
    9594        coinPlaced: {
    96             x: 0,
    97             y: 0,
    98         },
    99         showCoin: false,
     95            x: -1,
     96            y: -1,
     97        }
    10098    },
    10199    // poker
Note: See TracChangeset for help on using the changeset viewer.