2018-10-06 20:42:33 -07:00
|
|
|
#pragma once
|
2017-05-12 12:54:35 -07:00
|
|
|
|
2019-09-27 19:53:03 -07:00
|
|
|
#include <memory>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "Runtime/CPlayerState.hpp"
|
|
|
|
#include "Runtime/CToken.hpp"
|
|
|
|
#include "Runtime/RetroTypes.hpp"
|
|
|
|
#include "Runtime/Character/CActorLights.hpp"
|
2017-05-12 12:54:35 -07:00
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
namespace metaforce {
|
2017-05-12 12:54:35 -07:00
|
|
|
class CModel;
|
2018-12-07 21:30:43 -08:00
|
|
|
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;
|
2020-04-21 00:22:41 -07:00
|
|
|
bool x28_24_loaded : 1 = false;
|
2018-12-07 21:30:43 -08:00
|
|
|
void UpdateActorLights();
|
2017-05-12 12:54:35 -07:00
|
|
|
|
|
|
|
public:
|
2018-12-07 21:30:43 -08:00
|
|
|
CArtifactDoll();
|
|
|
|
static int GetArtifactHeadScanIndex(CAssetId scanId);
|
|
|
|
static CAssetId 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);
|
|
|
|
void Touch();
|
|
|
|
bool CheckLoadComplete();
|
|
|
|
bool IsLoaded() const { return x28_24_loaded; }
|
2017-05-12 12:54:35 -07:00
|
|
|
};
|
|
|
|
|
2018-12-07 21:30:43 -08:00
|
|
|
} // namespace MP1
|
2021-04-10 01:42:06 -07:00
|
|
|
} // namespace metaforce
|