mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-05-14 03:51:22 +00:00
61 lines
1.2 KiB
C++
61 lines
1.2 KiB
C++
#ifndef __URDE_CSCRIPTDOOR_HPP__
|
|
#define __URDE_CSCRIPTDOOR_HPP__
|
|
|
|
#include "CPhysicsActor.hpp"
|
|
|
|
namespace urde
|
|
{
|
|
|
|
class CScriptDoor : public CPhysicsActor
|
|
{
|
|
public:
|
|
enum class EDoorAnimType
|
|
{
|
|
Zero,
|
|
One,
|
|
Two,
|
|
Three
|
|
};
|
|
|
|
float x25c_;
|
|
EDoorAnimType x260_doorState = EDoorAnimType::Zero;
|
|
zeus::CAABox x264_;
|
|
TUniqueId x27c_otherId = kInvalidUniqueId;
|
|
|
|
union
|
|
{
|
|
struct
|
|
{
|
|
bool x2a0_25_ : 1;
|
|
bool x2a0_26_ : 1;
|
|
};
|
|
u32 dummy1 = 0;
|
|
};
|
|
|
|
union
|
|
{
|
|
struct
|
|
{
|
|
bool x2a8_25_ : 1;
|
|
bool x2a8_26_ : 1;
|
|
bool x2a8_27_ : 1;
|
|
bool x2a8_29_ : 1;
|
|
bool x2a8_30_ : 1;
|
|
};
|
|
u32 dummy2 = 0;
|
|
};
|
|
public:
|
|
CScriptDoor(TUniqueId, const std::string& name, const CEntityInfo& info,
|
|
const zeus::CTransform&, CModelData&&, const CActorParameters&,
|
|
const zeus::CVector3f&, const zeus::CAABox&,
|
|
bool active, bool material, bool, float, bool ballDoor);
|
|
|
|
void ForceClosed(CStateManager&);
|
|
void OpenDoor(TUniqueId, CStateManager&);
|
|
void SetDoorAnimation(EDoorAnimType);
|
|
};
|
|
|
|
}
|
|
|
|
#endif // __URDE_CSCRIPTDOOR_HPP__
|