chg: dev: small changes on docs - and improve text on homepage #8
All checks were successful
Deploy to Production / deploy (push) Successful in 3m14s
All checks were successful
Deploy to Production / deploy (push) Successful in 3m14s
This commit is contained in:
@@ -187,7 +187,7 @@ export const GameProvider = ({ children }) => {
|
||||
syncBlue(p => ({ ...p, mines: 'blue' === player ? bp : p.mines }));
|
||||
}
|
||||
|
||||
// Update bonus points and stats
|
||||
/** Update bonus points and stats */
|
||||
syncRed(p => ({
|
||||
...p,
|
||||
bonusPoints: 'red' === player ? redBonusPoints : p.bonusPoints,
|
||||
@@ -254,20 +254,20 @@ export const GameProvider = ({ children }) => {
|
||||
return (
|
||||
<GameContext.Provider
|
||||
value={{
|
||||
// State (for rendering)
|
||||
/** State (for rendering) */
|
||||
webPlayer, activePlayer, overlay, overlayTitle, overlaySubTitle,
|
||||
mines, bombSelected, foundMines, red, blue, cells, gridReady, connectionLost, gameUuid,
|
||||
// Setters needed by useServerComm
|
||||
/** Setters needed by useServerComm */
|
||||
setCells, setGridReady, setGameUuid,
|
||||
// Refs (needed by useServerComm for async-safe reads)
|
||||
/** Refs (needed by useServerComm for async-safe reads) */
|
||||
webPlayerRef, activePlayerRef, bombSelectedRef, connectionLostRef, lastClickedRef, endRef,
|
||||
// Sync helpers
|
||||
/** Sync helpers */
|
||||
syncWebPlayer, syncActivePlayer, syncBombSelected, syncConnLost, syncRed, syncBlue,
|
||||
// Game logic called by useServerComm
|
||||
/** Game logic called by useServerComm */
|
||||
showOverlay, hideOverlay,
|
||||
applyRevealedCell, applyStep,
|
||||
makeGameEndIfItEnds, resignProcess,
|
||||
// UI action
|
||||
/** UI action */
|
||||
onBombToggle,
|
||||
}}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user