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

58 lines
844 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,
player : {},
cardCount : {
deck : {},
hand : {},
board : {},
shield : {},
mana : {},
grave : {},
void : {},
},
inInteractionMenu : {},
interactionOption : {},
// Real components from here?
listPosition : {},
cardData : {},
cardStatus : {
tapped : {},
attacking : {},
inspected : {},
targetable : {},
targetted : {},
},
// Board elements
deck : {},
hand : {},
board : {},
shield : {},
mana : {},
grave : {},
void : {},
// Local components, not done on serverside
// calculated, etc. by client
position : {},
size : {},
}