Mark player utility results nodiscard

This commit is contained in:
2026-06-23 17:39:24 -07:00
parent 567846156c
commit db09df4576
@@ -15,10 +15,10 @@ namespace shardok {
using PlayerInfoFb = net::eagle0::shardok::storage::fb::PlayerInfo;
using GameState = net::eagle0::shardok::storage::fb::GameState;
auto PlayerIsDefender(const GameState *gameState, int playerId) -> bool;
auto NextPlayerId(const GameState *gameState, PlayerId pid, bool allowUncontrolled = true)
-> PlayerId;
auto AlliedPids(const GameState *gameState, int playerId) -> std::vector<PlayerId>;
[[nodiscard]] auto PlayerIsDefender(const GameState *gameState, int playerId) -> bool;
[[nodiscard]] auto
NextPlayerId(const GameState *gameState, PlayerId pid, bool allowUncontrolled = true) -> PlayerId;
[[nodiscard]] auto AlliedPids(const GameState *gameState, int playerId) -> std::vector<PlayerId>;
} // namespace shardok