Mark ProtoId<T> as serializable (#4430)

This commit is contained in:
Leon Friedrich
2023-09-20 01:13:14 +12:00
committed by GitHub
parent 30a5b6152c
commit 30f63254ef

View File

@@ -1,4 +1,5 @@
using Robust.Shared.Serialization.TypeSerializers.Implementations.Generic;
using System;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Generic;
namespace Robust.Shared.Prototypes;
@@ -11,6 +12,7 @@ namespace Robust.Shared.Prototypes;
/// This will be automatically validated by <see cref="ProtoIdSerializer{T}"/> if used in data fields.
/// </remarks>
/// <remarks><seealso cref="EntProtoId"/> for an <see cref="EntityPrototype"/> alias.</remarks>
[Serializable]
public readonly record struct ProtoId<T>(string Id) where T : class, IPrototype
{
public static implicit operator string(ProtoId<T> protoId)