mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-27 10:38:02 +03:00
<!-- This is a semi-strict format, you can add/remove sections as needed but the order/format should be kept the same Remove these comments before submitting --> # Description <!-- Explain this PR in as much detail as applicable Some example prompts to consider: How might this affect the game? The codebase? What might be some alternatives to this? How/Who does this benefit/hurt [the game/codebase]? --> Ports the lone abductor and possibly(?) the duo abductors. --- # TODO <!-- A list of everything you have to do before this PR is "complete" You probably won't have to complete everything before merging but it's good to leave future references --> - [X] Figure out why abductors aren't spawning as the abductor race. - [X] Make sure it's not a buggy mess. --- <!-- This is default collapsed, readers click to expand it and see all your media The PR media section can get very large at times, so this is a good way to keep it clean The title is written using HTML tags The title must be within the <summary> tags or you won't see it --> <details><summary><h1>Media</h1></summary> <p>  </p> </details> --- # Credits Thank to [Starlight ](https://discord.com/invite/wAyQKB78fH)for the original version! Darkrell, Rinary, and Landosaur made the funny little guys.  # Changelog <!-- You can add an author after the `🆑` to change the name that appears in the changelog (ex: `🆑 Death`) Leaving it blank will default to your GitHub display name This includes all available types for the changelog --> 🆑 Darkrell, Rinary, Landosaur - add: The Abductors are here to replace your organs. Gleep Glorp! --------- Co-authored-by: gluesniffler <159397573+gluesniffler@users.noreply.github.com> Co-authored-by: Solstice <solsticeofthewinter@gmail.com> Co-authored-by: SX_7 <sn1.test.preria.2002@gmail.com> Co-authored-by: Theodore Lukin <66275205+pheenty@users.noreply.github.com> Co-authored-by: Piras314 <p1r4s@proton.me> Co-authored-by: Ilya246 <57039557+ilya246@users.noreply.github.com> (cherry picked from commit ea9f1526868289d20832989cb02f79c76c240918)
63 lines
2.2 KiB
C#
63 lines
2.2 KiB
C#
using Content.Shared.DeviceLinking;
|
|
using Content.Shared.DeviceNetwork.Systems;
|
|
using Robust.Shared.Audio;
|
|
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
|
|
|
|
namespace Content.Shared.DeviceNetwork.Components;
|
|
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
|
[Access(typeof(SharedNetworkConfiguratorSystem))]
|
|
public sealed partial class NetworkConfiguratorComponent : Component
|
|
{
|
|
// AAAAA ALL OF THESE FAA
|
|
/// <summary>
|
|
/// Determines whether the configurator is in linking mode or list mode
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
public bool LinkModeActive = true;
|
|
|
|
/// <summary>
|
|
/// The entity containing a <see cref="DeviceListComponent"/> this configurator is currently interacting with
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public EntityUid? ActiveDeviceList { get; set; }
|
|
|
|
/// <summary>
|
|
/// The entity containing a <see cref="DeviceLinkSourceComponent"/> or <see cref="DeviceLinkSinkComponent"/> this configurator is currently interacting with.<br/>
|
|
/// If this is set the configurator is in linking mode.
|
|
/// </summary>
|
|
// TODO handle device deletion
|
|
public EntityUid? ActiveDeviceLink;
|
|
|
|
/// <summary>
|
|
/// The target device this configurator is currently linking with the <see cref="ActiveDeviceLink"/>
|
|
/// </summary>
|
|
// TODO handle device deletion
|
|
public EntityUid? DeviceLinkTarget;
|
|
|
|
/// <summary>
|
|
/// The list of devices stored in the configurator
|
|
/// </summary>
|
|
[DataField]
|
|
public Dictionary<string, EntityUid> Devices = new();
|
|
|
|
[DataField]
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
public TimeSpan UseDelay = TimeSpan.FromSeconds(0.5);
|
|
|
|
[DataField(customTypeSerializer: typeof(TimeOffsetSerializer))]
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
public TimeSpan LastUseAttempt;
|
|
|
|
[DataField]
|
|
public SoundSpecifier SoundNoAccess = new SoundPathSpecifier("/Audio/Machines/custom_deny.ogg");
|
|
|
|
[DataField]
|
|
public SoundSpecifier SoundSwitchMode = new SoundPathSpecifier("/Audio/Machines/quickbeep.ogg");
|
|
|
|
[DataField]
|
|
public bool ShowLabel = true; // Shitmed - Starlight Abductors Change
|
|
}
|