mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Mark ProtoId<T> as serializable (#4430)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user