unify Weapon and StationWeapon components
This commit is contained in:
@@ -165,9 +165,9 @@ TEST_CASE("WaveSystem: player stations have weapon set", "[wave]")
|
||||
const Simulation sim(loadConfig(), 42);
|
||||
|
||||
int armedPlayerStations = 0;
|
||||
sim.admin().forEach<StationBody, Faction, StationWeapon>(
|
||||
sim.admin().forEach<StationBody, Faction, Weapon>(
|
||||
[&](entt::entity /*e*/, const StationBody& /*sb*/, const Faction& f,
|
||||
const StationWeapon& w)
|
||||
const Weapon& w)
|
||||
{
|
||||
if (!f.isEnemy)
|
||||
{
|
||||
@@ -185,9 +185,9 @@ TEST_CASE("WaveSystem: enemy stations have weapon set", "[wave]")
|
||||
const Simulation sim(loadConfig(), 42);
|
||||
|
||||
int armedEnemyStations = 0;
|
||||
sim.admin().forEach<StationBody, Faction, StationWeapon>(
|
||||
sim.admin().forEach<StationBody, Faction, Weapon>(
|
||||
[&](entt::entity /*e*/, const StationBody& /*sb*/, const Faction& f,
|
||||
const StationWeapon& w)
|
||||
const Weapon& w)
|
||||
{
|
||||
if (f.isEnemy)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user