18 lines
539 B
C#
18 lines
539 B
C#
|
|
using Robust.Shared.GameStates;
|
||
|
|
using Robust.Shared.Prototypes;
|
||
|
|
|
||
|
|
namespace Content.Shared.Rotatable;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Allows an entity to be flipped (mirrored) by using a verb.
|
||
|
|
/// </summary>
|
||
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
||
|
|
public sealed partial class FlippableComponent : Component
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// Entity to replace this entity with when the current one is 'flipped'.
|
||
|
|
/// </summary>
|
||
|
|
[DataField(required: true), AutoNetworkedField]
|
||
|
|
public EntProtoId MirrorEntity = default!;
|
||
|
|
}
|