2016-08-03 23:20:31 +00:00
|
|
|
#ifndef __URDE_CSCANNABLEOBJECTINFO_HPP__
|
|
|
|
#define __URDE_CSCANNABLEOBJECTINFO_HPP__
|
|
|
|
|
|
|
|
#include "RetroTypes.hpp"
|
|
|
|
#include "IFactory.hpp"
|
|
|
|
#include "CToken.hpp"
|
|
|
|
#include "zeus/CVector2i.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
class CScannableObjectInfo
|
|
|
|
{
|
|
|
|
public:
|
2016-08-14 21:38:05 +00:00
|
|
|
enum class EPanelType
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
2016-08-03 23:20:31 +00:00
|
|
|
struct SBucket
|
|
|
|
{
|
|
|
|
ResId x0_texture = -1;
|
|
|
|
float x4_appearanceRange = 0.f;
|
|
|
|
u32 x8_imagePos = 0;
|
|
|
|
zeus::CVector2i xc_size;
|
|
|
|
float x14_interval = 0.f;
|
|
|
|
float x18_fadeDuration = 0.f;
|
|
|
|
SBucket(CInputStream&, u32 version);
|
|
|
|
};
|
|
|
|
|
|
|
|
private:
|
|
|
|
void Load(CInputStream&, u32);
|
|
|
|
ResId x0_scannableObjectId;
|
|
|
|
u32 x4_stringId = -1;
|
|
|
|
float x8_totalDownloadTime = 0.f;
|
|
|
|
u32 xc_category = 0;
|
|
|
|
bool x10_important = false;
|
|
|
|
rstl::reserved_vector<SBucket, 4> x14_buckets;
|
2017-01-31 11:21:45 +00:00
|
|
|
|
2016-08-03 23:20:31 +00:00
|
|
|
public:
|
|
|
|
CScannableObjectInfo(CInputStream&, ResId);
|
2017-05-17 05:04:38 +00:00
|
|
|
ResId GetScannableObjectId() const { return x0_scannableObjectId; }
|
|
|
|
ResId GetStringTableId() const { return x4_stringId; }
|
|
|
|
float GetTotalDownloadTime() const { return x8_totalDownloadTime; }
|
|
|
|
const SBucket& GetBucket(s32 idx) const { return x14_buckets[idx]; }
|
|
|
|
u32 GetCategory() const { return xc_category; }
|
|
|
|
bool IsImportant() const { return x10_important; }
|
2016-08-03 23:20:31 +00:00
|
|
|
};
|
|
|
|
|
2017-01-31 11:21:45 +00:00
|
|
|
CFactoryFnReturn FScannableObjectInfoFactory(const SObjectTag&, CInputStream&, const CVParamTransfer&,
|
|
|
|
CObjectReference* selfRef);
|
2016-08-03 23:20:31 +00:00
|
|
|
}
|
|
|
|
#endif // __URDE_CSCANNABLEOBJECTINFO_HPP__
|