mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
* door inheritance fix * wip comments * cleanup 1 * move static price up the tree * some comments * undo name change * cleanup * more tweaks * formatting
21 lines
670 B
C#
21 lines
670 B
C#
using Content.Shared.Physics;
|
|
using Content.Shared.Tools.Systems;
|
|
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.Tools.Components;
|
|
|
|
/// <summary>
|
|
/// This component changes the collision layer of airlocks when they are welded, so rats can't crawl under them
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent]
|
|
[Access(typeof(WeldableSystem))]
|
|
public sealed partial class LayerChangeOnWeldComponent : Component
|
|
{
|
|
[DataField("unWeldedLayer")]
|
|
[ViewVariables]
|
|
public CollisionGroup UnWeldedLayer = CollisionGroup.AirlockLayer;
|
|
|
|
[DataField("weldedLayer")]
|
|
[ViewVariables]
|
|
public CollisionGroup WeldedLayer = CollisionGroup.WallLayer;
|
|
}
|