﻿using EndlessWorlds.Lib.Data.GameTypes;
using EndlessWorlds.Lib.Networking.Packets;
using EndlessWorlds.Lib.Serialization.Attributes;

namespace EndlessWorlds.Server.Networking.Packets.ServerPackets
{
    /// <summary>
    /// Sent by the server usually when the player's character tries to make an invalid movement.<para/>
    /// For example, when the player lags and instantly tries to move a huge distance. This packet forces the character back.
    /// </summary>
    [DataContract]
    [PacketId(0x11, PacketTypes.ServerPacket)]
    public class ResetCharacterPositionServerPacket : PacketBase
    {
        /// <summary>
        /// The character's new position.
        /// </summary>
        [DataMember] public Point Position;
    }
}
