Table of Contents

Class IntAttribute

Namespace
Vintagestory.API.Datastructures
Assembly
VintagestoryAPI.dll
public class IntAttribute : ScalarAttribute<int>, IAttribute
Inheritance
IntAttribute
Implements
Inherited Members
Extension Methods

Constructors

IntAttribute()

public IntAttribute()

IntAttribute(int)

public IntAttribute(int value)

Parameters

value int

Methods

Clone()

public IAttribute Clone()

Returns

IAttribute

FromBytes(BinaryReader)

[Obsolete("Use the BinarySpanReader overload.", true)]
public void FromBytes(BinaryReader reader)

Parameters

reader BinaryReader

FromBytes(ref BinarySpanReader)

public void FromBytes(ref BinarySpanReader reader)

Parameters

reader BinarySpanReader

Remarks

Do not call this default implementation when overriding this method, it only exists for backwards compat.

GetAttributeId()

public int GetAttributeId()

Returns

int

ToBytes(BinaryWriter)

public void ToBytes(BinaryWriter stream)

Parameters

stream BinaryWriter