2018-10-06 20:42:33 -07:00
|
|
|
#pragma once
|
2016-09-07 19:01:29 -07:00
|
|
|
|
|
|
|
#include "RetroTypes.hpp"
|
|
|
|
#include "IFactory.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
class CGameHintInfo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
struct SHintLocation
|
|
|
|
{
|
2017-11-14 20:12:13 -08:00
|
|
|
CAssetId x0_mlvlId;
|
|
|
|
CAssetId x4_mreaId;
|
2016-09-07 19:01:29 -07:00
|
|
|
TAreaId x8_areaId = kInvalidAreaId;
|
2017-11-14 20:12:13 -08:00
|
|
|
CAssetId xc_stringId;
|
2016-09-07 19:01:29 -07:00
|
|
|
SHintLocation(CInputStream&, s32);
|
|
|
|
};
|
|
|
|
|
|
|
|
class CGameHint
|
|
|
|
{
|
|
|
|
std::string x0_name;
|
2017-02-17 18:19:50 -08:00
|
|
|
float x10_immediateTime;
|
|
|
|
float x14_normalTime;
|
2017-08-12 22:26:14 -07:00
|
|
|
CAssetId x18_stringId;
|
2017-02-19 01:27:01 -08:00
|
|
|
float x1c_textTime;
|
2016-09-07 19:01:29 -07:00
|
|
|
std::vector<SHintLocation> x20_locations;
|
|
|
|
public:
|
|
|
|
CGameHint(CInputStream&, s32);
|
2016-12-21 18:48:22 -08:00
|
|
|
|
2017-02-17 18:19:50 -08:00
|
|
|
float GetNormalTime() const { return x14_normalTime; }
|
|
|
|
float GetImmediateTime() const { return x10_immediateTime; }
|
2017-02-19 01:27:01 -08:00
|
|
|
float GetTextTime() const { return x1c_textTime; }
|
2017-11-12 22:19:18 -08:00
|
|
|
std::string_view GetName() const { return x0_name; }
|
2017-08-12 22:26:14 -07:00
|
|
|
CAssetId GetStringID() const { return x18_stringId; }
|
2016-12-21 18:48:22 -08:00
|
|
|
const std::vector<SHintLocation>& GetLocations() const { return x20_locations; }
|
2016-09-07 19:01:29 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::vector<CGameHint> x0_hints;
|
|
|
|
public:
|
|
|
|
CGameHintInfo(CInputStream&, s32);
|
2016-09-24 18:58:20 -07:00
|
|
|
const std::vector<CGameHint>& GetHints() const { return x0_hints; }
|
2017-02-17 18:19:50 -08:00
|
|
|
static int FindHintIndex(const char* str);
|
2016-09-07 19:01:29 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
CFactoryFnReturn FHintFactory(const SObjectTag&, CInputStream&, const CVParamTransfer, CObjectReference*);
|
|
|
|
}
|