public ItemActionAttempt(ItemActionPrototype action, IEntity item, ItemActionsComponent itemActions) { _action = action; _item = item; _itemActions = itemActions; }
/// <summary> /// Tries to get the item action of the indicated type /// </summary> /// <returns>true if found</returns> public bool TryGet(ItemActionType actionType, out ItemActionPrototype action) { return(_typeToItemAction.TryGetValue(actionType, out action)); }