increase room diversity, improve ui

This commit is contained in:
2023-05-13 13:06:08 +02:00
parent ec094f410f
commit 033989a85e
21 changed files with 736 additions and 83 deletions

View File

@@ -33,6 +33,16 @@ namespace EscapeRoomEngine.Engine.Runtime.Utilities
public static class ListExtensions
{
/// <summary>
/// remove the first element from a list and return it.
/// </summary>
public static T Pop<T>(this List<T> list)
{
var element = list[0];
list.RemoveAt(0);
return element;
}
/// <summary>
/// remove a random element from a list and return it.
/// </summary>