mirror of https://github.com/PrimeDecomp/prime.git
31 lines
749 B
C++
31 lines
749 B
C++
#ifndef _CGAMELIGHT
|
|
#define _CGAMELIGHT
|
|
|
|
#include "MetroidPrime/CActor.hpp"
|
|
|
|
#include "Kyoto/Graphics/CLight.hpp"
|
|
|
|
class CGameLight : public CActor {
|
|
public:
|
|
CGameLight(TUniqueId uid, TAreaId aid, bool active, const rstl::string& name,
|
|
const CTransform4f& xf, TUniqueId parentId, const CLight& light, uint sourceId,
|
|
uint priority, float lifeTime);
|
|
~CGameLight();
|
|
|
|
void SetLight(const CLight& light);
|
|
CLight GetLight() const;
|
|
void Think(float dt, CStateManager& mgr);
|
|
void Accept(IVisitor& visitor);
|
|
void SetLightPriorityAndId();
|
|
|
|
private:
|
|
TUniqueId xe8_parentId;
|
|
CLight xec_light;
|
|
uint x13c_lightId;
|
|
uint x140_priority;
|
|
float x144_lifeTime;
|
|
};
|
|
CHECK_SIZEOF(CGameLight, 0x148)
|
|
|
|
#endif // _CGAMELIGHT
|