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

CInputGenerator: Make use of std::array where applicable

Allows removing hardcoded array sizes.
This commit is contained in:
Lioncash
2020-03-17 23:23:13 -04:00
parent 6ddbd15cfc
commit e83d5caea6
3 changed files with 32 additions and 24 deletions

View File

@@ -1,15 +1,17 @@
#pragma once
#include <array>
#include "Runtime/GCNTypes.hpp"
#include "Runtime/Input/CInputGenerator.hpp"
#include "Runtime/Input/CRumbleVoice.hpp"
namespace urde {
class CRumbleGenerator {
CRumbleVoice x0_voices[4];
float xc0_periodTime[4];
float xd0_onTime[4];
EMotorState xe0_commandArray[4];
std::array<CRumbleVoice, 4> x0_voices;
std::array<float, 4> xc0_periodTime;
std::array<float, 4> xd0_onTime;
std::array<EMotorState, 4> xe0_commandArray;
bool xf0_24_disabled : 1;
public: