2022-10-09 05:13:17 +00:00
|
|
|
#ifndef _CGSFREELOOK
|
|
|
|
#define _CGSFREELOOK
|
2022-10-06 23:28:42 +00:00
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
class CAnimData;
|
|
|
|
class CStateManager;
|
|
|
|
|
|
|
|
class CGSFreeLook {
|
|
|
|
float x0_delay;
|
|
|
|
int x4_cueAnimId;
|
|
|
|
int x8_loopState; // In, loop, out
|
|
|
|
int xc_gunId;
|
|
|
|
int x10_setId;
|
2022-10-08 22:03:50 +00:00
|
|
|
bool x14_idle : 1;
|
2022-10-06 23:28:42 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
CGSFreeLook();
|
|
|
|
|
|
|
|
int GetSetId() const { return x10_setId; }
|
|
|
|
void SetLoopState(int l) { x8_loopState = l; }
|
|
|
|
int GetLoopState() const { return x8_loopState; }
|
|
|
|
void SetIdle(bool l) { x14_idle = l; }
|
|
|
|
int GetGunId() const { return xc_gunId; }
|
|
|
|
bool Update(CAnimData& data, float dt, CStateManager& mgr);
|
2022-10-09 05:13:17 +00:00
|
|
|
int SetAnim(CAnimData& data, int gunId, int setId, int loopState, CStateManager& mgr,
|
|
|
|
float delay);
|
2022-10-06 23:28:42 +00:00
|
|
|
};
|
|
|
|
CHECK_SIZEOF(CGSFreeLook, 0x18)
|
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _CGSFREELOOK
|