public static PacketProcessResult HandleMovement(PacketProcessor p) { if (p.ClientConnection.CurrentPlayer == null) { return(PacketProcessResult.Processed); } Debug.Assert(p is RealmPacketProcessor); var RealmProcessor = p as RealmPacketProcessor; MovementData data = new MovementData(); data.Read(p.CurrentPacket); p.ClientConnection.CurrentPlayer.MovementUpdate(RealmProcessor.CurrentOpcode, data); return(PacketProcessResult.Processed); }