From a6eb67551d8c00d8316f1ee9172e7cdf41f4e86c Mon Sep 17 00:00:00 2001 From: Syntriax Date: Thu, 23 Oct 2025 22:44:43 +0300 Subject: [PATCH] chore: put monogame behaviours under a parent universe object --- .../Engine.Integration.MonoGame/MonoGameWindow.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Engine.Integration/Engine.Integration.MonoGame/MonoGameWindow.cs b/Engine.Integration/Engine.Integration.MonoGame/MonoGameWindow.cs index 7decf16..dd39082 100644 --- a/Engine.Integration/Engine.Integration.MonoGame/MonoGameWindow.cs +++ b/Engine.Integration/Engine.Integration.MonoGame/MonoGameWindow.cs @@ -19,10 +19,12 @@ public class MonoGameWindow : Game IsMouseVisible = true; Universe = universe ?? new Universe(); - Universe.InstantiateUniverseObject().SetUniverseObject("Window Container") + IUniverseObject monogameParent = Universe.InstantiateUniverseObject().SetUniverseObject("MonoGame"); + + Universe.InstantiateUniverseObject().SetUniverseObject("Window Container", monogameParent) .BehaviourController.AddBehaviour(this); - Universe.InstantiateUniverseObject().SetUniverseObject("Content Loader") + Universe.InstantiateUniverseObject().SetUniverseObject("Content Loader", monogameParent) .BehaviourController.AddBehaviour(); }