From fb8c05f27f3ed68c121a46d69be52d196cbba9bf Mon Sep 17 00:00:00 2001 From: ComicIronic Date: Sat, 30 May 2020 13:26:13 +0100 Subject: [PATCH 1/2] Add draw depth constants to content --- Content.Shared/GameObjects/DrawDepth.cs | 27 +++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Content.Shared/GameObjects/DrawDepth.cs diff --git a/Content.Shared/GameObjects/DrawDepth.cs b/Content.Shared/GameObjects/DrawDepth.cs new file mode 100644 index 0000000000..1b4520b8f9 --- /dev/null +++ b/Content.Shared/GameObjects/DrawDepth.cs @@ -0,0 +1,27 @@ +using DrawDepthTag = Robust.Shared.GameObjects.DrawDepth; +using Robust.Shared.Serialization; + +namespace Content.Shared.GameObjects +{ + [ConstantsFor(typeof(DrawDepthTag))] + public enum DrawDepth + { + LowFloors = DrawDepthTag.Default - 7, + /// + /// Things that are beneath regular floors, such as wires. + /// + BelowFloor = DrawDepthTag.Default - 6, + FloorTiles = DrawDepthTag.Default - 5, + /// + /// Things that are actually right on the floor, like vents. + /// + FloorObjects = DrawDepthTag.Default - 4, + Walls = DrawDepthTag.Default - 3, + WallTops = DrawDepthTag.Default - 2, + WallMountedItems = DrawDepthTag.Default - 1, + Objects = DrawDepthTag.Default, + Items = DrawDepthTag.Default + 1, + Mobs = DrawDepthTag.Default + 2, + Overlays = DrawDepthTag.Default + 3, + } +} From 42e7d821098902ed5364e9bd4560eb6372435a47 Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Sun, 31 May 2020 00:44:43 +0200 Subject: [PATCH 2/2] Update submodule --- RobustToolbox | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RobustToolbox b/RobustToolbox index 5b9789870b..486fd670e2 160000 --- a/RobustToolbox +++ b/RobustToolbox @@ -1 +1 @@ -Subproject commit 5b9789870b6b4ab4a66c980b757febc3784a8322 +Subproject commit 486fd670e2ea66e45da9801b6b3a0c2fcca84a8d