Compare commits

..
Author SHA1 Message Date
admin 25fbbbbff1 Mark game state view diff nodiscard 2026-06-23 17:34:53 -07:00
2 changed files with 4 additions and 4 deletions
@@ -17,7 +17,7 @@ namespace shardok {
using net::eagle0::shardok::api::GameStateView;
using net::eagle0::shardok::api::GameStateViewDiff;
auto MakeGameStateViewDiff(const GameStateView& before, const GameStateView& after)
[[nodiscard]] auto MakeGameStateViewDiff(const GameStateView& before, const GameStateView& after)
-> std::optional<GameStateViewDiff>;
} // namespace shardok
@@ -26,10 +26,10 @@ public:
[[nodiscard]] auto what() const noexcept -> const char* override { return description.c_str(); }
};
[[nodiscard]] auto LoadMap(const std::string& mapName) -> HexMapProto;
auto LoadMap(const std::string& mapName) -> HexMapProto;
[[nodiscard]] auto LoadMapFromBytes(const std::string& mapBytes) -> HexMapProto;
auto LoadMapFromBytes(const std::string& mapBytes) -> HexMapProto;
[[nodiscard]] auto GetMapNames() -> std::vector<std::string>;
auto GetMapNames() -> std::vector<std::string>;
#endif // EAGLE0_SHARDOK_UTIL_MAP_LOADER_HPP