Files
tbd-station-14/Content.Shared/Examine/ExaminerComponent.cs
2022-05-13 17:59:03 +10:00

20 lines
604 B
C#

namespace Content.Shared.Examine
{
/// <summary>
/// Component required for a player to be able to examine things.
/// </summary>
[RegisterComponent]
public sealed class ExaminerComponent : Component
{
[ViewVariables(VVAccess.ReadWrite)]
[DataField("DoRangeCheck")]
private bool _doRangeCheck = true;
/// <summary>
/// Whether to do a distance check on examine.
/// If false, the user can theoretically examine from infinitely far away.
/// </summary>
public bool DoRangeCheck => _doRangeCheck;
}
}