mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 21:48:58 +03:00
* this is definitely one of the commits * 1 * new facehuggers * suffix * Burst egg * some fix * Update Content.Server/_White/Xenomorphs/Queen/XenomorphQueenSystem.cs Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update Content.Server/_White/Xenomorphs/Queen/XenomorphQueenSystem.cs Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update Resources/Locale/en-US/_white/objectives/conditions/steal-target-groups.ftl Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update Content.Server/_White/Xenomorphs/FaceHugger/FaceHuggerSystem.cs * Update Content.Server/_White/Xenomorphs/FaceHugger/FaceHuggerSystem.cs * Update Resources/Locale/ru-RU/_white/prototypes/entities/mobs/player/pets.ftl * Update Resources/Locale/ru-RU/WWDP_TRANSLATION/_white/prototypes/entities/structures/storage/glass_box.ftl * Update Resources/Locale/ru-RU/_white/objectives/conditions/steal-target-groups.ftl * Update Content.Server/_White/Xenomorphs/FaceHugger/FaceHuggerSystem.cs * some fix * SelfUnBuckleDelay * Neurotoxin now stun * PlasmaAmmoProvider * some fix * fix * some number --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
92 lines
2.4 KiB
C#
92 lines
2.4 KiB
C#
using Content.Shared.Alert;
|
|
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Prototypes;
|
|
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared.Pinpointer;
|
|
|
|
/// <summary>
|
|
/// Displays a sprite on the item that points towards the target component.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent]
|
|
[AutoGenerateComponentState]
|
|
[Access(typeof(SharedPinpointerSystem))]
|
|
public sealed partial class PinpointerComponent : Component
|
|
{
|
|
// TODO: Type serializer oh god
|
|
[DataField("component"), ViewVariables(VVAccess.ReadWrite)]
|
|
public string? Component;
|
|
|
|
[DataField("mediumDistance"), ViewVariables(VVAccess.ReadWrite)]
|
|
public float MediumDistance = 16f;
|
|
|
|
[DataField("closeDistance"), ViewVariables(VVAccess.ReadWrite)]
|
|
public float CloseDistance = 8f;
|
|
|
|
[DataField("reachedDistance"), ViewVariables(VVAccess.ReadWrite)]
|
|
public float ReachedDistance = 1f;
|
|
|
|
/// <summary>
|
|
/// Pinpointer arrow precision in radians.
|
|
/// </summary>
|
|
[DataField("precision"), ViewVariables(VVAccess.ReadWrite)]
|
|
public double Precision = 0.09;
|
|
|
|
/// <summary>
|
|
/// Name to display of the target being tracked.
|
|
/// </summary>
|
|
[DataField("targetName"), ViewVariables(VVAccess.ReadWrite)]
|
|
public string? TargetName;
|
|
|
|
/// <summary>
|
|
/// Whether or not the target name should be updated when the target is updated.
|
|
/// </summary>
|
|
[DataField("updateTargetName"), ViewVariables(VVAccess.ReadWrite)]
|
|
public bool UpdateTargetName;
|
|
|
|
/// <summary>
|
|
/// Whether or not the target can be reassigned.
|
|
/// </summary>
|
|
[DataField("canRetarget"), ViewVariables(VVAccess.ReadWrite)]
|
|
public bool CanRetarget;
|
|
|
|
// WD EDIT START
|
|
[DataField]
|
|
public ProtoId<AlertPrototype>? Alert;
|
|
|
|
[DataField]
|
|
public bool CanToggle = true;
|
|
|
|
[DataField]
|
|
public bool CanEmag = true;
|
|
|
|
[DataField]
|
|
public bool CanExamine = true;
|
|
// WD EDIT END
|
|
|
|
[ViewVariables]
|
|
public EntityUid? Target = null;
|
|
|
|
[DataField, AutoNetworkedField] // WD EDIT: ViewVariables -> DataField
|
|
public bool IsActive = false;
|
|
|
|
[ViewVariables, AutoNetworkedField]
|
|
public Angle ArrowAngle;
|
|
|
|
[ViewVariables, AutoNetworkedField]
|
|
public Distance DistanceToTarget = Distance.Unknown;
|
|
|
|
[ViewVariables]
|
|
public bool HasTarget => DistanceToTarget != Distance.Unknown;
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public enum Distance : byte
|
|
{
|
|
Unknown,
|
|
Reached,
|
|
Close,
|
|
Medium,
|
|
Far
|
|
}
|