2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-10 01:07:43 +00:00

CGunWeapon: Make use of std::array where applicable

Makes the arrays strongly typed and also allows us to dehardcode some
loop boundary constants.
This commit is contained in:
Lioncash
2019-10-19 00:06:25 -04:00
parent c36e6a85b9
commit c228baf5f7
3 changed files with 93 additions and 53 deletions

View File

@@ -1,5 +1,6 @@
#pragma once
#include <array>
#include <memory>
#include <vector>
@@ -54,7 +55,7 @@ public:
enum class EFrozenFxType { None, Frozen, Thawed };
protected:
static const s32 skShootAnim[2];
static const std::array<s32, 2> skShootAnim;
zeus::CVector3f x4_scale;
std::optional<CModelData> x10_solidModelData;
std::optional<CModelData> x60_holoModelData;