Welding airlocks changes their layer (#13440)

This commit is contained in:
Rane
2023-03-13 15:26:20 -04:00
committed by GitHub
parent c6307cc388
commit b450b4c0e0
4 changed files with 47 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
using Content.Server.Tools.Systems;
using Content.Shared.Physics;
namespace Content.Server.Tools.Components;
[RegisterComponent]
[Access(typeof(WeldableSystem))]
public sealed class LayerChangeOnWeldComponent : Component
{
[DataField("unWeldedLayer")]
[ViewVariables]
public CollisionGroup UnWeldedLayer = CollisionGroup.AirlockLayer;
[DataField("weldedLayer")]
[ViewVariables]
public CollisionGroup WeldedLayer = CollisionGroup.WallLayer;
}