|
R-Type
Networked shoot'em up built on Aegis2D
|
TCP messages of the scoreboard (RFC section 3.9): encoding and decoding. More...
#include <cstddef>#include <cstdint>#include <optional>#include <span>#include <string>#include <vector>Go to the source code of this file.
Classes | |
| struct | rtype::ScoreRecord |
One score of a ScoreList. More... | |
Namespaces | |
| namespace | rtype |
| R-Type game code, built on the Aegis2D engine. | |
Functions | |
| bool | rtype::read_list_scores (std::span< const std::byte > message) noexcept |
Tells whether a message is a well-formed ListScores. | |
| std::optional< std::vector< ScoreRecord > > | rtype::read_score_list (std::span< const std::byte > message) |
Reads a ScoreList. | |
| std::vector< std::byte > | rtype::write_list_scores () |
Encodes a ListScores. | |
| std::vector< std::byte > | rtype::write_score_list (std::span< const ScoreRecord > scores) |
Encodes a ScoreList. | |
Variables | |
| constexpr std::size_t | rtype::max_listed_scores = 10 |
Most scores in a ScoreList. | |
TCP messages of the scoreboard (RFC section 3.9): encoding and decoding.