Match and link CGSComboFire

Former-commit-id: 9ed61ba6a8
This commit is contained in:
Henrique Gemignani Passos Lima
2022-11-08 01:04:20 +02:00
parent 79c62af420
commit 2561d8cd5f
6 changed files with 136 additions and 3 deletions

View File

@@ -0,0 +1,27 @@
#ifndef _CGSCOMBOFIRE
#define _CGSCOMBOFIRE
class CAnimData;
class CStateManager;
class CGSComboFire {
public:
CGSComboFire();
bool IsComboOver() const { return x10_24_over; }
int GetLoopState() const { return x4_loopState; }
void SetLoopState(int l) { x4_loopState = l; }
void SetIdle(bool i) { x10_25_idle = i; }
int GetGunId() const { return xc_gunId; }
bool Update(CAnimData& data, float dt, CStateManager& mgr);
int SetAnim(CAnimData& data, int gunId, int loopState, CStateManager& mgr, float delay);
private:
float x0_delay;
int x4_loopState; // In, loop, out
int x8_cueAnimId;
int xc_gunId;
bool x10_24_over : 1;
bool x10_25_idle : 1;
};
#endif // _CGSCOMBOFIRE

View File

@@ -0,0 +1,27 @@
#ifndef _CGSFIDGET
#define _CGSFIDGET
#include "rstl/vector.hpp"
class CAnimData;
class CStateManager;
class CToken;
class CGSFidget {
public:
CGSFidget();
bool Update(CAnimData& data, float dt, CStateManager& mgr);
int SetAnim(CAnimData& data, int type, int gunId, int animSet, CStateManager& mgr);
void LoadAnimAsync(CAnimData& data, int type, int gunId, int animSet, CStateManager& mgr);
void UnLoadAnim();
bool IsAnimLoaded() const;
private:
rstl::vector< CToken > x0_anims;
int x10_;
int x14_gunId;
int x18_animSet;
};
#endif // _CGSFIDGET