コード例 #1
0
        private static float ReadAngle(QNetworkReader reader, CompressionSyncMode compression)
        {
            float result;

            if (compression != CompressionSyncMode.None)
            {
                if (compression != CompressionSyncMode.Low)
                {
                    if (compression != CompressionSyncMode.High)
                    {
                        result = 0f;
                    }
                    else
                    {
                        result = reader.ReadInt16();
                    }
                }
                else
                {
                    result = reader.ReadInt16();
                }
            }
            else
            {
                result = reader.ReadSingle();
            }
            return(result);
        }
コード例 #2
0
 public override void Deserialize(QNetworkReader reader)
 {
     netId          = reader.ReadNetworkId();
     stateHash      = (int)reader.ReadPackedUInt32();
     normalizedTime = reader.ReadSingle();
     parameters     = reader.ReadBytesAndSize();
 }
コード例 #3
0
 public override void Deserialize(QNetworkReader reader)
 {
     base.Deserialize(reader);
     PlayerPosition = reader.ReadVector3();
     PlayerRotation = reader.ReadQuaternion();
     CameraDegrees  = reader.ReadSingle();
 }
コード例 #4
0
 public override void Deserialize(QNetworkReader reader)
 {
     base.Deserialize(reader);
     ServerTime = reader.ReadSingle();
     LoopCount  = reader.ReadInt16();
 }
コード例 #5
0
 public override void Deserialize(QNetworkReader reader)
 {
     base.Deserialize(reader);
     Value = reader.ReadSingle();
 }