2016-09-08 02:01:29 +00:00
|
|
|
#ifndef __URDE_CGAMEHINTINFO_HPP__
|
|
|
|
#define __URDE_CGAMEHINTINFO_HPP__
|
|
|
|
|
|
|
|
#include "RetroTypes.hpp"
|
|
|
|
#include "IFactory.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
class CGameHintInfo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
struct SHintLocation
|
|
|
|
{
|
|
|
|
ResId x0_mlvlId = -1;
|
|
|
|
ResId x4_mreaId = -1;
|
|
|
|
TAreaId x8_areaId = kInvalidAreaId;
|
|
|
|
ResId xc_stringId = -1;
|
|
|
|
SHintLocation(CInputStream&, s32);
|
|
|
|
};
|
|
|
|
|
|
|
|
class CGameHint
|
|
|
|
{
|
|
|
|
std::string x0_name;
|
2017-02-18 02:19:50 +00:00
|
|
|
float x10_immediateTime;
|
|
|
|
float x14_normalTime;
|
2016-09-08 02:01:29 +00:00
|
|
|
ResId x18_stringId;
|
2017-02-18 02:19:50 +00:00
|
|
|
float x1c_continueDelayTime;
|
2016-09-08 02:01:29 +00:00
|
|
|
std::vector<SHintLocation> x20_locations;
|
|
|
|
public:
|
|
|
|
CGameHint(CInputStream&, s32);
|
2016-12-22 02:48:22 +00:00
|
|
|
|
2017-02-18 02:19:50 +00:00
|
|
|
float GetNormalTime() const { return x14_normalTime; }
|
|
|
|
float GetImmediateTime() const { return x10_immediateTime; }
|
|
|
|
float GetContinueDelayTime() const { return x1c_continueDelayTime; }
|
2016-12-22 02:48:22 +00:00
|
|
|
const std::string& GetName() const { return x0_name; }
|
|
|
|
ResId GetStringID() const { return x18_stringId; }
|
|
|
|
const std::vector<SHintLocation>& GetLocations() const { return x20_locations; }
|
2016-09-08 02:01:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::vector<CGameHint> x0_hints;
|
|
|
|
public:
|
|
|
|
CGameHintInfo(CInputStream&, s32);
|
2016-09-25 01:58:20 +00:00
|
|
|
const std::vector<CGameHint>& GetHints() const { return x0_hints; }
|
2017-02-18 02:19:50 +00:00
|
|
|
static int FindHintIndex(const char* str);
|
2016-09-08 02:01:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
CFactoryFnReturn FHintFactory(const SObjectTag&, CInputStream&, const CVParamTransfer, CObjectReference*);
|
|
|
|
}
|
|
|
|
#endif // __URDE_CGAMEHINTINFO_HPP__
|