ConstructionGL2 Part 2: Better guided steps and recipes. (#5103)

This commit is contained in:
Vera Aguilera Puerto
2021-11-02 11:24:32 +01:00
committed by GitHub
parent 5be8271907
commit 5a5006e4cf
45 changed files with 725 additions and 210 deletions

View File

@@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Content.Shared.Construction;
using Content.Shared.Examine;
@@ -37,5 +38,16 @@ namespace Content.Server.Construction.Conditions
return ret;
}
public IEnumerable<ConstructionGuideEntry> GenerateGuideEntry()
{
foreach (var condition in Conditions)
{
foreach (var entry in condition.GenerateGuideEntry())
{
yield return entry;
}
}
}
}
}