public uint Read(ref GenericFieldFloat8 data, IInBitStream bitstream) { var propertyMask = (uint)0; if (bitstream.ReadMask()) { var coherenceField = bitstream.ReadFixedPoint(24, 2400); data.number = coherenceToUnityConverters.ToUnityfloat(coherenceField); propertyMask |= 0b00000000000000000000000000000001; } return(propertyMask); }
public void GenericFieldFloat8(IOutBitStream bitstream, GenericFieldFloat8 data) { var converted_number = coherenceToUnityConverters.FromUnityfloat(data.number); bitstream.WriteFixedPoint(converted_number, 24, 2400); }
private void DeserializeGenericFieldFloat8(Coherence.Replication.Protocol.Definition.IInBitStream protocolStream) { var ignored = new GenericFieldFloat8(); unityReaders.Read(ref ignored, protocolStream); }
public void GenericFieldFloat8(IInBitStream bitstream, ref GenericFieldFloat8 data) { var number = bitstream.ReadFixedPoint(24, 2400); data.number = coherenceToUnityConverters.ToUnityfloat(number); }