Wall inheritance cleanup (#37436)
* Cleanup walls.yml * quick check * Fix tilewall cmd * More Cleanup * Arrnrtrayiage * Remove double parenting --------- Co-authored-by: Velcroboy <velcroboy333@hotmail.com>
This commit is contained in:
@@ -25,6 +25,7 @@ public sealed class TileWallsCommand : IConsoleCommand
|
||||
|
||||
[ValidatePrototypeId<TagPrototype>]
|
||||
public const string WallTag = "Wall";
|
||||
public const string DiagonalTag = "Diagonal";
|
||||
|
||||
public void Execute(IConsoleShell shell, string argStr, string[] args)
|
||||
{
|
||||
@@ -85,6 +86,11 @@ public sealed class TileWallsCommand : IConsoleCommand
|
||||
continue;
|
||||
}
|
||||
|
||||
if (tagSystem.HasTag(child, DiagonalTag))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
var childTransform = _entManager.GetComponent<TransformComponent>(child);
|
||||
|
||||
if (!childTransform.Anchored)
|
||||
|
||||
Reference in New Issue
Block a user