Moved id into base entity

This commit is contained in:
Jeremiah Billmann
2013-07-06 13:49:30 -04:00
parent dbe1dd01ad
commit a366576031
3 changed files with 6 additions and 8 deletions
+2 -2
View File
@@ -1,9 +1,9 @@
exports = module.exports = Entity;
function Entity () {
function Entity (id) {
this.state;
this.sequence = 1;
this.id;
this.id = id;
this.stateHistory = [];
}
+1 -2
View File
@@ -3,9 +3,8 @@ var Entity = require('./entity');
exports = module.exports = Player;
function Player (client) {
Entity.call(this);
Entity.call(this, client.id);
this.client = client;
this.id = client.id;
this.inputs = [];
}