NFTInventory Class

The NFTInventory class is responsible for managing the inventory of NFTs within Unity applications using the Xerial services. It provides functionalities to add NFTs to the inventory.

Usage

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Xerial
{
    public class NFTInventory
    {
        // Implementation details
    }
}

Constructor

/// Initializes a new instance of the NFTInventory class.
public NFTInventory()
{
    // Initialization of class members
    nfts = new List<NFT>();
}

Properties

  • nfts: A list of NFT objects representing the NFTs in the inventory.

Methods

  • AddNFT(NFT nft): Adds the specified NFT to the inventory.

Example

// Instantiate NFTInventory
NFTInventory inventory = new NFTInventory();

// Add NFT to inventory
NFT nft = new NFT(/* Initialize NFT properties */);
inventory.AddNFT(nft);

Last updated