feat: added loggers to the universe

This commit is contained in:
2025-06-18 17:40:01 +03:00
parent 92357627a1
commit 0047111244
4 changed files with 32 additions and 7 deletions

View File

@@ -15,10 +15,8 @@ namespace Pong;
public static class PongUniverse
{
public static IUniverse GetPongUniverse(bool isServerEnabled, bool isClientEnabled)
public static IUniverse ApplyPongUniverse(Universe universe, bool isServerEnabled, bool isClientEnabled)
{
Universe universe = new();
if (isServerEnabled)
{
LiteNetLibServer server = universe.InstantiateUniverseObject().SetUniverseObject("Server").BehaviourController.AddBehaviour<LiteNetLibServer>();
@@ -118,4 +116,10 @@ public static class PongUniverse
return universe;
}
public static IUniverse GetPongUniverse(bool isServerEnabled, bool isClientEnabled)
{
Universe universe = new();
return ApplyPongUniverse(universe, isServerEnabled, isClientEnabled);
}
}