Files
blitzkit/docs/technical/bkrl.md
T

45 lines
707 B
Markdown
Raw Normal View History

2024-04-23 09:57:59 -05:00
# Blitzkit Rating Leaderboard
2024-03-18 18:06:45 -05:00
A straightforward way of storing the entire World of Tanks Blitz rating leaderboard to disk.
2024-03-18 18:06:45 -05:00
```cpp
2024-04-23 09:57:59 -05:00
primary BlitzkitRatingLeaderboard {
2024-03-18 18:06:45 -05:00
utf8"BKRL" magic;
Header header;
primary Body<header> body;
}
Header {
uint16 version; // always 1
Format format;
uint32 count;
}
Format enum<uint8> {
2024-03-25 18:43:23 -05:00
Base,
2024-03-24 22:06:48 -05:00
Superset1,
2024-03-18 18:06:45 -05:00
}
Body<Header header> match<header.format> {
2024-03-25 18:43:23 -05:00
Base {
2024-03-18 18:06:45 -05:00
primary {
uint32 id;
uint16 score;
}[header.count] entries;
};
2024-03-24 22:06:48 -05:00
Superset1 {
2024-03-18 18:06:45 -05:00
primary {
uint32 id;
uint16 score;
uint32 battles;
uint32 wins;
uint32 survived;
2024-03-25 18:43:23 -05:00
uint32 damage;
2024-03-18 18:06:45 -05:00
uint32 kills;
}[header.count] entries;
};
}
```