Add CScriptPlayerStateChange, one regswap away from matching

Former-commit-id: e9f0009c47
This commit is contained in:
Henrique Gemignani Passos Lima
2022-10-16 16:20:53 +03:00
parent 0907da2026
commit fb17250a02
4 changed files with 157 additions and 6 deletions

View File

@@ -0,0 +1,26 @@
#ifndef _CSCRIPTPLAYERSTATECHANGE
#define _CSCRIPTPLAYERSTATECHANGE
#include "MetroidPrime/CEntity.hpp"
class CScriptPlayerStateChange : public CEntity {
public:
enum EControl { kC_Unfiltered, kC_Filtered };
enum EControlCommandOption { kCCO_Unfiltered, kCCO_Filtered };
private:
int x34_itemType;
int x38_itemCount;
int x3c_itemCapacity;
EControl x40_ctrl;
EControlCommandOption x44_ctrlCmdOpt;
public:
CScriptPlayerStateChange(TUniqueId, const rstl::string&, const CEntityInfo&, bool, int, int, int, EControl,
EControlCommandOption);
void Accept(IVisitor& visit) override;
void AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager&) override;
~CScriptPlayerStateChange();
};
#endif // _CSCRIPTPLAYERSTATECHANGE