CatStation/Content.Shared/Guardian/Components/GuardianHostComponent.cs
ThatGuyUSA 5e5e61768e
Predict Holoparasites and their injectors (#43519)
* save station

* save

* save station

* free howdoicode working 2026

* final push before presentation

* comments addressed, but need to fix PredictedSpawn

* save

* kill me again, im beggin on my knees

* ok wait i apparently forgot half of these reviews

* actually made everything work now

* this has been a learning experience

* formatting, removed unused namespace

* dehardcode man

* fixed it fr

* no more null, only default

* dollar store port, holy

* error error go away

* i removed these from being null, i swear

* formatting and minor fixes

* fixes 2

* Update guardian_activators.yml

* comm

* oops

* oops 2

* Update GuardianSystem.cs

---------

Co-authored-by: Pok245 <113675512+Pok27@users.noreply.github.com>
2026-06-29 21:08:09 +00:00

51 lines
1.5 KiB
C#

using Robust.Shared.Containers;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
namespace Content.Shared.Guardian.Components;
/// <summary>
/// Given to guardian users upon establishing a guardian link with the entity.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class GuardianHostComponent : Component
{
/// <summary>
/// Guardian hosted within the component.
/// </summary>
/// <remarks>
/// Can be null if the component is added at any time.
/// </remarks>
[DataField, AutoNetworkedField]
public EntityUid? HostedGuardian;
/// <summary>
/// Container which holds the guardian
/// </summary>
[ViewVariables]
public ContainerSlot GuardianContainer;
/// <summary>
/// Action prototype used to toggle (release/retract) the hosted guardian.
/// </summary>
[DataField, AutoNetworkedField]
public EntProtoId Action = "ActionToggleGuardian";
/// <summary>
/// Popup shown to the guardian when its host enters a critical state.
/// </summary>
[DataField]
public LocId GuardianHostCritWarn = "guardian-host-critical-warn";
/// <summary>
/// Popup shown to the host when its guardian is retracted.
/// </summary>
[DataField]
public LocId GuardianHostRecall = "guardian-entity-recall";
/// <summary>
/// The spawned action entity used to toggle the guardian.
/// </summary>
[DataField, AutoNetworkedField]
public EntityUid? ActionEntity;
}