public virtual void OnDeserialize(QNetworkReader reader, bool initialState)
 {
     if (!initialState)
     {
         reader.ReadPackedUInt32();
     }
 }
예제 #2
0
 public override void Deserialize(QNetworkReader reader)
 {
     netId          = reader.ReadNetworkId();
     stateHash      = (int)reader.ReadPackedUInt32();
     normalizedTime = reader.ReadSingle();
     parameters     = reader.ReadBytesAndSize();
 }
 public override void OnDeserialize(QNetworkReader reader, bool initialState)
 {
     if (!IsServer || !QNetworkServer.localClientActive)
     {
         if (!initialState)
         {
             if (reader.ReadPackedUInt32() == 0U)
             {
                 return;
             }
         }
         UnserializeModeTransform(reader, initialState);
         LastSyncTime = Time.time;
     }
 }
예제 #4
0
 public override void Deserialize(QNetworkReader reader) => State = reader.ReadPackedUInt32();
 public override void Deserialize(QNetworkReader reader)
 {
     netId = reader.ReadNetworkId();
     hash  = (int)reader.ReadPackedUInt32();
 }
예제 #6
0
 public override void Deserialize(QNetworkReader reader)
 {
     NetId = reader.ReadNetworkId();
     PlayerControllerId = (short)reader.ReadPackedUInt32();
 }