public MetaService(ITimeModel timeModel, IUpdateWatcher updateWatcher, float?emulateConnectDelay = null, bool emulateDisconnects = false) { _timeModel = timeModel; _updateWatcher = updateWatcher; _emulateConnectDelay = emulateConnectDelay; _emulateDisconnects = emulateDisconnects; _initTime = _timeModel.RealTimeSinceStartup; float startDelay = emulateConnectDelay ?? 0; _nextDiscTime = _timeModel.RealTimeSinceStartup + startDelay + Random.Range(3f, 7f); }
public TimeModel(IUpdateWatcher updateWatcher) { _updateWatcher = updateWatcher; }
public AssetsModel(AssetsConfiguration assetsConfiguration, IUpdateWatcher updateWatcher) { _updateWatcher = updateWatcher; Links = assetsConfiguration; }
public ApplicationModel(IMetaModel metaModel, ITimeModel timeModel, ILayersModel layersModel, ISimulationModel simulationModel, IAssetsModel assetsModel, IUpdateWatcher updateWatcher) { Data = new ApplicationModelSharedData(); Data.AssetsModel = assetsModel; Data.LayersModel = layersModel; Data.MetaModel = metaModel; Data.SimulationModel = simulationModel; Data.TimeModel = timeModel; Data.UpdateWatcher = updateWatcher; BecomeContext((x) => x.Data = Data); SetNewState(new LoadingLobbyState()); }