2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-08-05 12:15:35 +00:00
metaforce/Runtime/World/CScriptGrapplePoint.hpp
Lioncash cabbfcc320 CActor: Make AddToRenderer() non-const
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.
2020-04-06 00:52:10 -04:00

28 lines
946 B
C++

#pragma once
#include <string_view>
#include "Runtime/World/CActor.hpp"
#include "Runtime/World/CGrappleParameters.hpp"
#include <zeus/CAABox.hpp>
namespace urde {
class CScriptGrapplePoint : public CActor {
zeus::CAABox xe8_touchBounds;
CGrappleParameters x100_parameters;
public:
CScriptGrapplePoint(TUniqueId uid, std::string_view name, const CEntityInfo& info, const zeus::CTransform& transform,
bool active, const CGrappleParameters& params);
void Accept(IVisitor& visitor) override;
void AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager&) override;
void Think(float, CStateManager&) override;
void Render(const CStateManager&) const override;
std::optional<zeus::CAABox> GetTouchBounds() const override;
void AddToRenderer(const zeus::CFrustum&, CStateManager&) override;
const CGrappleParameters& GetGrappleParameters() const { return x100_parameters; }
};
} // namespace urde