You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cardGame/public/js/game/components.js

40 lines
595 B
JavaScript

// Should mostly match server's components.js
// Misc. game data required
let gameData = {
item : null,
itemCount : null,
playerId : null,
opponentId : null,
roomId : null,
turn : 0,
playerTurn : 0,
players : null,
cardCount : {
deck : {},
hand : {},
board : {},
},
inInteractionMenu : {},
interactionOption : {},
// Real components from here?
listPosition : {},
cardData : {},
player : {},
deck : {},
hand : {},
board : {},
// Local components, not done on serverside
// calculated, etc. by client
position : {},
size : {},
}