mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-11-24 05:11:22 +00:00
23 lines
No EOL
383 B
JavaScript
23 lines
No EOL
383 B
JavaScript
"use strict";
|
|
|
|
/*
|
|
* Implements Gatherer
|
|
*
|
|
* Stores necessary information including:
|
|
* - user data
|
|
* - voting preferences
|
|
* - leader status
|
|
* - Team: "lobby" "alien" "marine"
|
|
*/
|
|
|
|
var User = require("../user/user");
|
|
|
|
function Gatherer (user) {
|
|
this.votes = {};
|
|
this.id = user.id;
|
|
this.user = user;
|
|
this.captain = false;
|
|
this.team = "lobby";
|
|
}
|
|
|
|
module.exports = Gatherer; |