Example #1
0
func OnCreatureTurn(_creature interfaces.ICreature, _direction uint16) {
	if _direction != _creature.GetDirection() {
		_creature.Turn(_direction)
	}
}
Example #2
0
func (p *Player) netSendCreatureTurn(_creature interfaces.ICreature) {
	msg := netmsg.NewTurnMessage(_creature)
	msg.AddDirection(_creature.GetDirection())

	p.txChan <- msg
}