Files
RobustToolbox/Robust.Shared/Serialization/SerializedTypeAttribute.cs
T
DrSmugleafandGitHub e0c63e7ce6 Add SerializedType attribute to specify the id used in !type tags (#1545)
* Add SerializedType attribute to serialize types without the !type tag

* Fix nulls in tests

* Fix null in tests maybe

* Return to type tags

* Fix imports
2021-02-11 13:50:55 -08:00

19 lines
459 B
C#

using System;
namespace Robust.Shared.Serialization
{
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public class SerializedTypeAttribute : Attribute
{
/// <summary>
/// Name of this type in serialized files.
/// </summary>
public string SerializeName { get; }
public SerializedTypeAttribute(string serializeName)
{
SerializeName = serializeName;
}
}
}