Esempio n. 1
0
 public LanguageService(IGameDataRepository <XIVData.Model.Language> repository,
                        IFFXIVACTPluginWrapper ffxivACTPluginWrapper, ACTConfig actConfig)
 {
     _repository            = repository;
     _languages             = MapToLanguages(_repository.GetAll().ToList());
     _ffxivACTPluginWrapper = ffxivACTPluginWrapper;
     _actConfig             = actConfig;
 }
Esempio n. 2
0
 public PlayerService(IACTWrapper actWrapper, IFFXIVACTPluginWrapper ffxivACTPluginWrapper,
                      WorldService worldService, ClassJobService classJobService)
 {
     _worldService          = worldService;
     _classJobService       = classJobService;
     _actWrapper            = actWrapper;
     _ffxivACTPluginWrapper = ffxivACTPluginWrapper;
 }
Esempio n. 3
0
        public LocationService(IGameDataManager gameDataManager,
                               IFFXIVACTPluginWrapper ffxivACTPluginWrapper)
        {
            _territoryTypeRepository = new GameDataRepository <TerritoryType>(gameDataManager.TerritoryType);
            _placeNameRepository     = new GameDataRepository <XIVData.Model.PlaceName>(gameDataManager.PlaceName);
            _mapRepository           = new GameDataRepository <Map>(gameDataManager.Map);

            _ffxivACTPluginWrapper = ffxivACTPluginWrapper;
        }
 public static void Initialize(IACTWrapper actWrapper)
 {
     if (_wrapper != null)
     {
         return;
     }
     lock (Lock)
     {
         if (_wrapper == null)
         {
             _wrapper = new FFXIVACTPluginWrapper(actWrapper);
         }
     }
 }
Esempio n. 5
0
 private static void InitWrappers()
 {
     _actWrapper            = new ACTWrapperMock();
     _ffxivACTPluginWrapper = new FFXIVACTPluginWrapperMock();
 }
Esempio n. 6
0
 private static void InitWrappers()
 {
     _actWrapper = ACTWrapper.GetInstance();
     FFXIVACTPluginWrapper.Initialize(_actWrapper);
     _ffxivACTPluginWrapper = FFXIVACTPluginWrapper.GetInstance();
 }