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.
56 lines
807 B
JavaScript
56 lines
807 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 : {},
|
|
},
|
|
|
|
|
|
// Board elements
|
|
deck : {},
|
|
hand : {},
|
|
board : {},
|
|
shield : {},
|
|
mana : {},
|
|
grave : {},
|
|
void : {},
|
|
|
|
// Local components, not done on serverside
|
|
// calculated, etc. by client
|
|
position : {},
|
|
size : {},
|
|
|
|
}
|
|
|