示例#1
0
        public CommandLineProcessor(
            IConsole console,
            ICommandBatchProcessor cbp,
            ICommandsAlias cal,
            ISyntaxAnalyser sa,
            IModuleManager modManager,
            IHookManager hookManager,
            IExternalParserExtension parserExt,
            ICommandLineProcessorSettings settings = null
            )
        {
            _instanceId++;
#if DBG_DI_INSTANCE
            System.Console.Out.WriteLine($"new CLP #{_InstanceId}");
#endif
            Console = console;
            ExternalParserExtension        = parserExt;
            parserExt.CommandLineProcessor = this;
            SyntaxAnalyzer        = sa;
            ModuleManager         = modManager;
            HookManager           = hookManager;
            _settings             = settings;
            CommandBatchProcessor = cbp;
            CommandsAlias         = cal;
        }
示例#2
0
 public RogueAssassinSpells(IHookManager hookManager, IObjectManager objectManager)
 {
     HookManager   = hookManager;
     ObjectManager = objectManager;
     Player        = ObjectManager?.Player;
     NextGCDSpell  = DateTime.Now;
     NextCast      = DateTime.Now;
 }
示例#3
0
 public WarriorFury(IObjectManager objectManager, ICharacterManager characterManager, IHookManager hookManager, IPathfindingHandler pathhandler, DefaultMovementEngine movement)
 {
     ObjectManager      = objectManager;
     CharacterManager   = characterManager;
     HookManager        = hookManager;
     PathfindingHandler = pathhandler;
     MovementEngine     = movement;
     spells             = new WarriorFurySpells(hookManager, objectManager);
 }
示例#4
0
 public RogueAssassination2(IObjectManager objectManager, ICharacterManager characterManager, IHookManager hookManager, IPathfindingHandler pathhandler, DefaultMovementEngine movement)
 {
     ObjectManager      = objectManager;
     CharacterManager   = characterManager;
     HookManager        = hookManager;
     PathfindingHandler = pathhandler;
     MovementEngine     = movement;
     spells             = new RogueAssassinSpells(hookManager, objectManager);
 }
示例#5
0
 public WarriorFurySpells(IHookManager hookManager, IObjectManager objectManager)
 {
     HookManager         = hookManager;
     ObjectManager       = objectManager;
     Player              = ObjectManager.Player;
     IsInBerserkerStance = false;
     NextGCDSpell        = DateTime.Now;
     NextStance          = DateTime.Now;
     NextCast            = DateTime.Now;
 }
示例#6
0
 public PaladinProtection(IObjectManager objectManager, ICharacterManager characterManager, IHookManager hookManager, IPathfindingHandler pathhandler, DefaultMovementEngine movement)
 {
     ObjectManager      = objectManager;
     CharacterManager   = characterManager;
     HookManager        = hookManager;
     PathfindingHandler = pathhandler;
     MovementEngine     = movement;
     Jumped             = false;
     LastTargetCheck    = DateTime.Now;
 }
示例#7
0
 public ModuleManager(
     //ISyntaxAnalyser syntaxAnalyser,
     IModuleCommandManager modComManager,
     IHookManager modHookManager,
     IModuleSet moduleSet
     )
 {
     _modules = moduleSet;
     //_syntaxAnalyzer = syntaxAnalyser;
     ModuleCommandManager = modComManager;  // new ModuleCommandManager(_syntaxAnalyzer, _modules);
     ModuleHookManager    = modHookManager; // new ModuleHookManager(_modules);
 }
示例#8
0
        public InputService()
        {
            Mouse    = new MouseHandler();
            Keyboard = new KeyboardHandler();

            if (ApplicationSettings.Instance.DebugEnabled)
            {
                _hookManager = new DebugHelperHookManager();
            }
            else
            {
                _hookManager = new WinApiHookManager();
            }
        }
示例#9
0
 public DeathknightBlood(IObjectManager objectManager, ICharacterManager characterManager, IHookManager hookManager)
 {
     ObjectManager    = objectManager;
     CharacterManager = characterManager;
     HookManager      = hookManager;
 }
示例#10
0
 /// <summary>
 /// Registers an IHookManager.
 /// </summary>
 /// <param name="containerType">The type of the <see cref="HookContainer" /> the <see cref="IHookManager" /> manages.</param>
 /// <param name="hookMgr">The IHookManager to register.</param>
 public static void RegisterManager(Type containerType, IHookManager hookMgr)
 {
     managers.Add(containerType, hookMgr);
 }
示例#11
0
 public DeathknightBlood(IObjectManager objectManager, IHookManager hookManager)
 {
     ObjectManager = objectManager;
     HookManager   = hookManager;
 }