Пример #1
0
 public void Deserialize(NetDataReader reader)
 {
     netId       = reader.GetPackedUInt();
     playerName  = reader.GetString();
     team        = reader.GetByte();
     score       = reader.GetPackedInt();
     killCount   = reader.GetPackedInt();
     assistCount = reader.GetPackedInt();
     dieCount    = reader.GetPackedInt();
 }
Пример #2
0
 public void Deserialize(NetDataReader reader)
 {
     hashAssetId  = reader.GetPackedInt();
     objectId     = reader.GetPackedUInt();
     connectionId = reader.GetPackedLong();
     position     = new Vector3(reader.GetFloat(), reader.GetFloat(), reader.GetFloat());
     rotation     = Quaternion.Euler(reader.GetFloat(), reader.GetFloat(), reader.GetFloat());
 }
Пример #3
0
    public override void Deserialize(NetDataReader reader)
    {
        int length = reader.GetPackedInt();

        scores = new NetworkGameScore[length];
        for (int i = 0; i < length; ++i)
        {
            var score = new NetworkGameScore();
            score.Deserialize(reader);
            scores[i] = score;
        }
    }
Пример #4
0
 public void Deserialize(NetDataReader reader)
 {
     value = reader.GetPackedInt();
 }