Salvage mob restrictions (#8080)
This commit is contained in:
23
Content.Server/Salvage/SalvageMobRestrictionsComponent.cs
Normal file
23
Content.Server/Salvage/SalvageMobRestrictionsComponent.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Maths;
|
||||
using Robust.Shared.Serialization.Manager.Attributes;
|
||||
using Robust.Shared.ViewVariables;
|
||||
using System;
|
||||
|
||||
namespace Content.Server.Salvage;
|
||||
|
||||
/// <summary>
|
||||
/// This component exists as a sort of stateful marker for a
|
||||
/// killswitch meant to keep salvage mobs from doing stuff they
|
||||
/// really shouldn't (attacking station).
|
||||
/// The main thing is that adding this component ties the mob to
|
||||
/// whatever it's currently parented to.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class SalvageMobRestrictionsComponent : Component
|
||||
{
|
||||
[ViewVariables(VVAccess.ReadOnly)]
|
||||
[DataField("linkedGridEntity")]
|
||||
public EntityUid LinkedGridEntity = EntityUid.Invalid;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user