ensl_gathers/lib/gather/gatherer.js

23 lines
383 B
JavaScript
Raw Normal View History

"use strict";
/*
* Implements Gatherer
*
* Stores necessary information including:
* - user data
* - voting preferences
* - leader status
2015-07-23 13:36:51 +00:00
* - Team: "lobby" "alien" "marine"
*/
2015-07-22 23:30:14 +00:00
var User = require("../user/user");
2015-07-22 23:30:14 +00:00
function Gatherer (user) {
this.votes = {};
this.id = user.id;
2015-07-23 13:36:51 +00:00
this.user = user;
2015-07-22 23:30:14 +00:00
this.captain = false;
2015-07-23 13:36:51 +00:00
this.team = "lobby";
}
module.exports = Gatherer;