示例#1
0
 public PlayerService(IACTWrapper actWrapper, IFFXIVACTPluginWrapper ffxivACTPluginWrapper,
                      WorldService worldService, ClassJobService classJobService)
 {
     _worldService          = worldService;
     _classJobService       = classJobService;
     _actWrapper            = actWrapper;
     _ffxivACTPluginWrapper = ffxivACTPluginWrapper;
 }
        private FFXIVACTPluginWrapper(IACTWrapper actWrapper)
        {
            var plugin = actWrapper.GetACTPlugin("FFXIV_ACT_Plugin",
                                                 "FFXIV Plugin Started.");

            _dataRepository = plugin.GetType().GetProperty("DataRepository")
                              .GetValue(plugin, null);
        }
 public static void Initialize(IACTWrapper actWrapper)
 {
     if (_wrapper != null)
     {
         return;
     }
     lock (Lock)
     {
         if (_wrapper == null)
         {
             _wrapper = new FFXIVACTPluginWrapper(actWrapper);
         }
     }
 }
示例#4
0
 public static void Initialize(IACTWrapper ACT)
 {
     _ACT = ACT;
 }
示例#5
0
 private static void InitWrappers()
 {
     _actWrapper            = new ACTWrapperMock();
     _ffxivACTPluginWrapper = new FFXIVACTPluginWrapperMock();
 }
示例#6
0
 public static void Initialize(IACTWrapper ACT)
 {
     _ACT = ACT;
 }
示例#7
0
 private static void InitWrappers()
 {
     _actWrapper = ACTWrapper.GetInstance();
     FFXIVACTPluginWrapper.Initialize(_actWrapper);
     _ffxivACTPluginWrapper = FFXIVACTPluginWrapper.GetInstance();
 }