add PreconditionRequirement and RelatedModule requirement

This commit is contained in:
2022-11-20 18:05:50 +01:00
parent 1dcd6e67e1
commit 8ee43d6823
21 changed files with 270 additions and 7 deletions

View File

@@ -47,7 +47,7 @@ namespace EscapeRoomEngine.Engine.Runtime.Modules
}
else
{
throw new Exception("Tried to set wrong type of module.");
throw new Exception($"Tried to set wrong type of module ({module.GetType()} instead of DoorModule)");
}
}