add PreconditionRequirement and RelatedModule requirement
This commit is contained in:
@@ -11,6 +11,12 @@ namespace EscapeRoomEngine.Engine.Runtime.Requirements
|
||||
|
||||
public static bool TryOrienting(Module module, Space space)
|
||||
{
|
||||
if (module.description.orientationRequirements.Count == 0)
|
||||
{
|
||||
// don't evaluate requirements if there are none
|
||||
return true;
|
||||
}
|
||||
|
||||
var orientationCandidates = Candidates(
|
||||
Module.EveryOrientation,
|
||||
module.description.orientationRequirements,
|
||||
|
||||
Reference in New Issue
Block a user