diff --git a/ProjectLighthouse/Pages/Debug/RoomVisualizerPage.cshtml b/ProjectLighthouse/Pages/Debug/RoomVisualizerPage.cshtml new file mode 100644 index 00000000..919417da --- /dev/null +++ b/ProjectLighthouse/Pages/Debug/RoomVisualizerPage.cshtml @@ -0,0 +1,28 @@ +@page "/debug/roomVisualizer" +@using LBPUnion.ProjectLighthouse.Helpers +@using LBPUnion.ProjectLighthouse.Types +@using LBPUnion.ProjectLighthouse.Types.Match +@model LBPUnion.ProjectLighthouse.Pages.Debug.RoomVisualizerPage + +@{ + Layout = "Layouts/BaseLayout"; + Model.Title = "Debug - Room Visualizer"; +} + + @* Refresh page every second *@ + +
The page will automatically refresh once a second.
+@RoomHelper.Rooms.Count rooms
+ +@foreach (Room room in RoomHelper.Rooms) +{ +@room.Players.Count players, State is @room.State
+Slot type: @room.Slot.SlotType, slot id: @room.Slot.SlotId
+ @foreach (User player in room.Players) + { +