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
|
||||
|
||||
namespace urde {
|
||||
CActorParameters MakeDamageableTriggerActorParms(const CActorParameters& aParams, const CVisorParameters& vParams) {
|
||||
static CActorParameters MakeDamageableTriggerActorParms(const CActorParameters& aParams, const CVisorParameters& vParams) {
|
||||
CActorParameters ret = aParams;
|
||||
ret.SetVisorParameters(vParams);
|
||||
return ret;
|
||||
}
|
||||
|
||||
CMaterialList MakeDamageableTriggerMaterial(CScriptDamageableTrigger::ECanOrbit canOrbit) {
|
||||
if (canOrbit == CScriptDamageableTrigger::ECanOrbit::Orbit)
|
||||
static constexpr CMaterialList MakeDamageableTriggerMaterial(CScriptDamageableTrigger::ECanOrbit canOrbit) {
|
||||
if (canOrbit == CScriptDamageableTrigger::ECanOrbit::Orbit) {
|
||||
return CMaterialList(EMaterialTypes::Orbit, EMaterialTypes::Trigger, EMaterialTypes::Immovable,
|
||||
EMaterialTypes::NonSolidDamageable, EMaterialTypes::ExcludeFromLineOfSightTest);
|
||||
}
|
||||
return CMaterialList(EMaterialTypes::Trigger, EMaterialTypes::Immovable, EMaterialTypes::NonSolidDamageable,
|
||||
EMaterialTypes::ExcludeFromLineOfSightTest);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue