2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 00:27:42 +00:00

Initial CCollisionActor imps, minor cleanup

This commit is contained in:
2017-02-20 19:29:28 -08:00
parent 50fe6d34ab
commit fc51cd38aa
17 changed files with 444 additions and 26 deletions

View File

@@ -1,12 +1,55 @@
#ifndef __URDE_CSCRIPTPLAYERACTOR_HPP__
#define __URDE_CSCRIPTPLAYERACTOR_HPP__
#include "CPhysicsActor.hpp"
#include "CScriptActor.hpp"
namespace urde
{
class CScriptPlayerActor : CPhysicsActor
class CScriptPlayerActor : public CScriptActor
{
CAnimRes x2e8_;
u32 x304_;
s32 x308_ = -1;
s32 x30c_ = -1;
s32 x310_ = -1;
u32 x314_ = 0;
u32 x318_ = 0;
u32 x31c_ = 0;
u32 x320_ = 0;
u32 x324_ = 0;
u8 x334_ = 0;
u8 x344_ = 0;
u32 x348_ = 0;
float x34c_ = 0.f;
u32 x350_;
union
{
struct
{
bool x354_24_ : 1;
bool x354_25_ : 1;
bool x354_26_ : 1;
bool x354_27_ : 1;
bool x354_28_ : 1;
bool x354_29_ : 1;
bool x354_30_ : 1;
bool x354_31_ : 1;
bool x355_24_ : 1;
};
u8 x355_dummy = 0;
};
public:
CScriptPlayerActor(TUniqueId, const std::string&, const CEntityInfo&, const zeus::CTransform&, const CAnimRes&,
CModelData&&, const zeus::CAABox&, bool, const CMaterialList&, float, float,
const CHealthInfo&, const CDamageVulnerability&, const CActorParameters&, bool, bool, u32, u32);
void Think(float, CStateManager &);
void AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager &);
void SetActive(bool active);
void PreRender(CStateManager &, const zeus::CFrustum &);
void AddToRenderer(const zeus::CFrustum &, const CStateManager &) const;
void Render(const CStateManager &mgr) const;
};
}