refactor: network implementations switched to universe objects

This commit is contained in:
2025-05-25 13:34:45 +03:00
parent 0da5ac6f57
commit 12f4950ffb
9 changed files with 82 additions and 49 deletions

View File

@@ -2,6 +2,7 @@ using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Syntriax.Engine.Core;
namespace Syntriax.Engine.Network;
@@ -151,6 +152,6 @@ public class NetworkManager : UniverseObject, INetworkManager
protected override void OnEnteringUniverse(IUniverse universe)
{
_networkEntityCollector.Assign(universe);
NetworkCommunicator = BehaviourController.GetRequiredBehaviourInParent<INetworkCommunicator>();
NetworkCommunicator = this.GetRequiredUniverseObjectInParent<INetworkCommunicator>();
}
}