mirror of
https://github.com/MonsterDruide1/OdysseyDecomp
synced 2026-05-10 09:18:01 +00:00
33 lines
930 B
C++
33 lines
930 B
C++
#pragma once
|
|
|
|
#include "Library/LiveActor/LiveActor.h"
|
|
|
|
namespace al {
|
|
class ConveyerKeyKeeper;
|
|
|
|
class ConveyerStep : public LiveActor {
|
|
public:
|
|
ConveyerStep(const char* name);
|
|
|
|
void init(const ActorInitInfo& info) override;
|
|
bool receiveMsg(const SensorMsg* message, HitSensor* other, HitSensor* self) override;
|
|
|
|
void setHost(LiveActor* host);
|
|
void setConveyerKeyKeeper(const ConveyerKeyKeeper* conveyerKeyKeeper, f32 coord);
|
|
void setTransByCoord(f32 coord, bool isForwards);
|
|
void setTransByCoord(f32 coord, bool isForwards, bool isForceReset);
|
|
void setTransAndResetByCoord(f32 coord);
|
|
|
|
void exeWait();
|
|
|
|
private:
|
|
LiveActor* mHost = nullptr;
|
|
const ConveyerKeyKeeper* mConveyerKeyKeeper = nullptr;
|
|
const char* mKeyHitReactionName = nullptr;
|
|
const char* mActionName = nullptr;
|
|
f32 mCurrentCoord = 0.0f;
|
|
f32 mMaxCoord = 0.0f;
|
|
bool mIsExist = true;
|
|
};
|
|
} // namespace al
|