mirror of
https://github.com/nolen777/eagle0.git
synced 2026-07-28 21:35:42 +00:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c69912c948 |
@@ -46,7 +46,7 @@ class HolyWaveCommandTest : public ::testing::Test {
|
||||
auto actorOff = AddGenericUnit(2, 0, Coords(2, 2));
|
||||
auto otherOff1 = AddGenericUnit(2, 1, Coords(2, 3));
|
||||
auto otherOff2 = AddGenericUnit(2, 2, Coords(2, 1));
|
||||
auto units = vector<Unit>{actorOff, otherOff1, otherOff2};
|
||||
vector<Unit> units{actorOff, otherOff1, otherOff2};
|
||||
auto unitsOff = fbb.CreateVectorOfSortedStructs(&units);
|
||||
|
||||
auto chargeesOff = fbb.CreateVector(vector<UnitId>(6));
|
||||
|
||||
@@ -44,7 +44,7 @@ class LightningBoltCommandTests : public ::testing::Test {
|
||||
auto mageOff = AddGenericUnit(1, 0, Coords(2, 2));
|
||||
auto defenderOff = AddGenericUnit(2, 1, Coords(2, 4));
|
||||
|
||||
auto unitsVec = vector<Unit>{mageOff, defenderOff};
|
||||
vector<Unit> unitsVec{mageOff, defenderOff};
|
||||
auto unitsOff = fbb.CreateVectorOfSortedStructs(&unitsVec);
|
||||
|
||||
GameStateBuilder gsb(fbb);
|
||||
|
||||
@@ -26,7 +26,7 @@ class MoveCommandTest : public ::testing::Test {
|
||||
fbb.ForceDefaults(true);
|
||||
Unit movingUnitOff = AddGenericUnit(1, movingUnitId, startLocation);
|
||||
|
||||
auto vec = vector<Unit>{movingUnitOff};
|
||||
vector<Unit> vec{movingUnitOff};
|
||||
auto u = fbb.CreateVectorOfSortedStructs(&vec);
|
||||
|
||||
// Copy the hex_map to the FlatBuffer
|
||||
@@ -53,7 +53,7 @@ class MoveCommandTest : public ::testing::Test {
|
||||
net::eagle0::shardok::storage::fb::Profession_RANGER,
|
||||
[](net::eagle0::shardok::storage::fb::Unit& /*builder*/) { return; });
|
||||
|
||||
auto vec2 = vector<Unit>{movingUnitOff2, enemyRangerOff2};
|
||||
vector<Unit> vec2{movingUnitOff2, enemyRangerOff2};
|
||||
auto u2 = fbbWithRanger.CreateVectorOfSortedStructs(&vec2);
|
||||
|
||||
// Initialize possible_chargee_ids with 6 elements set to -1
|
||||
@@ -99,7 +99,7 @@ class MoveCommandTest : public ::testing::Test {
|
||||
|
||||
Unit otherUnit = AddGenericUnit(2, hiddenRangerId, Coords(5, 5));
|
||||
|
||||
auto vec3 = vector<Unit>{undeadUnit, otherUnit};
|
||||
vector<Unit> vec3{undeadUnit, otherUnit};
|
||||
auto u3 = fbbUndead.CreateVectorOfSortedStructs(&vec3);
|
||||
|
||||
// Copy the hex_map to the new FlatBuffer
|
||||
|
||||
@@ -28,7 +28,7 @@ class RaiseDeadCommandTest : public ::testing::Test {
|
||||
auto actorOff = AddGenericUnit(5, 0, position);
|
||||
auto otherOff = AddGenericUnit(6, 1, Coords(5, 5));
|
||||
|
||||
auto unitsVec = vector<Unit>{actorOff, otherOff};
|
||||
vector<Unit> unitsVec{actorOff, otherOff};
|
||||
auto unitsOff = fbb.CreateVectorOfSortedStructs(&unitsVec);
|
||||
|
||||
auto mapOff = AddBasicMap(fbb);
|
||||
|
||||
@@ -28,7 +28,7 @@ class ScoutCommandTest : public ::testing::Test {
|
||||
|
||||
auto rangerOff = AddGenericUnit(5, 2, Coords(0, 0));
|
||||
|
||||
auto unitsVec = vector<Unit>{opp1, opp2, rangerOff};
|
||||
vector<Unit> unitsVec{opp1, opp2, rangerOff};
|
||||
auto unitsOff = fbb.CreateVectorOfSortedStructs(&unitsVec);
|
||||
|
||||
auto mapOff = AddBasicMap(fbb);
|
||||
|
||||
Reference in New Issue
Block a user