private void CheckArchetypes(DungeonFlow flow, DungeonValidator validator) { var archetypes = flow.GetUsedArchetypes(); foreach (var archetype in archetypes) { if (archetype == null) { continue; } if (archetype.TileSets.Count == 0) { validator.AddError("The archetype '{0}' has no tile sets assigned", archetype, archetype.name); } else { foreach (var tileSet in archetype.TileSets) { if (tileSet == null) { validator.AddError("The archetype '{0}' has a missing tile set", archetype, archetype.name); } } } foreach (var tileSet in archetype.BranchCapTileSets) { if (tileSet == null) { validator.AddError("Archetype '{0}' has a missing branch cap tile set", archetype, archetype.name); } } } }