| 1 | #pragma once |
|---|---|
| 2 | |
| 3 | #include "Library/LiveActor/LiveActor.h" |
| 4 | |
| 5 | namespace al { |
| 6 | class SeesawMapParts : public LiveActor { |
| 7 | public: |
| 8 | SeesawMapParts(const char* name); |
| 9 | |
| 10 | void init(const ActorInitInfo& info) override; |
| 11 | bool receiveMsg(const SensorMsg* message, HitSensor* other, HitSensor* self) override; |
| 12 | void appearAndSetStart(); |
| 13 | |
| 14 | void exeWait(); |
| 15 | |
| 16 | private: |
| 17 | sead::Quatf mQuat = sead::Quatf::unit; |
| 18 | sead::Vector3f mSide = sead::Vector3f::ey; |
| 19 | sead::Vector3f mFront = sead::Vector3f::ez; |
| 20 | f32 mRotateDegree = 0.0f; |
| 21 | f32 mRotateSpeed = 0.0f; |
| 22 | f32 mRotateAccelOn = 0.025f; |
| 23 | f32 mRotateAccelOff = 0.0125f; |
| 24 | f32 mMaxDegree = 45.0f; |
| 25 | f32 mWeight = 0.0f; |
| 26 | s32 mRemainingAccelOnFrames = 0; |
| 27 | }; |
| 28 | |
| 29 | static_assert(sizeof(SeesawMapParts) == 0x150); |
| 30 | } // namespace al |
| 31 |