Пример #1
0
        public uint Read(ref Persistence data, IInBitStream bitstream)
        {
            var propertyMask = (uint)0;


            if (bitstream.ReadMask())
            {
                var coherenceField = bitstream.ReadShortString();
                data.uuid     = coherenceToUnityConverters.ToUnityFixedString64(coherenceField);
                propertyMask |= 0b00000000000000000000000000000001;
            }

            if (bitstream.ReadMask())
            {
                var coherenceField = bitstream.ReadShortString();
                data.expiry   = coherenceToUnityConverters.ToUnityFixedString64(coherenceField);
                propertyMask |= 0b00000000000000000000000000000010;
            }

            return(propertyMask);
        }
Пример #2
0
        public uint Read(ref WorldPositionQuery data, IInBitStream bitstream)
        {
            var propertyMask = (uint)0;


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

            if (bitstream.ReadMask())
            {
                var coherenceField = bitstream.ReadFixedPoint(24, 2400);
                data.radius   = coherenceToUnityConverters.ToUnityfloat(coherenceField);
                propertyMask |= 0b00000000000000000000000000000010;
            }

            return(propertyMask);
        }
Пример #3
0
        public uint Read(ref GenericFieldEntity9 data, IInBitStream bitstream)
        {
            var propertyMask = (uint)0;


            if (bitstream.ReadMask())
            {
                var coherenceField = bitstream.ReadEntity();
                data.Value    = coherenceField;
                propertyMask |= 0b00000000000000000000000000000001;
            }

            return(propertyMask);
        }
Пример #4
0
        public uint Read(ref ArchetypeComponent data, IInBitStream bitstream)
        {
            var propertyMask = (uint)0;


            if (bitstream.ReadMask())
            {
                var coherenceField = bitstream.ReadIntegerRange(15, -9999);
                data.index    = coherenceField;
                propertyMask |= 0b00000000000000000000000000000001;
            }

            return(propertyMask);
        }
Пример #5
0
        public uint Read(ref GenericFieldQuaternion0 data, IInBitStream bitstream)
        {
            var propertyMask = (uint)0;


            if (bitstream.ReadMask())
            {
                var coherenceField = bitstream.ReadUnitRotation();
                data.Value    = coherenceToUnityConverters.ToUnityquaternion(coherenceField);
                propertyMask |= 0b00000000000000000000000000000001;
            }

            return(propertyMask);
        }
Пример #6
0
        public uint Read(ref GenericFieldString4 data, IInBitStream bitstream)
        {
            var propertyMask = (uint)0;


            if (bitstream.ReadMask())
            {
                var coherenceField = bitstream.ReadShortString();
                data.name     = coherenceToUnityConverters.ToUnityFixedString64(coherenceField);
                propertyMask |= 0b00000000000000000000000000000001;
            }

            return(propertyMask);
        }
Пример #7
0
        public uint Read(ref GenericFieldVector3 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);
        }
Пример #8
0
        public uint Read(ref GenericFieldFloat9 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);
        }
Пример #9
0
        public uint Read(ref LocalUser data, IInBitStream bitstream)
        {
            var propertyMask = (uint)0;


            if (bitstream.ReadMask())
            {
                var coherenceField = bitstream.ReadIntegerRange(15, -9999);
                data.localIndex = coherenceField;
                propertyMask   |= 0b00000000000000000000000000000001;
            }

            return(propertyMask);
        }
Пример #10
0
        public uint Read(ref GenericFieldBool9 data, IInBitStream bitstream)
        {
            var propertyMask = (uint)0;


            if (bitstream.ReadMask())
            {
                var coherenceField = bitstream.ReadBool();
                data.number   = coherenceField;
                propertyMask |= 0b00000000000000000000000000000001;
            }

            return(propertyMask);
        }
Пример #11
0
        public uint Read(ref GenericFieldInt9 data, IInBitStream bitstream)
        {
            var propertyMask = (uint)0;


            if (bitstream.ReadMask())
            {
                var coherenceField = bitstream.ReadIntegerRange(15, -9999);
                data.number   = coherenceField;
                propertyMask |= 0b00000000000000000000000000000001;
            }

            return(propertyMask);
        }