示例#1
0
 public void Serialize(NetDataWriter writer)
 {
     writer.PutPackedUInt(netId);
     writer.Put(playerName);
     writer.Put(team);
     writer.PutPackedInt(score);
     writer.PutPackedInt(killCount);
     writer.PutPackedInt(assistCount);
     writer.PutPackedInt(dieCount);
 }
示例#2
0
 public override void Serialize(NetDataWriter writer)
 {
     if (scores == null)
     {
         writer.PutPackedInt(0);
         return;
     }
     writer.PutPackedInt(scores.Length);
     for (int i = 0; i < scores.Length; ++i)
     {
         scores[i].Serialize(writer);
     }
 }
示例#3
0
 public void Serialize(NetDataWriter writer)
 {
     writer.PutPackedInt(hashAssetId);
     writer.PutPackedUInt(objectId);
     writer.PutPackedLong(connectionId);
     writer.Put(position.x);
     writer.Put(position.y);
     writer.Put(position.z);
     writer.Put(rotation.eulerAngles.x);
     writer.Put(rotation.eulerAngles.y);
     writer.Put(rotation.eulerAngles.z);
 }
示例#4
0
 public void Serialize(NetDataWriter writer)
 {
     writer.PutPackedInt(value);
 }