public Replace ( InvBaseItem, slot, InvGameItem, item ) : InvGameItem, | ||
slot | InvBaseItem, | |
item | InvGameItem, | |
Результат | InvGameItem, |
/// <summary> /// Replace the observed item with the specified value. Should return the item that was replaced. /// </summary> override protected InvGameItem Replace(InvGameItem item) { return((equipment != null) ? equipment.Replace(slot, item) : item); }
protected override InvGameItem Replace(InvGameItem item) { return((!(equipment != null)) ? item : equipment.Replace(slot, item)); }