コード例 #1
0
ファイル: InventoryEntry.cs プロジェクト: Mechware/Go4AWalk2
    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
        });
    }