mirror of https://github.com/PrimeDecomp/prime.git
44 lines
1.1 KiB
C++
44 lines
1.1 KiB
C++
#ifndef _CSCANNABLEOBJECTINFO
|
|
#define _CSCANNABLEOBJECTINFO
|
|
|
|
#include "types.h"
|
|
|
|
#include "Kyoto/Math/CVector2i.hpp"
|
|
#include "Kyoto/SObjectTag.hpp"
|
|
|
|
#include "rstl/reserved_vector.hpp"
|
|
#include "rstl/string.hpp"
|
|
|
|
#include <Kyoto/CFactoryFnReturn.hpp>
|
|
|
|
class CInputStream;
|
|
class CScannableObjectInfo {
|
|
public:
|
|
static const char* GetImagePaneName(uint pane);
|
|
CScannableObjectInfo(CInputStream& in, uint version);
|
|
|
|
CAssetId GetScannableObjectId() const { return x0_scannableObjectId; }
|
|
float GetTotalDownloadTime() const { return x8_totalDownloadTime; }
|
|
|
|
private:
|
|
struct SBucket {
|
|
CAssetId x0_texture;
|
|
float x4_appearanceRange;
|
|
uint x8_imagePos;
|
|
CVector2i xc_size;
|
|
float x14_interval;
|
|
float x18_fadeDuration;
|
|
};
|
|
CAssetId x0_scannableObjectId;
|
|
CAssetId x4_stringId;
|
|
float x8_totalDownloadTime;
|
|
uint xc_category;
|
|
bool x10_important;
|
|
rstl::reserved_vector< SBucket, 4 > x14_buckets;
|
|
};
|
|
|
|
CFactoryFnReturn FScannableObjectInfoFactory(const SObjectTag& tag, CInputStream& in,
|
|
const CVParamTransfer& xfer);
|
|
|
|
#endif // _CSCANNABLEOBJECTINFO
|