public LootState(Stack <IBotState> botStates, Player player, KeyBindSender keyBindSender) { _botStates = botStates; _player = player; _keyBindSender = keyBindSender; _target = player.Target; }
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(); }
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); }
public FaceTargetState(Stack <IBotState> botStates, Player player, KeyBindSender keyBindSender) { }