INNER CODE UNIT · C++
vehBp
TheOpenSpaceProgram/osp-magnum · src/adera/SysExhaustPlume.cpp:182
osp::BlueprintVehicle const& vehBp = *rVehConstr.m_blueprint;
// Get all MCompRockets in the vehicle
for (osp::BlueprintMachine const &mach : vehBp.m_machines[id])
{
// Get part
ActiveEnt const partEnt = rVeh.m_parts[mach.m_partIndex];
// Get machine entity previously reserved by SysVehicle
auto const& machines = rScene.reg_get<osp::active::ACompMachines>(partEnt);
ActiveEnt const machEnt = machines.m_machines[mach.m_protoMachineIndex];
attach_plume_effect(rScene, partEnt, machEnt);
}
}
}
// TODO: workaround. add an actual way to keep time accessible from ActiveScene