Closed englercj closed 9 years ago
https://github.com/jbillmann/GarageServer.IO/blob/master/lib/entities/player.js#L19
On this line it overrrides addState from entity. This means that the line in entity that sets the state:
addState
https://github.com/jbillmann/GarageServer.IO/blob/master/lib/entities/entity.js#L17
Never runs, so this.state is always an empty object and the player state never reaches the client. Needs to add this.state = state to the player addState() method.
this.state
this.state = state
addState()
https://github.com/jbillmann/GarageServer.IO/blob/master/lib/entities/player.js#L19
On this line it overrrides
addState
from entity. This means that the line in entity that sets the state:https://github.com/jbillmann/GarageServer.IO/blob/master/lib/entities/entity.js#L17
Never runs, so
this.state
is always an empty object and the player state never reaches the client. Needs to addthis.state = state
to the playeraddState()
method.