private void startBoot() { updHostname(); SessionStart?.Invoke(); _osEntity = _plexgate.New <OSEntity>(); _plexgate.GetLayer(LayerType.Main).AddEntity(_osEntity); }
internal void OnReady() { if (_osEntity != null) { _osEntity.Dispose(); _osEntity = null; } startBoot(); }
internal void Shutdown() { if (_osEntity != null) { SessionEnd?.Invoke(); _osLayer.RemoveEntity(_osEntity); _osEntity.Dispose(); _osEntity = null; } _splash.Reset(); if (_localBackend != null) { if (_server.Connected) { _server.Disconnect(); } _localBackend.Shutdown(""); } }