metaforce/Runtime/World/CScriptWorldTeleporter.hpp

51 lines
1.7 KiB
C++
Raw Permalink Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
2016-04-20 21:07:18 +00:00
#include <string_view>
#include "Runtime/RetroTypes.hpp"
#include "Runtime/World/CAnimationParameters.hpp"
#include "Runtime/World/CEntity.hpp"
#include <zeus/CVector3f.hpp>
2016-04-20 21:07:18 +00:00
2021-04-10 08:42:06 +00:00
namespace metaforce {
2016-04-20 21:07:18 +00:00
2018-12-08 05:30:43 +00:00
class CScriptWorldTeleporter : public CEntity {
enum class ETeleporterType { NoTransition, Elevator, Text };
2018-12-08 05:30:43 +00:00
CAssetId x34_worldId;
CAssetId x38_areaId;
ETeleporterType x3c_type = ETeleporterType::NoTransition;
bool x40_24_upElevator : 1 = false;
bool x40_25_inTransition : 1 = false;
bool x40_27_fadeWhite : 1 = false;
2018-12-08 05:30:43 +00:00
float x44_charFadeIn = 0.1f;
float x48_charsPerSecond = 8.0f;
float x4c_showDelay = 0.0f;
CAnimationParameters x50_playerAnim;
zeus::CVector3f x5c_playerScale;
CAssetId x68_platformModel;
zeus::CVector3f x6c_platformScale;
CAssetId x78_backgroundModel;
zeus::CVector3f x7c_backgroundScale;
u16 x88_soundId = -1;
u8 x8a_volume = 0;
u8 x8b_panning = 0;
CAssetId x8c_fontId;
CAssetId x90_stringId;
2016-04-20 21:07:18 +00:00
2017-07-30 11:00:30 +00:00
public:
2021-05-26 14:00:57 +00:00
DEFINE_ENTITY
2018-12-08 05:30:43 +00:00
CScriptWorldTeleporter(TUniqueId, std::string_view, const CEntityInfo&, bool, CAssetId, CAssetId);
CScriptWorldTeleporter(TUniqueId, std::string_view, const CEntityInfo&, bool, CAssetId, CAssetId, u16, u8, u8,
CAssetId, CAssetId, bool, float, float, float);
CScriptWorldTeleporter(TUniqueId, std::string_view, const CEntityInfo&, bool, CAssetId, CAssetId, CAssetId, u32, u32,
const zeus::CVector3f&, CAssetId, const zeus::CVector3f&, CAssetId, const zeus::CVector3f&,
bool, u16, u8, u8);
void Accept(IVisitor&) override;
void AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, CStateManager& mgr) override;
2018-12-08 05:30:43 +00:00
void StartTransition(CStateManager&);
2017-07-30 11:00:30 +00:00
};
2021-04-10 08:42:06 +00:00
} // namespace metaforce