mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 21:07:42 +00:00
Implement rumble classes
This commit is contained in:
@@ -8,11 +8,20 @@ namespace urde
|
||||
{
|
||||
class CRumbleGenerator
|
||||
{
|
||||
CRumbleVoice x0_voices[4];
|
||||
float xc0_periodTime[4];
|
||||
float xd0_onTime[4];
|
||||
EMotorState xe0_commandArray[4];
|
||||
bool xf0_24_disabled : 1;
|
||||
public:
|
||||
CRumbleGenerator();
|
||||
void Update(float);
|
||||
~CRumbleGenerator();
|
||||
void Update(float dt);
|
||||
void HardStopAll();
|
||||
void Rumble(const SAdsrData& adsr, float, ERumblePriority prio, EIOPort port);
|
||||
s16 Rumble(const SAdsrData& adsr, float, ERumblePriority prio, EIOPort port);
|
||||
void Stop(s16 id, EIOPort port);
|
||||
bool IsDisabled() const { return xf0_24_disabled; }
|
||||
void SetDisabled(bool disabled) { xf0_24_disabled = disabled; }
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user