Files
tbd-station-14/Content.Server/Rotatable/FlippableComponent.cs
2022-02-02 14:35:40 +11:00

18 lines
627 B
C#

using Robust.Shared.GameObjects;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.Manager.Attributes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Server.Rotatable
{
[RegisterComponent]
public class FlippableComponent : Component
{
/// <summary>
/// Entity to replace this entity with when the current one is 'flipped'.
/// </summary>
[DataField("mirrorEntity", required: true, customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
public string MirrorEntity = default!;
}
}