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); }
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); } }
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); }
public void Serialize(NetDataWriter writer) { writer.PutPackedInt(value); }