mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 23:47:42 +00:00
CScannableObjectInfo imps
This commit is contained in:
44
Runtime/CScannableObjectInfo.hpp
Normal file
44
Runtime/CScannableObjectInfo.hpp
Normal file
@@ -0,0 +1,44 @@
|
||||
#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:
|
||||
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;
|
||||
public:
|
||||
CScannableObjectInfo(CInputStream&, ResId);
|
||||
ResId GetStringTableId() const;
|
||||
ResId GetScannableObjectId() const;
|
||||
float GetTotalDownloadTime() const;
|
||||
const SBucket& GetBucket(s32) const;
|
||||
bool IsImportant() const;
|
||||
};
|
||||
|
||||
CFactoryFnReturn FScannableObjectInfoFactory(const SObjectTag&, CInputStream&, const CVParamTransfer&);
|
||||
}
|
||||
#endif // __URDE_CSCANNABLEOBJECTINFO_HPP__
|
||||
Reference in New Issue
Block a user