You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
446 B
29 lines
446 B
// Object Definitions |
|
class player { |
|
constructor (userid, |
|
username, |
|
gameid, |
|
lastActivity, |
|
connected) { |
|
this.userid = userid |
|
this.username = username |
|
this.gameid = gameid |
|
this.lastActivity = lastActivity |
|
this.connected = connected |
|
} |
|
} |
|
class table { |
|
} |
|
class game { |
|
} |
|
// Object Initialization |
|
let state = { |
|
players:[], |
|
tables:[], |
|
games:[] |
|
} |
|
|
|
module.exports = { |
|
state: state, |
|
players: state.players |
|
} |