Class FloatAttribute
- Namespace
- Vintagestory.API.Datastructures
- Assembly
- VintagestoryAPI.dll
public class FloatAttribute : ScalarAttribute<float>, IAttribute
- Inheritance
-
FloatAttribute
- Implements
- Inherited Members
- Extension Methods
Constructors
FloatAttribute()
public FloatAttribute()
FloatAttribute(float)
public FloatAttribute(float value)
Parameters
valuefloat
Methods
Clone()
public IAttribute Clone()
Returns
FromBytes(BinaryReader)
[Obsolete("Use the BinarySpanReader overload.", true)]
public void FromBytes(BinaryReader reader)
Parameters
readerBinaryReader
FromBytes(ref BinarySpanReader)
public void FromBytes(ref BinarySpanReader reader)
Parameters
readerBinarySpanReader
Remarks
Do not call this default implementation when overriding this method, it only exists for backwards compat.
GetAttributeId()
public int GetAttributeId()
Returns
ToBytes(BinaryWriter)
public void ToBytes(BinaryWriter stream)
Parameters
streamBinaryWriter
ToJsonToken()
public override string ToJsonToken()
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.