mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-07-04 15:55:51 +00:00
CGrappleArm: Move skDependencyNames into BuildSuitDependencyList()
Same behavior, but narrows the visible scope of the array.
This commit is contained in:
parent
d0d6210ccd
commit
0cbfc6d169
@ -63,13 +63,13 @@ void CGrappleArm::FillTokenVector(const std::vector<SObjectTag>& tags, std::vect
|
|||||||
}
|
}
|
||||||
|
|
||||||
void CGrappleArm::BuildSuitDependencyList() {
|
void CGrappleArm::BuildSuitDependencyList() {
|
||||||
static constexpr std::array skDependencyNames{
|
static constexpr std::array dependencyNames{
|
||||||
"PowerSuit_DGRP"sv, "GravitySuit_DGRP"sv, "VariaSuit_DGRP"sv, "PhazonSuit_DGRP"sv,
|
"PowerSuit_DGRP"sv, "GravitySuit_DGRP"sv, "VariaSuit_DGRP"sv, "PhazonSuit_DGRP"sv,
|
||||||
"FusionSuit_DGRP"sv, "FusionSuitG_DGRP"sv, "FusionSuitV_DGRP"sv, "FusionSuitP_DGRP"sv,
|
"FusionSuit_DGRP"sv, "FusionSuitG_DGRP"sv, "FusionSuitV_DGRP"sv, "FusionSuitP_DGRP"sv,
|
||||||
};
|
};
|
||||||
|
|
||||||
x184_grappleArm.Lock();
|
x184_grappleArm.Lock();
|
||||||
for (const auto& name : skDependencyNames) {
|
for (const auto& name : dependencyNames) {
|
||||||
TLockedToken<CDependencyGroup> dgrp = g_SimplePool->GetObj(name);
|
TLockedToken<CDependencyGroup> dgrp = g_SimplePool->GetObj(name);
|
||||||
std::vector<CToken>& depsOut = x19c_suitDeps.emplace_back();
|
std::vector<CToken>& depsOut = x19c_suitDeps.emplace_back();
|
||||||
FillTokenVector(dgrp->GetObjectTagVector(), depsOut);
|
FillTokenVector(dgrp->GetObjectTagVector(), depsOut);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user