23
Content.Server/Objectives/Components/StealAreaComponent.cs
Normal file
23
Content.Server/Objectives/Components/StealAreaComponent.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using Content.Server.Objectives.Systems;
|
||||
using Content.Server.Thief.Systems;
|
||||
|
||||
namespace Content.Server.Objectives.Components;
|
||||
|
||||
/// <summary>
|
||||
/// An abstract component that allows other systems to count adjacent objects as "stolen" when controlling other systems
|
||||
/// </summary>
|
||||
[RegisterComponent, Access(typeof(StealConditionSystem), typeof(ThiefBeaconSystem))]
|
||||
public sealed partial class StealAreaComponent : Component
|
||||
{
|
||||
[DataField]
|
||||
public bool Enabled = true;
|
||||
|
||||
[DataField]
|
||||
public float Range = 1f;
|
||||
|
||||
/// <summary>
|
||||
/// all the minds that will be credited with stealing from this area.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public HashSet<EntityUid> Owners = new();
|
||||
}
|
||||
Reference in New Issue
Block a user