mirror of
https://github.com/nolen777/eagle0.git
synced 2026-07-29 13:15:42 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d5d0730c28 |
@@ -49,7 +49,7 @@ auto AddPlayerInfo(
|
||||
-> flatbuffers::Offset<net::eagle0::shardok::storage::fb::PlayerInfo> {
|
||||
const auto victoryConditionsOffset = fbb.CreateVector(victoryConditions);
|
||||
|
||||
std::vector<net::eagle0::shardok::storage::fb::AlliedPlayer> alliesVec;
|
||||
auto alliesVec = std::vector<net::eagle0::shardok::storage::fb::AlliedPlayer>();
|
||||
for (int pid : allyPids) { alliesVec.emplace_back(pid); }
|
||||
const auto alliesOffset = fbb.CreateVectorOfStructs(alliesVec);
|
||||
|
||||
|
||||
@@ -87,7 +87,7 @@ static auto GameWithUnitTs(
|
||||
endGameCondition.mutate_victory_details(
|
||||
net::eagle0::shardok::storage::fb::VictoryCondition_UNKNOWN_VICTORY_CONDITION);
|
||||
|
||||
std::vector<PlayerId> winningIdsVec{-1, -1, -1, -1, -1, -1, -1, -1, -1, -1};
|
||||
auto winningIdsVec = std::vector<PlayerId>{-1, -1, -1, -1, -1, -1, -1, -1, -1, -1};
|
||||
auto winningIdsOff = fbb.CreateVector(winningIdsVec);
|
||||
auto statusB = net::eagle0::shardok::storage::fb::GameStatusBuilder(fbb);
|
||||
statusB.add_state(
|
||||
|
||||
+1
-1
@@ -49,7 +49,7 @@ class ArcheryCommandFactoryTest : public ::testing::Test {
|
||||
auto def1Offset = AddGenericUnit(1, 1, def1pos);
|
||||
auto def2Offset = AddGenericUnit(1, 2, def2pos);
|
||||
|
||||
auto vec = vector<Unit>{attackerUnit, def1Offset, def2Offset};
|
||||
vector<Unit> vec{attackerUnit, def1Offset, def2Offset};
|
||||
auto u = fbb.CreateVectorOfSortedStructs(&vec);
|
||||
|
||||
fbb.Finish(u);
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ class MeleeCommandFactoryTests : public ::testing::Test {
|
||||
auto actorOff = AddGenericUnit(5, 0, position);
|
||||
auto defenderOff = AddGenericUnit(3, 1, defenderPosition);
|
||||
|
||||
auto unitsVec = std::vector<Unit>{actorOff, defenderOff};
|
||||
std::vector<Unit> unitsVec{actorOff, defenderOff};
|
||||
auto unitsOff = fbb.CreateVectorOfSortedStructs(&unitsVec);
|
||||
|
||||
auto mapOff = AddBasicMap(fbb);
|
||||
|
||||
@@ -32,7 +32,7 @@ class HexMapUtilsTest : public ::testing::Test {
|
||||
auto enemyUnitOffset = AddGenericUnit(enemyPlayerId, 2, Coords(1, 1));
|
||||
auto hiddenEnemyOffset = AddGenericUnit(enemyPlayerId, 3, Coords(1, 2));
|
||||
|
||||
std::vector<Unit> unitsVec{
|
||||
auto unitsVec = std::vector<Unit>{
|
||||
ownUnitOffset,
|
||||
alliedUnitOffset,
|
||||
enemyUnitOffset,
|
||||
|
||||
Reference in New Issue
Block a user