Table of Contents

Class FungibleCollectionMaterial

Namespace
Nekoyume.Model.Collection
Assembly
Lib9c.dll
public class FungibleCollectionMaterial : ICollectionMaterial, IBencodable
Inheritance
FungibleCollectionMaterial
Implements
IBencodable
Inherited Members

Constructors

FungibleCollectionMaterial()

public FungibleCollectionMaterial()

FungibleCollectionMaterial(IValue)

public FungibleCollectionMaterial(IValue bencoded)

Parameters

bencoded IValue

FungibleCollectionMaterial(List)

public FungibleCollectionMaterial(List serialized)

Parameters

serialized List

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

int

ItemId

public int ItemId { get; set; }

Property Value

int

Type

public MaterialType Type { get; }

Property Value

MaterialType

Methods

BurnMaterial(Row, Inventory, long)

Burns the material from the inventory based on the given item row, inventory, and block index.

public void BurnMaterial(ItemSheet.Row itemRow, Inventory inventory, long blockIndex)

Parameters

itemRow ItemSheet.Row

The item row from the item sheet.

inventory Inventory

The inventory object.

blockIndex long

The block index.