public static Move ( Creature creature, Position from, Position to, bool walking ) : void | ||
creature | Creature | |
from | Position | |
to | Position | |
walking | bool | |
return | void |
public static void Move(Creature creature, Position from, Position to, bool walking)
{
var packet = new Packet(!walking ? Op.Running : Op.Walking, creature.EntityId);
packet.PutInt(from.X);
packet.PutInt(from.Y);
packet.PutInt(to.X);
packet.PutInt(to.Y);
creature.Region.Broadcast(packet, creature);
}