mirror of https://github.com/AxioDL/metaforce.git
CScriptDamageableTrigger: Mark helper functions as static where applicable
Makes them internally linked.
This commit is contained in:
parent
af61cba8db
commit
ff0d14b52d
|
@ -8,16 +8,17 @@
|
||||||
#include "TCastTo.hpp" // Generated file, do not modify include path
|
#include "TCastTo.hpp" // Generated file, do not modify include path
|
||||||
|
|
||||||
namespace urde {
|
namespace urde {
|
||||||
CActorParameters MakeDamageableTriggerActorParms(const CActorParameters& aParams, const CVisorParameters& vParams) {
|
static CActorParameters MakeDamageableTriggerActorParms(const CActorParameters& aParams, const CVisorParameters& vParams) {
|
||||||
CActorParameters ret = aParams;
|
CActorParameters ret = aParams;
|
||||||
ret.SetVisorParameters(vParams);
|
ret.SetVisorParameters(vParams);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
CMaterialList MakeDamageableTriggerMaterial(CScriptDamageableTrigger::ECanOrbit canOrbit) {
|
static constexpr CMaterialList MakeDamageableTriggerMaterial(CScriptDamageableTrigger::ECanOrbit canOrbit) {
|
||||||
if (canOrbit == CScriptDamageableTrigger::ECanOrbit::Orbit)
|
if (canOrbit == CScriptDamageableTrigger::ECanOrbit::Orbit) {
|
||||||
return CMaterialList(EMaterialTypes::Orbit, EMaterialTypes::Trigger, EMaterialTypes::Immovable,
|
return CMaterialList(EMaterialTypes::Orbit, EMaterialTypes::Trigger, EMaterialTypes::Immovable,
|
||||||
EMaterialTypes::NonSolidDamageable, EMaterialTypes::ExcludeFromLineOfSightTest);
|
EMaterialTypes::NonSolidDamageable, EMaterialTypes::ExcludeFromLineOfSightTest);
|
||||||
|
}
|
||||||
return CMaterialList(EMaterialTypes::Trigger, EMaterialTypes::Immovable, EMaterialTypes::NonSolidDamageable,
|
return CMaterialList(EMaterialTypes::Trigger, EMaterialTypes::Immovable, EMaterialTypes::NonSolidDamageable,
|
||||||
EMaterialTypes::ExcludeFromLineOfSightTest);
|
EMaterialTypes::ExcludeFromLineOfSightTest);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue