Wires are now actually hidden by floor tiles. (#181)
This commit is contained in:
committed by
GitHub
parent
3b0ec7f695
commit
9f3f09871e
@@ -16,6 +16,8 @@ namespace Content.Shared.Maps
|
||||
public ushort TileId { get; private set; }
|
||||
public string DisplayName { get; private set; }
|
||||
public string SpriteName { get; private set; }
|
||||
public bool IsSubFloor { get; private set; }
|
||||
public bool CanCrowbar { get; private set; }
|
||||
|
||||
public void AssignTileId(ushort id)
|
||||
{
|
||||
@@ -27,6 +29,16 @@ namespace Content.Shared.Maps
|
||||
Name = mapping.GetNode("name").ToString();
|
||||
DisplayName = mapping.GetNode("display_name").ToString();
|
||||
SpriteName = mapping.GetNode("texture").ToString();
|
||||
|
||||
if (mapping.TryGetNode("is_subfloor", out var node))
|
||||
{
|
||||
IsSubFloor = node.AsBool();
|
||||
}
|
||||
|
||||
if (mapping.TryGetNode("can_crowbar", out node))
|
||||
{
|
||||
CanCrowbar = node.AsBool();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user