2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 21:07:42 +00:00

CCompoundTargetReticle: Move private strings into the cpp file

This is an internal detail, so we don't need to expose this in the
header,
This commit is contained in:
Lioncash
2019-09-12 05:45:51 -04:00
parent d6166ad666
commit 267fd2962a
2 changed files with 23 additions and 20 deletions

View File

@@ -10,13 +10,32 @@
#include "World/CWorld.hpp"
namespace urde {
namespace {
constexpr const char* skCrosshairsReticleAssetName = "CMDL_Crosshairs";
constexpr const char* skOrbitZoneReticleAssetName = "CMDL_OrbitZone";
constexpr const char* skSeekerAssetName = "CMDL_Seeker";
constexpr const char* skLockConfirmAssetName = "CMDL_LockConfirm";
constexpr const char* skTargetFlowerAssetName = "CMDL_TargetFlower";
constexpr const char* skMissileBracketAssetName = "CMDL_MissileBracket";
constexpr const char* skChargeGaugeAssetName = "CMDL_ChargeGauge";
constexpr const char* skChargeBeamTickAssetName = "CMDL_ChargeTickFirst";
constexpr const char* skOuterBeamIconSquareNameBase = "CMDL_BeamSquare";
constexpr const char* skInnerBeamIconName = "CMDL_InnerBeamIcon";
constexpr const char* skLockFireAssetName = "CMDL_LockFIre";
constexpr const char* skLockDaggerAssetName = "CMDL_LockDagger0";
constexpr const char* skGrappleReticleAssetName = "CMDL_Grapple";
constexpr const char* skXRayRingModelName = "CMDL_XRayRetRing";
constexpr const char* skThermalReticleAssetName = "CMDL_ThermalRet";
constexpr const char* skOrbitPointAssetName = "CMDL_OrbitPoint";
float offshoot_func(float f1, float f2, float f3) { return (f1 * 0.5f) + std::sin((f3 - 0.5f) * f2); }
float calculate_premultiplied_overshoot_offset(float f1) { return 2.f * (M_PIF - std::asin(1.f / f1)); }
} // Anonymous namespace
const CTargetReticleRenderState CTargetReticleRenderState::skZeroRenderState(kInvalidUniqueId, 1.f,
zeus::skZero3f, 0.f, 1.f, true);
static float offshoot_func(float f1, float f2, float f3) { return (f1 * 0.5f) + std::sin((f3 - 0.5f) * f2); }
static float calculate_premultiplied_overshoot_offset(float f1) { return 2.f * (M_PIF - std::asin(1.f / f1)); }
CCompoundTargetReticle::SOuterItemInfo::SOuterItemInfo(std::string_view res) : x0_model(g_SimplePool->GetObj(res)) {}
CCompoundTargetReticle::CCompoundTargetReticle(const CStateManager& mgr)