mirror of
https://github.com/nolen777/eagle0.git
synced 2026-07-28 22:55:41 +00:00
Mark player utility results nodiscard
This commit is contained in:
@@ -15,10 +15,10 @@ namespace shardok {
|
|||||||
using PlayerInfoFb = net::eagle0::shardok::storage::fb::PlayerInfo;
|
using PlayerInfoFb = net::eagle0::shardok::storage::fb::PlayerInfo;
|
||||||
using GameState = net::eagle0::shardok::storage::fb::GameState;
|
using GameState = net::eagle0::shardok::storage::fb::GameState;
|
||||||
|
|
||||||
auto PlayerIsDefender(const GameState *gameState, int playerId) -> bool;
|
[[nodiscard]] auto PlayerIsDefender(const GameState *gameState, int playerId) -> bool;
|
||||||
auto NextPlayerId(const GameState *gameState, PlayerId pid, bool allowUncontrolled = true)
|
[[nodiscard]] auto
|
||||||
-> PlayerId;
|
NextPlayerId(const GameState *gameState, PlayerId pid, bool allowUncontrolled = true) -> PlayerId;
|
||||||
auto AlliedPids(const GameState *gameState, int playerId) -> std::vector<PlayerId>;
|
[[nodiscard]] auto AlliedPids(const GameState *gameState, int playerId) -> std::vector<PlayerId>;
|
||||||
|
|
||||||
} // namespace shardok
|
} // namespace shardok
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user