using System; using GuildWarsInterface.GameServerLogic_; using GuildWarsPackets.CtoGS_; using Mod.Networking; using Protocol.Messages.Update; using Protocol.Types; namespace Mod.Logic.GameServer { public class EnticeMovementLogic : MovementLogic { protected override void OnKeyboardMove(CtoGSPacket54_KeyboardMove packet) { Console.WriteLine(packet.PositionX + "," + packet.PositionY + "." + packet.DirectionX + "," + packet.DirectionY); Client.Send(new MoveRequest(new Coord2D(packet.DirectionX, packet.DirectionY))); } protected override void OnKeyboardStopMoving(CtoGSPacket64_KeyboardStopMoving packet) { Client.Send(new MoveRequest(new Coord2D(0, 0))); } } }