public bUserStats(Stream s, bool forceFull) { SerializationReader sr = new SerializationReader(s); userId = sr.ReadInt32(); Completeness comp = (Completeness)sr.ReadByte(); completeness = forceFull ? Completeness.Full : comp; status = new bStatusUpdate(s); if (completeness > Completeness.StatusOnly) { rankedScore = sr.ReadInt64(); accuracy = sr.ReadSingle(); playcount = sr.ReadInt32(); totalScore = sr.ReadInt64(); rank = sr.ReadUInt16(); } if (completeness == Completeness.Full) { username = sr.ReadString(); avatarFilename = sr.ReadString(); timezone = sr.ReadByte() - 24; location = sr.ReadString(); } }
public bUserStats(SerializationReader sr) { userId = sr.ReadInt32(); status = new bStatusUpdate(sr); rankedScore = sr.ReadInt64(); accuracy = sr.ReadSingle(); playcount = sr.ReadInt32(); totalScore = sr.ReadInt64(); rank = sr.ReadInt32(); performance = sr.ReadInt16(); }
public bUserStats(int userId, string username, long rankedScore, float accuracy, int playcount, long totalScore, int rank, string avatarFilename, bStatusUpdate status, int timezone, string location) { this.userId = userId; this.username = username; this.rankedScore = rankedScore; this.accuracy = accuracy; this.playcount = playcount; this.totalScore = totalScore; this.rank = rank; this.avatarFilename = avatarFilename; this.status = status; this.timezone = timezone; this.location = location; }