Example #1
0
    public InventoryEntryWithID GetIdEntry()
    {
        string AdditionalInfo = "";

        if (Item is ISaveable)
        {
            ISaveable saveable = (ISaveable)Item;
            AdditionalInfo = saveable.GetSaveString();
        }

        return(new InventoryEntryWithID()
        {
            Id = Item.ID,
            Amount = Amount,
            AdditionalInfo = AdditionalInfo
        });
    }