2016-04-20 21:07:18 +00:00
|
|
|
#ifndef __CSCRIPTWORLDTELEPORTER_HPP__
|
|
|
|
#define __CSCRIPTWORLDTELEPORTER_HPP__
|
|
|
|
|
|
|
|
#include "CEntity.hpp"
|
2017-08-08 22:12:14 +00:00
|
|
|
#include "CAnimationParameters.hpp"
|
2017-07-30 11:00:30 +00:00
|
|
|
#include "zeus/CVector3f.hpp"
|
2016-04-20 21:07:18 +00:00
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
2017-07-30 11:00:30 +00:00
|
|
|
class CScriptWorldTeleporter : public CEntity
|
2016-04-20 21:07:18 +00:00
|
|
|
{
|
2017-08-08 22:12:14 +00:00
|
|
|
enum class ETeleporterType
|
|
|
|
{
|
|
|
|
NoTransition,
|
|
|
|
Elevator,
|
|
|
|
Text
|
|
|
|
};
|
|
|
|
|
2017-08-13 05:26:14 +00:00
|
|
|
CAssetId x34_worldId;
|
|
|
|
CAssetId x38_areaId;
|
2017-08-08 22:12:14 +00:00
|
|
|
ETeleporterType x3c_type = ETeleporterType::NoTransition;
|
2017-07-30 11:00:30 +00:00
|
|
|
union
|
|
|
|
{
|
|
|
|
struct
|
|
|
|
{
|
2017-08-08 22:12:14 +00:00
|
|
|
bool x40_24_upElevator : 1;
|
|
|
|
bool x40_25_inTransition : 1;
|
|
|
|
bool x40_27_fadeWhite : 1;
|
2017-07-30 11:00:30 +00:00
|
|
|
};
|
|
|
|
u8 _dummy = 0;
|
|
|
|
};
|
2016-04-20 21:07:18 +00:00
|
|
|
|
2017-08-08 22:12:14 +00:00
|
|
|
float x44_charFadeIn = 0.1f;
|
|
|
|
float x48_charsPerSecond = 8.0f;
|
|
|
|
float x4c_showDelay = 0.0f;
|
|
|
|
CAnimationParameters x50_playerAnim;
|
|
|
|
zeus::CVector3f x5c_playerScale;
|
2017-08-13 05:26:14 +00:00
|
|
|
CAssetId x68_platformModel;
|
2017-08-08 22:12:14 +00:00
|
|
|
zeus::CVector3f x6c_platformScale;
|
2017-08-13 05:26:14 +00:00
|
|
|
CAssetId x78_backgroundModel;
|
2017-08-08 22:12:14 +00:00
|
|
|
zeus::CVector3f x7c_backgroundScale;
|
|
|
|
u16 x88_soundId = -1;
|
|
|
|
u8 x8a_volume = 0;
|
|
|
|
u8 x8b_panning = 0;
|
2017-08-13 05:26:14 +00:00
|
|
|
CAssetId x8c_fontId;
|
|
|
|
CAssetId x90_stringId;
|
2017-07-30 11:00:30 +00:00
|
|
|
public:
|
2017-11-13 06:19:18 +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,
|
2017-08-13 05:26:14 +00:00
|
|
|
CAssetId, bool, float, float, float);
|
2017-11-13 06:19:18 +00:00
|
|
|
CScriptWorldTeleporter(TUniqueId, std::string_view, const CEntityInfo&, bool, CAssetId, CAssetId, CAssetId, u32, u32,
|
2017-08-13 05:26:14 +00:00
|
|
|
const zeus::CVector3f&, CAssetId, const zeus::CVector3f&, CAssetId, const zeus::CVector3f&, bool,
|
2017-08-08 22:12:14 +00:00
|
|
|
u16, u8, u8);
|
|
|
|
|
|
|
|
void Accept(IVisitor&);
|
|
|
|
void AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, CStateManager& mgr);
|
|
|
|
void StartTransition(CStateManager&);
|
2017-07-30 11:00:30 +00:00
|
|
|
};
|
2016-04-20 21:07:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __CSCRIPTWORLDTELEPORTER_HPP__
|