metaforce/Runtime/MP1/CArtifactDoll.hpp

40 lines
1.1 KiB
C++
Raw Normal View History

2017-05-12 19:54:35 +00:00
#ifndef __URDE_CARTIFACTDOLL_HPP__
#define __URDE_CARTIFACTDOLL_HPP__
#include "RetroTypes.hpp"
#include "Character/CActorLights.hpp"
#include "CToken.hpp"
2017-05-13 04:57:24 +00:00
#include "CPlayerState.hpp"
2017-05-12 19:54:35 +00:00
namespace urde
{
class CModel;
namespace MP1
{
class CArtifactDoll
{
std::vector<TLockedToken<CModel>> x0_models;
std::vector<CLight> x10_lights;
std::unique_ptr<CActorLights> x20_actorLights;
float x24_fader = 0.f;
bool x28_24_loaded : 1;
void UpdateActorLights();
public:
2017-05-13 04:57:24 +00:00
CArtifactDoll();
static int GetArtifactHeadScanIndex(ResId scanId);
static ResId GetArtifactHeadScanFromItemType(CPlayerState::EItemType item);
static void UpdateArtifactHeadScan(const CStateManager& mgr, float delta);
static void CompleteArtifactHeadScan(const CStateManager& mgr);
void Draw(float alpha, const CStateManager& mgr, bool inArtifactCategory, int selectedArtifact);
void Update(float dt, const CStateManager& mgr);
2017-05-12 19:54:35 +00:00
void Touch();
bool CheckLoadComplete();
2017-05-13 04:57:24 +00:00
bool IsLoaded() const { return x28_24_loaded; }
2017-05-12 19:54:35 +00:00
};
}
}
#endif // __URDE_CARTIFACTDOLL_HPP__