TypeSerializationHelper.FloatPrecisionSerialization
A class in Root.Township, the global namespace.
Meant to write a float in a range at a given precision (SyncFloat with min, max and precision), but its Serialize sends a full float and ignores those settings.
Constructors
Fields
3 private and internal fields
| Member | What it is |
|---|
private float maximum | Top of the value range. |
private float minimum | Bottom of the value range. |
private float precision | Wanted precision of the value. |
Methods
| Member | What it is |
|---|
protected override void Serialize(Type type, ref float value, Stream stream, ChunkVersioning versioning) | Reads or writes a full uncompressed float. The range and precision are not used. |
1 private and internal method
| Member | What it is |
|---|
private void SerializePrecision(ref float value, Stream stream) | Writes the float compressed to the range and precision. Nothing calls it. |