/// <summary> /// Handle keydown / keyup for one of the slots via a keybinding, simulates mousedown/mouseup on it. /// </summary> /// <param name="slot">slot index to to receive the press (0 corresponds to the one labeled 1, 9 corresponds to the one labeled 0)</param> public void HandleHotbarKeybind(byte slot, PointerInputCmdHandler.PointerInputCmdArgs args) { var actionSlot = _slots[slot]; actionSlot.Depress(args.State == BoundKeyState.Down); actionSlot.DrawModeChanged(); }
public void HandleChangeHotbarKeybind(byte hotbar, PointerInputCmdHandler.PointerInputCmdArgs args) { ChangeHotbar(hotbar); }
public ComponentMessage PerformTargetEntityActionMessage(PointerInputCmdHandler.PointerInputCmdArgs args) { return(new PerformTargetEntityItemActionMessage(_action.ActionType, _item.Uid, args.EntityUid)); }
public ComponentMessage PerformTargetPointActionMessage(PointerInputCmdHandler.PointerInputCmdArgs args) { return(new PerformTargetPointItemActionMessage(_action.ActionType, _item.Uid, args.Coordinates)); }
#pragma warning disable 618 public ComponentMessage PerformTargetEntityActionMessage(PointerInputCmdHandler.PointerInputCmdArgs args) #pragma warning restore 618 { return(new PerformTargetEntityItemActionMessage(_action.ActionType, _item, args.EntityUid)); }
#pragma warning disable 618 public ComponentMessage PerformTargetPointActionMessage(PointerInputCmdHandler.PointerInputCmdArgs args) #pragma warning restore 618 { return(new PerformTargetPointItemActionMessage(_action.ActionType, _item, args.Coordinates)); }