mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-02 18:17:09 +02:00
* 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
19 lines
459 B
C#
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;
|
|
}
|
|
}
|
|
}
|