Mark ValidatePrototypeIdAttribute as obsolete (#6062)

This commit is contained in:
Nemanja
2025-07-12 09:20:08 -04:00
committed by GitHub
parent 78d807b13c
commit ceeb002692

View File

@@ -8,6 +8,7 @@ namespace Robust.Shared.Serialization.Manager.Attributes;
/// valid YAML prototype ids. This attribute is not required for static <see cref="ProtoId{T}"/> and
/// <see cref="EntProtoId"/> fields, as they automatically get validated.
/// </summary>
[Obsolete("Use a static readonly ProtoId<T> instead")]
[AttributeUsage(AttributeTargets.Field)]
public sealed class ValidatePrototypeIdAttribute<T> : Attribute where T : IPrototype
{