mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-08-07 14:15:35 +00:00
This member function alters instance state in a few implementations, so it shouldn't be made const. The state manager parameter also shouldn't be const. Retrieved data from the post constructed instance is further modified in some implementations. This removes the constness on this parameter in order to fix more const_cast usages in a follow-up change.
28 lines
939 B
C++
28 lines
939 B
C++
#pragma once
|
|
|
|
#include <string_view>
|
|
|
|
#include "Runtime/World/CActor.hpp"
|
|
#include "Runtime/World/CVisorFlare.hpp"
|
|
|
|
namespace urde {
|
|
|
|
class CScriptVisorFlare : public CActor {
|
|
CVisorFlare xe8_flare;
|
|
bool x11c_notInRenderLast = true;
|
|
|
|
public:
|
|
CScriptVisorFlare(TUniqueId uid, std::string_view name, const CEntityInfo& info, bool active,
|
|
const zeus::CVector3f& pos, CVisorFlare::EBlendMode blendMode, bool, float, float, float, u32, u32,
|
|
std::vector<CVisorFlare::CFlareDef> flares);
|
|
|
|
void Accept(IVisitor& visitor) override;
|
|
void Think(float, CStateManager& stateMgr) override;
|
|
void AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId objId, CStateManager& stateMgr) override;
|
|
void PreRender(CStateManager&, const zeus::CFrustum&) override;
|
|
void AddToRenderer(const zeus::CFrustum&, CStateManager&) override;
|
|
void Render(const CStateManager&) const override;
|
|
};
|
|
|
|
} // namespace urde
|