CScriptDamageableTrigger: Mark helper functions as static where applicable

Makes them internally linked.
This commit is contained in:
Lioncash 2020-05-07 07:33:50 -04:00
parent af61cba8db
commit ff0d14b52d
1 changed files with 4 additions and 3 deletions

View File

@ -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);
}