Add almost matched CGameCubeDoll

Former-commit-id: 25b4d12207
This commit is contained in:
Henrique Gemignani Passos Lima
2022-11-14 04:18:45 +02:00
parent dac4cdd33c
commit 43b1448045
9 changed files with 168 additions and 35 deletions

View File

@@ -26,6 +26,9 @@ public:
void BuildConstantAmbientLighting(const CColor&);
bool BuildAreaLightList(const CStateManager& mgr, const CGameArea& area, const CAABox& bounds);
void BuildDynamicLightList(const CStateManager& mgr, const CAABox& bounds);
void BuildFakeLightList(const rstl::vector<CLight>&, const CColor&);
void ActivateLights() const;
bool GetNeedsRelight() const { return x298_24_dirty == TRUE; }
bool HasShadowLight() const { return x29c_shadowLightArrIdx != -1; }

View File

@@ -0,0 +1,34 @@
#ifndef _CGAMECUBEDOLL
#define _CGAMECUBEDOLL
#include "Kyoto/TToken.hpp"
#include "rstl/single_ptr.hpp"
#include "rstl/vector.hpp"
class CActorLights;
class CModel;
class CLight;
class CGameCubeDoll {
public:
CGameCubeDoll();
~CGameCubeDoll();
void Update(float dt);
void Draw(float alpha);
void Touch();
bool CheckLoadComplete();
bool IsLoaded() const;
private:
CToken x0_model;
rstl::vector< CLight > x8_lights;
rstl::single_ptr< CActorLights > x18_actorLights;
float x1c_fader;
bool x20_24_loaded : 1;
void UpdateActorLights();
};
#endif // _CGAMECUBEDOLL