Replace() public method

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