Beispiel #1
0
        public uint Read(ref GenericScale data, IInBitStream bitstream)
        {
            var propertyMask = (uint)0;


            if (bitstream.ReadMask())
            {
                var coherenceField = bitstream.ReadVector3f(24, 2400);
                data.Value    = coherenceToUnityConverters.ToUnityfloat3(coherenceField);
                propertyMask |= 0b00000000000000000000000000000001;
            }

            return(propertyMask);
        }
        public void GenericScale(IOutBitStream bitstream, GenericScale data)
        {
            var converted_Value = coherenceToUnityConverters.FromUnityfloat3(data.Value);

            bitstream.WriteVector3f(converted_Value, 24, 2400);
        }
Beispiel #3
0
        private void DeserializeGenericScale(Coherence.Replication.Protocol.Definition.IInBitStream protocolStream)
        {
            var ignored = new GenericScale();

            unityReaders.Read(ref ignored, protocolStream);
        }
        public void GenericScale(IInBitStream bitstream, ref GenericScale data)
        {
            var Value = bitstream.ReadVector3f(24, 2400);

            data.Value = coherenceToUnityConverters.ToUnityfloat3(Value);
        }