TypeSerializationHelper.FloatBitsSerialization
A class in Root.Township, the global namespace.
Writes a float packed into a range with a fixed number of bits. Used by SyncFloat with min, max and bits.
- Listed in Global namespace: T to X
- Nested in
TypeSerializationHelper - Inherits or implements
TypeSerializationHelper.TypeSerialization<float>
Constructors
| Member | What it is |
|---|---|
FloatBitsSerialization(float minimum, float maximum, int bits) | Creates a TypeSerializationHelper.FloatBitsSerialization from minimum, maximum and bits. |
Fields
3 private and internal fields
Methods
| Member | What it is |
|---|---|
protected override void Serialize(Type type, ref float value, Stream stream, ChunkVersioning versioning) | Reads or writes the float compressed to bits bits between minimum and maximum. |