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(); }
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()); }
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; } }
public void Deserialize(NetDataReader reader) { value = reader.GetPackedInt(); }