some game joining logic

This commit is contained in:
Alec
2021-11-13 01:21:22 -05:00
parent e3ec7beff0
commit 0c6203dec5
22 changed files with 596 additions and 116 deletions

13
server/model/Person.js Normal file
View File

@@ -0,0 +1,13 @@
class Person {
constructor(id, name, userType, gameRole=null, gameRoleDescription=null, assigned=false) {
this.id = id;
this.socketId = null;
this.name = name;
this.userType = userType;
this.gameRole = gameRole;
this.gameRoleDescription = gameRoleDescription;
this.assigned = assigned;
}
}
module.exports = Person;