mirror of
https://github.com/nolen777/eagle0.git
synced 2026-07-29 00:55:43 +00:00
Mark action result state helpers nodiscard (#8044)
This commit is contained in:
+2
-2
@@ -23,11 +23,11 @@ void MutatingApplyResult(
|
||||
GameStateW& mutatingGameState,
|
||||
const ActionResultProto& actionResult,
|
||||
const SettingsGetter& settings);
|
||||
auto ApplyResult(
|
||||
[[nodiscard]] auto ApplyResult(
|
||||
GameStateW startingState,
|
||||
const ActionResultProto& actionResult,
|
||||
const SettingsGetter& settings) -> GameStateW;
|
||||
auto ApplyResults(
|
||||
[[nodiscard]] auto ApplyResults(
|
||||
const GameStateW& startingState,
|
||||
const std::vector<ActionResultProto>& actionResults,
|
||||
const SettingsGetter& settings) -> GameStateW;
|
||||
|
||||
@@ -9,7 +9,8 @@
|
||||
|
||||
namespace shardok {
|
||||
|
||||
auto CopyWithExtraUnits(const GameStateW& original, int additionalCount) -> GameStateW;
|
||||
[[nodiscard]] auto CopyWithExtraUnits(const GameStateW& original, int additionalCount)
|
||||
-> GameStateW;
|
||||
|
||||
} // namespace shardok
|
||||
|
||||
|
||||
Reference in New Issue
Block a user