func OnCreatureTurn(_creature interfaces.ICreature, _direction uint16) { if _direction != _creature.GetDirection() { _creature.Turn(_direction) } }
func (p *Player) netSendCreatureTurn(_creature interfaces.ICreature) { msg := netmsg.NewTurnMessage(_creature) msg.AddDirection(_creature.GetDirection()) p.txChan <- msg }