laser emitter module

This commit is contained in:
2023-04-06 15:21:23 +02:00
parent b4612b482f
commit cb54ebab05
39 changed files with 540 additions and 32 deletions

View File

@@ -107,8 +107,9 @@ namespace EscapeRoomEngine.Engine.Runtime
Space space;
Passage exit;
// choose the next puzzle
var puzzle = ChoosePuzzle();
// choose a puzzle from the plan and remove it from both the plan and later available puzzles (so it is only chosen once)
var puzzle = _plannedPuzzles.PopRandomElement();
_availablePuzzles.Remove(puzzle);
GameControl.Instance.CurrentPuzzle = puzzle;
do
@@ -149,14 +150,6 @@ namespace EscapeRoomEngine.Engine.Runtime
room.AddSpace(new Space(room, entrance), null);
}
private PuzzleModuleDescription ChoosePuzzle()
{
// choose a puzzle from the plan and remove it from both the plan and later available puzzles (so it is only chosen once)
var puzzle = _plannedPuzzles.PopRandomElement();
_availablePuzzles.Remove(puzzle);
return puzzle;
}
#endregion
/// <summary>