Table of Contents

Class ItemBase

Namespace
Nekoyume.Model.Item
Assembly
Lib9c.dll
[Serializable]
public abstract class ItemBase : IItem, IState
Inheritance
ItemBase
Implements
Derived
Inherited Members

Constructors

ItemBase(Dictionary)

protected ItemBase(Dictionary serialized)

Parameters

serialized Dictionary

ItemBase(ItemBase)

protected ItemBase(ItemBase other)

Parameters

other ItemBase

ItemBase(Row)

protected ItemBase(ItemSheet.Row data)

Parameters

data ItemSheet.Row

ItemBase(SerializationInfo, StreamingContext)

protected ItemBase(SerializationInfo info, StreamingContext _)

Parameters

info SerializationInfo
_ StreamingContext

Fields

Codec

protected static readonly Codec Codec

Field Value

Codec

Properties

ElementalType

public ElementalType ElementalType { get; set; }

Property Value

ElementalType

Grade

public int Grade { get; }

Property Value

int

Id

public int Id { get; }

Property Value

int

ItemSubType

public ItemSubType ItemSubType { get; }

Property Value

ItemSubType

ItemType

public ItemType ItemType { get; }

Property Value

ItemType

Methods

Equals(ItemBase)

protected bool Equals(ItemBase other)

Parameters

other ItemBase

Returns

bool

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetObjectData(SerializationInfo, StreamingContext)

public void GetObjectData(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo
context StreamingContext

Serialize()

public virtual IValue Serialize()

Returns

IValue

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.