no overlap requirement

This commit is contained in:
2022-11-07 16:04:00 +01:00
parent d9513f70b3
commit 1a1e7f87a0
8 changed files with 50 additions and 7 deletions

View File

@@ -111,7 +111,7 @@ namespace Escape_Room_Engine.Engine.Scripts
}
// orient puzzle
HashSet<Orientation> orientationCandidates = Module.EveryOrientation;
var orientationCandidates = Module.EveryOrientation;
Logger.Log($"orientation candidatesA: {string.Join(",", orientationCandidates.ToList().ConvertAll(c => c.ToString()))}", LogType.RequirementResolution);
puzzle._description.RequirementsOfType<OrientationRequirement>().ForEach(requirement =>
orientationCandidates.IntersectWith(requirement.OrientationCandidates(puzzle, space)));