示例#1
0
 public ItemActionAttempt(ItemActionPrototype action, IEntity item, ItemActionsComponent itemActions)
 {
     _action      = action;
     _item        = item;
     _itemActions = itemActions;
 }
示例#2
0
 /// <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));
 }