Inventory Manager

The InventoryManager class is responsible for managing inventory-related operations within Unity applications using the Xerial services.

Overview

It provides functionalities to retrieve project NFTs, transfer NFTs, and manage the projects NFT inventory.

Usage

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Xerial;

public class InventoryManager  
{
    // Implementation details
}

Example

// Instantiate InventoryManager
InventoryManager inventoryManager = new InventoryManager();

Constructor

/// Initializes a new instance of the InventoryManager class.

public InventoryManager()
{
    // Initialization of class members
     getNFTs = new GetProjectInventory();
     transferNFTRequester = new TransferNFTRequester();
     inventory = new NFTInventory();
}

Properties

  • getNFTs: An instance of the GetProjectInventory class responsible for fetching project NFTs.

  • transferNFTRequester: An instance of the TransferNFTRequester class responsible for requesting NFT transfers.

  • inventory: An instance of the NFTInventory class responsible for managing the NFT inventory.

Last updated