Ejemplo n.º 1
0
 public CalendarEntryViewModelFactory(IViewModelFactory viewModelFactory, ITrackTemplateToSimTrackMapper trackTemplateToSimTrackMapper, IMapsLoaderFactory mapsLoaderFactory, ISimulatorContentController simulatorContentController)
 {
     _viewModelFactory = viewModelFactory;
     _trackTemplateToSimTrackMapper = trackTemplateToSimTrackMapper;
     _simulatorContentController    = simulatorContentController;
     _mapsLoader = mapsLoaderFactory.Create();
 }
Ejemplo n.º 2
0
 public ChampionshipDialogProvider(IWindowService windowService, IViewModelFactory viewModelFactory, ITrackRecordsProvider trackRecordsProvider, IMapsLoaderFactory mapsLoaderFactory, ISettingsProvider settingsProvider)
 {
     _windowService        = windowService;
     _viewModelFactory     = viewModelFactory;
     _trackRecordsProvider = trackRecordsProvider;
     _settingsProvider     = settingsProvider;
     _mapsLoader           = mapsLoaderFactory.Create();
 }
Ejemplo n.º 3
0
 public MapViewController(ISettingsProvider settingsProvider, IMapsLoaderFactory mapsLoaderFactory, ITelemetryViewsSynchronization telemetryViewsSynchronization, ILapColorSynchronization lapColorSynchronization, IDataPointSelectionSynchronization dataPointSelectionSynchronization)
 {
     _fakeDrivers = new Dictionary <string, MapViewDriverInfoFacade>();
     _telemetryViewsSynchronization     = telemetryViewsSynchronization;
     _lapColorSynchronization           = lapColorSynchronization;
     _dataPointSelectionSynchronization = dataPointSelectionSynchronization;
     _mapsLoader     = mapsLoaderFactory.Create(settingsProvider.MapRepositoryPath);
     _selectedPoints = new HashSet <TimedValue>();
 }
 void Start()
 {
     mapsloader        = GameObject.Find("GlobalScripts").GetComponent <MapsLoader>();
     gridloader        = GameObject.Find("GlobalScripts").GetComponent <GridLoader>();
     selectedProp      = proplist [0];
     selectedPropIndex = 0;
     mouse             = GameObject.Find("Mouse");
     player            = GameObject.Find("Player");
     mouse.SetActive(false);
 }
 public ChampionshipCreationController(IWindowService windowService, IViewModelFactory viewModelFactory, ISimulatorContentController simulatorContentController, IMapsLoaderFactory mapsLoaderFactory, ITrackTemplateToSimTrackMapper trackTemplateToSimTrackMapper,
                                       IChampionshipFactory championshipFactory)
 {
     _windowService                 = windowService;
     _viewModelFactory              = viewModelFactory;
     _simulatorContentController    = simulatorContentController;
     _trackTemplateToSimTrackMapper = trackTemplateToSimTrackMapper;
     _championshipFactory           = championshipFactory;
     _mapsLoader = mapsLoaderFactory.Create();
 }
Ejemplo n.º 6
0
        public static void Initialize()
        {
            var sw = Stopwatch.StartNew();

            Styles       = new AvailableStylesDataLoader().Load();
            CreationData = new CreationDataLoader().Load();
            Skills       = new SkillsLoader().Load();
            Mobs         = new MobsLoader().Load();
            Npcs         = new NpcsLoader().Load();
            MobSkills    = new MobSkillsLoader().Load();
            Strings      = new StringLoader().Load();
            Quests       = new QuestsLoader().Load();
            Quizzes      = new QuizzesLoader().Load();
            Maps         = new MapsLoader().Load();
            Items        = new ItemsLoader().Load();
            WzFile?.Dispose();

            sw.Stop();

            Logger.Information("Data loaded in {0}ms.", sw.ElapsedMilliseconds);
        }
 public MapManagementController(TrackMapFromTelemetryFactory trackMapFromTelemetryFactory, MapsLoader mapsLoader, ITrackDtoManipulator trackDtoManipulator)
 {
     _mapsLoader                  = mapsLoader;
     _trackDtoManipulator         = trackDtoManipulator;
     TrackMapFromTelemetryFactory = trackMapFromTelemetryFactory;
 }
Ejemplo n.º 8
0
 public CalendarResultsOverviewViewModel(IViewModelFactory viewModelFactory, IMapsLoaderFactory mapsLoaderFactory)
 {
     _viewModelFactory = viewModelFactory;
     _mapsLoader       = mapsLoaderFactory.Create();
 }
Ejemplo n.º 9
0
 public MapViewController(IMapsLoaderFactory mapsLoaderFactory, ITelemetryViewsSynchronization telemetryViewsSynchronization)
 {
     _fakeDrivers = new Dictionary <string, MapViewDriverInfoFacade>();
     _telemetryViewsSynchronization = telemetryViewsSynchronization;
     _mapsLoader = mapsLoaderFactory.Create();
 }