Throughout the contracts, with every mint there is often an associated index which is an
u64. The reason for this is that while you may have a single NFT, you may wish to use it across multiple games. These different games may not wish to share a
Playerstat sheet or an
Itemdefinition. This is why all NFTs can have multiple
Playersdefined on top of them using the index as part of the seed. This index allows a single NFT can be used in different ways by different games.
Another common use-case might be to define index 0 of an NFT as an
ItemClass, and index 1 as the
Itemfor a true 1/1
Itemso that you don’t need to have two NFTs to define a single legendary sword. Same could be done with a
It should be noted that if one
ItemPDA describes a
Consumablethat destroys the NFT, and you use the NFT in this way, it will be destroyed, regardless of its other definitions.