2022-10-09 05:13:17 +00:00
|
|
|
#ifndef _CRUMBLEMANAGER
|
|
|
|
#define _CRUMBLEMANAGER
|
2022-08-13 02:48:34 +00:00
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
#include "Kyoto/Input/CRumbleGenerator.hpp"
|
|
|
|
|
2022-10-05 00:16:03 +00:00
|
|
|
class CStateManager;
|
|
|
|
class CVector3f;
|
|
|
|
|
2022-08-13 02:48:34 +00:00
|
|
|
class CRumbleManager {
|
2022-10-05 00:16:03 +00:00
|
|
|
public:
|
|
|
|
CRumbleManager();
|
|
|
|
~CRumbleManager();
|
|
|
|
|
2022-10-17 11:10:16 +00:00
|
|
|
short Rumble(CStateManager&, const CVector3f&, ERumbleFxId, float, ERumblePriority);
|
|
|
|
short Rumble(CStateManager&, ERumbleFxId, float, ERumblePriority);
|
|
|
|
|
|
|
|
void StopRumble(short id);
|
2022-11-14 23:08:47 +00:00
|
|
|
void HardStopAll() { x0_rumbleGenerator.HardStopAll(); }
|
2022-10-17 11:10:16 +00:00
|
|
|
void Update(float dt);
|
2022-10-05 00:16:03 +00:00
|
|
|
|
2022-08-13 02:48:34 +00:00
|
|
|
private:
|
|
|
|
CRumbleGenerator x0_rumbleGenerator;
|
|
|
|
};
|
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _CRUMBLEMANAGER
|