2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2017-05-12 19:54:35 +00:00
|
|
|
|
|
|
|
#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();
|
2017-08-13 05:26:14 +00:00
|
|
|
static int GetArtifactHeadScanIndex(CAssetId scanId);
|
|
|
|
static CAssetId GetArtifactHeadScanFromItemType(CPlayerState::EItemType item);
|
2017-05-13 04:57:24 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|