2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2017-05-12 19:54:35 +00:00
|
|
|
|
2019-09-28 02:53:03 +00:00
|
|
|
#include <memory>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "Runtime/CToken.hpp"
|
|
|
|
#include "Runtime/RetroTypes.hpp"
|
|
|
|
#include "Runtime/Character/CActorLights.hpp"
|
2017-05-12 19:54:35 +00:00
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
namespace metaforce {
|
2017-05-12 19:54:35 +00:00
|
|
|
class CModel;
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace MP1 {
|
2017-05-12 19:54:35 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class CGameCubeDoll {
|
|
|
|
TLockedToken<CModel> x0_model;
|
|
|
|
std::vector<CLight> x8_lights;
|
|
|
|
std::unique_ptr<CActorLights> x18_actorLights;
|
|
|
|
float x1c_fader = 0.f;
|
2020-04-21 07:22:41 +00:00
|
|
|
bool x20_24_loaded : 1 = false;
|
2018-12-08 05:30:43 +00:00
|
|
|
void UpdateActorLights();
|
2017-05-12 19:54:35 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
public:
|
|
|
|
CGameCubeDoll();
|
|
|
|
void Update(float dt);
|
|
|
|
void Draw(float alpha);
|
|
|
|
void Touch();
|
|
|
|
bool CheckLoadComplete();
|
|
|
|
bool IsLoaded() const { return x20_24_loaded; }
|
2017-05-12 19:54:35 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace MP1
|
2021-04-10 08:42:06 +00:00
|
|
|
} // namespace metaforce
|