Example #1
0
func (c *Connection) ReceivePlayerTurn(_packet *pnet.Packet) {
	msg := pnetmsg.NewCreatureTurnMessage(c.Owner)
	msg.ReadPacket(_packet)
}
Example #2
0
func (c *Connection) SendCreatureTurn(_creature pul.ICreature, direction int) {
	msg := pnetmsg.NewCreatureTurnMessage(_creature)
	msg.AddDirection(direction)
	c.SendMessage(msg)
}