protected override void OnCreate()
        {
            base.OnCreate();

            _session = OnlineService.OnlineInterface?.SessionInterface;

            _session.RegisterNetMessageReceiver <NetMessageInputSubmission>(OnNetMessageInputSubmission);
            _constructTickSystem = World.GetOrCreateSystem <ConstructSimulationTickSystem>();
        }
Ejemplo n.º 2
0
        protected override void OnCreate()
        {
            base.OnCreate();

            _session = OnlineService.ServerInterface.SessionServerInterface;
            _session.RegisterNetMessageReceiver <NetMessageRequestSimSync>(OnSimSyncRequest);

            _simWorldSystem      = World.GetOrCreateSystem <SimulationWorldSystem>();
            _tickSystem          = World.GetOrCreateSystem <TickSimulationSystem>();
            _constructTickSystem = World.GetOrCreateSystem <ConstructSimulationTickSystem>();
        }