1
0

FlippableComponent.cs 555 B

123456789101112131415
  1. using Robust.Shared.Prototypes;
  2. using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
  3. namespace Content.Server.Rotatable
  4. {
  5. [RegisterComponent]
  6. public sealed partial class FlippableComponent : Component
  7. {
  8. /// <summary>
  9. /// Entity to replace this entity with when the current one is 'flipped'.
  10. /// </summary>
  11. [DataField("mirrorEntity", required: true, customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
  12. public string MirrorEntity = default!;
  13. }
  14. }