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

CCameraShakeData: Make classes and structs constexpr where applicable

Same behavior, but allows eliminating file-scope initializers needing to
be run on program start.
This commit is contained in:
Lioncash
2020-04-02 21:13:33 -04:00
parent f1e28a1290
commit d240e40a17
4 changed files with 150 additions and 109 deletions

View File

@@ -9,7 +9,7 @@
namespace urde {
namespace {
const CCameraShakeData CameraShaker{0.125f, 0.25f};
constexpr CCameraShakeData CameraShaker{0.125f, 0.25f};
constexpr std::array<u16, 2> kSoundId{SFXwpn_fire_plasma_normal, SFXwpn_fire_plasma_charged};
} // Anonymous namespace