2023-07-16 11:32:42 +03:00
|
|
|
using Content.Shared.Actions;
|
2024-01-19 14:38:49 +03:00
|
|
|
using Robust.Shared.Prototypes;
|
2023-07-16 11:32:42 +03:00
|
|
|
|
2024-01-28 18:37:24 +07:00
|
|
|
namespace Content.Shared._White.Administration;
|
2023-07-16 11:32:42 +03:00
|
|
|
|
|
|
|
|
[RegisterComponent]
|
|
|
|
|
[Access(typeof(SharedInvisibilitySystem))]
|
2024-01-19 14:38:49 +03:00
|
|
|
public sealed partial class InvisibilityComponent : Component
|
2023-07-16 11:32:42 +03:00
|
|
|
{
|
2023-07-18 14:58:29 +03:00
|
|
|
[ViewVariables]
|
2023-07-16 11:32:42 +03:00
|
|
|
public bool Invisible;
|
|
|
|
|
|
2023-07-18 14:58:29 +03:00
|
|
|
public float? DefaultAlpha;
|
|
|
|
|
|
2024-01-19 14:38:49 +03:00
|
|
|
[DataField]
|
|
|
|
|
public EntProtoId ToggleInvisibilityAction = "ToggleInvisibilityAction";
|
|
|
|
|
|
|
|
|
|
[DataField]
|
|
|
|
|
public EntityUid? ToggleInvisibilityActionEntity;
|
2023-07-16 11:32:42 +03:00
|
|
|
}
|
|
|
|
|
|
2024-01-19 14:38:49 +03:00
|
|
|
public sealed partial class ToggleInvisibilityActionEvent : InstantActionEvent
|
2023-07-16 11:32:42 +03:00
|
|
|
{
|
|
|
|
|
}
|