Replace() public method

public Replace ( int slot, InvGameItem, item ) : InvGameItem,
slot int
item InvGameItem,
return 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((storage != null) ? storage.Replace(slot, item) : item);
    }
Example #2
0
 protected override InvGameItem Replace(InvGameItem item)
 {
     return(storage == null ? item : storage.Replace(slot, item));
 }