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); }
public override void Deserialize(QNetworkReader reader) { netId = reader.ReadNetworkId(); stateHash = (int)reader.ReadPackedUInt32(); normalizedTime = reader.ReadSingle(); parameters = reader.ReadBytesAndSize(); }
public override void Deserialize(QNetworkReader reader) { base.Deserialize(reader); PlayerPosition = reader.ReadVector3(); PlayerRotation = reader.ReadQuaternion(); CameraDegrees = reader.ReadSingle(); }
public override void Deserialize(QNetworkReader reader) { base.Deserialize(reader); ServerTime = reader.ReadSingle(); LoopCount = reader.ReadInt16(); }
public override void Deserialize(QNetworkReader reader) { base.Deserialize(reader); Value = reader.ReadSingle(); }