| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- using Content.Shared.DoAfter;
- using Robust.Shared.Audio;
- using Robust.Shared.GameStates;
- namespace Content.Shared.MagicMirror;
- /// <summary>
- /// Allows humanoids to change their appearance mid-round.
- /// </summary>
- [RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
- public sealed partial class MagicMirrorComponent : Component
- {
- [DataField]
- public DoAfterId? DoAfter;
- /// <summary>
- /// Magic mirror target, used for validating UI messages.
- /// </summary>
- [DataField, AutoNetworkedField]
- public EntityUid? Target;
- /// <summary>
- /// Do after time to add a new slot, adding hair to a person
- /// </summary>
- [DataField, ViewVariables(VVAccess.ReadWrite)]
- public TimeSpan AddSlotTime = TimeSpan.FromSeconds(7);
- /// <summary>
- /// Do after time to remove a slot, removing hair from a person
- /// </summary>
- [DataField, ViewVariables(VVAccess.ReadWrite)]
- public TimeSpan RemoveSlotTime = TimeSpan.FromSeconds(7);
- /// <summary>
- /// Do after time to change a person's hairstyle
- /// </summary>
- [DataField, ViewVariables(VVAccess.ReadWrite)]
- public TimeSpan SelectSlotTime = TimeSpan.FromSeconds(7);
- /// <summary>
- /// Do after time to change a person's hair color
- /// </summary>
- [DataField, ViewVariables(VVAccess.ReadWrite)]
- public TimeSpan ChangeSlotTime = TimeSpan.FromSeconds(7);
- /// <summary>
- /// Sound emitted when slots are changed
- /// </summary>
- [DataField, ViewVariables(VVAccess.ReadWrite)]
- public SoundSpecifier? ChangeHairSound = new SoundPathSpecifier("/Audio/Items/scissors.ogg");
- }
|