mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
46 lines
707 B
Markdown
46 lines
707 B
Markdown
# Blitzkit Rating Leaderboard
|
|
|
|
A straightforward way of storing the entire World of Tanks Blitz rating leaderboard to disk.
|
|
|
|
```cpp
|
|
primary BlitzkitRatingLeaderboard {
|
|
utf8"BKRL" magic;
|
|
Header header;
|
|
primary Body<header> body;
|
|
}
|
|
|
|
Header {
|
|
uint16 version; // always 1
|
|
Format format;
|
|
uint32 count;
|
|
}
|
|
|
|
Format enum<uint8> {
|
|
Base,
|
|
Superset1,
|
|
}
|
|
|
|
Body<Header header> match<header.format> {
|
|
Base {
|
|
primary {
|
|
uint32 id;
|
|
uint16 score;
|
|
}[header.count] entries;
|
|
};
|
|
|
|
Superset1 {
|
|
primary {
|
|
uint32 id;
|
|
uint16 score;
|
|
|
|
uint32 battles;
|
|
uint32 wins;
|
|
uint32 survived;
|
|
|
|
uint32 damage;
|
|
uint32 kills;
|
|
}[header.count] entries;
|
|
};
|
|
}
|
|
```
|