Adds tag support to construction (#3386)
This commit is contained in:
committed by
GitHub
parent
2ec0304072
commit
436d406585
@@ -89,6 +89,20 @@ namespace Content.Shared.Construction
|
||||
return component;
|
||||
}
|
||||
|
||||
if (mapping.TryGetNode("tag", out _))
|
||||
{
|
||||
var tags = new TagConstructionGraphStep();
|
||||
tags.ExposeData(stepSerializer);
|
||||
return tags;
|
||||
}
|
||||
|
||||
if (mapping.TryGetNode("allTags", out _) || mapping.TryGetNode("anyTags", out _))
|
||||
{
|
||||
var tags = new MultipleTagsConstructionGraphStep();
|
||||
tags.ExposeData(stepSerializer);
|
||||
return tags;
|
||||
}
|
||||
|
||||
if(mapping.TryGetNode("steps", out _))
|
||||
{
|
||||
var nested = new NestedConstructionGraphStep();
|
||||
|
||||
Reference in New Issue
Block a user