Пример #1
0
 public LootState(Stack <IBotState> botStates, Player player,
                  KeyBindSender keyBindSender)
 {
     _botStates     = botStates;
     _player        = player;
     _keyBindSender = keyBindSender;
     _target        = player.Target;
 }
Пример #2
0
        public InMemoryActionBars(SavedVariablesParser parser, KeyBindSender keyBindSender, ActionsReader actionsReader)
        {
            _parser        = parser;
            _keyBindSender = keyBindSender;
            _actionsReader = actionsReader;

            ActionBarItems = parser.GetByName("actionBars").Fields
                             .ConvertAll(s => new ActionBarItem(s, keyBindSender, _actionsReader))
                             .ToList();
        }
Пример #3
0
        public ActionBarItem(string item, KeyBindSender keyBindSender, ActionsReader actionsReader)
        {
            _keyBindSender = keyBindSender;
            _actionsReader = actionsReader;
            var data = item.Split(';');

            ActionSlot = (ActionSlot)int.Parse(data[0]);

            SpellName   = data[1];
            SpellId     = int.Parse(data[2]);
            SpellCost   = data.Length < 4 ? 0 : int.Parse(data[3]);
            _keyBinding = (KeyBinding)Enum.Parse(typeof(KeyBinding), ActionSlot.ToString(), true);
        }
Пример #4
0
 public FaceTargetState(Stack <IBotState> botStates, Player player,
                        KeyBindSender keyBindSender)
 {
 }