using Robust.Shared.GameObjects;

namespace Robust.Server.GameObjects
{
    /// <summary>
    ///     Metadata component used to keep consistent UIDs inside map files cross saving.
    /// </summary>
    /// <remarks>
    ///     This component stores the previous map UID of entities from map load.
    ///     This can then be used to re-serialize the entity with the same UID for the merge driver to recognize.
    /// </remarks>
    [RegisterComponent, UnsavedComponent]
    public sealed partial class MapSaveIdComponent : Component
    {
        public int Uid { get; set; }
    }
}
