From fb8c05f27f3ed68c121a46d69be52d196cbba9bf Mon Sep 17 00:00:00 2001 From: ComicIronic Date: Sat, 30 May 2020 13:26:13 +0100 Subject: [PATCH] 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, + } +}