mirror of
https://github.com/AlecM33/Werewolf.git
synced 2025-12-26 15:57:50 +01:00
19 lines
557 B
JavaScript
19 lines
557 B
JavaScript
// noinspection DuplicatedCode
|
|
class Person {
|
|
constructor(id, cookie, name, userType, gameRole=null, gameRoleDescription=null, alignment=null, assigned=false) {
|
|
this.id = id;
|
|
this.cookie = cookie
|
|
this.socketId = null;
|
|
this.name = name;
|
|
this.userType = userType;
|
|
this.gameRole = gameRole;
|
|
this.gameRoleDescription = gameRoleDescription;
|
|
this.alignment = alignment;
|
|
this.assigned = assigned;
|
|
this.out = false;
|
|
this.revealed = false;
|
|
}
|
|
}
|
|
|
|
module.exports = Person;
|