Class NonFungibleCollectionMaterial
- Namespace
- Nekoyume.Model.Collection
- Assembly
- Lib9c.dll
public class NonFungibleCollectionMaterial : ICollectionMaterial, IBencodable
- Inheritance
-
NonFungibleCollectionMaterial
- Implements
-
IBencodable
- Inherited Members
Constructors
NonFungibleCollectionMaterial()
public NonFungibleCollectionMaterial()
NonFungibleCollectionMaterial(List)
public NonFungibleCollectionMaterial(List serialized)
Parameters
serializedList
Properties
Bencoded
An Bencodex.Types.IValue representation of this object that can be decoded back to instantiate an equal object. The decoded object must be equal to the original in the sense that Equals(T) should be true.
public IValue Bencoded { get; }
Property Value
- IValue
Remarks
Note that the only requirement is that the produced Bencodex.Types.IValue can be decoded back to an equal object. This representation may not be canonical in the sense that additional junk data may be present in an Bencodex.Types.IValue that one may wish to decode and this may be discarded while decoding.
A specific implemnetation may decide to only allow the canonical representation to be decoded.
ItemCount
public int ItemCount { get; set; }
Property Value
ItemId
public int ItemId { get; set; }
Property Value
Level
public int Level { get; set; }
Property Value
NonFungibleId
public Guid NonFungibleId { get; set; }
Property Value
SkillContains
public bool SkillContains { get; set; }
Property Value
Type
public MaterialType Type { get; }
Property Value
Methods
BurnMaterial(Row, Inventory, RequiredMaterial, long)
Burns the specified material from the inventory based on the item type.
public void BurnMaterial(ItemSheet.Row itemRow, Inventory inventory, CollectionSheet.RequiredMaterial materialInfo, long blockIndex)
Parameters
itemRowItemSheet.RowThe ItemSheet.Row object representing the item.
inventoryInventoryThe Inventory object representing the player's inventory.
materialInfoCollectionSheet.RequiredMaterialThe CollectionSheet.RequiredMaterial object representing the material info.
blockIndexlongThe block index where the burn operation is taking place.
Exceptions
- ItemDoesNotExistException
Thrown when the material item does not exist in the inventory.
- InvalidItemTypeException
Thrown when the item type is not supported by NonFungibleCollectionMaterial.