mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 21:47:42 +00:00
New code style refactor
This commit is contained in:
@@ -2,33 +2,28 @@
|
||||
#include "World/CActorParameters.hpp"
|
||||
#include "TCastTo.hpp"
|
||||
|
||||
namespace urde
|
||||
{
|
||||
namespace urde {
|
||||
|
||||
CScriptTargetingPoint::CScriptTargetingPoint(TUniqueId uid, std::string_view name, const CEntityInfo& info,
|
||||
const zeus::CTransform& xf, bool active)
|
||||
: CActor(uid, active, name, info, xf, CModelData::CModelDataNull(), CMaterialList(EMaterialTypes::NoStepLogic),
|
||||
CActorParameters::None(), kInvalidUniqueId)
|
||||
{
|
||||
}
|
||||
CActorParameters::None(), kInvalidUniqueId) {}
|
||||
|
||||
void CScriptTargetingPoint::Accept(IVisitor& visitor) { visitor.Visit(this); }
|
||||
|
||||
void CScriptTargetingPoint::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, CStateManager& mgr)
|
||||
{
|
||||
CActor::AcceptScriptMsg(msg, uid, mgr);
|
||||
void CScriptTargetingPoint::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, CStateManager& mgr) {
|
||||
CActor::AcceptScriptMsg(msg, uid, mgr);
|
||||
|
||||
if (msg == EScriptObjectMessage::Deactivate || msg == EScriptObjectMessage::Activate)
|
||||
CEntity::SendScriptMsgs(EScriptObjectState::Attack, mgr, EScriptObjectMessage::None);
|
||||
if (msg == EScriptObjectMessage::Deactivate || msg == EScriptObjectMessage::Activate)
|
||||
CEntity::SendScriptMsgs(EScriptObjectState::Attack, mgr, EScriptObjectMessage::None);
|
||||
}
|
||||
|
||||
void CScriptTargetingPoint::Think(float dt, CStateManager&)
|
||||
{
|
||||
if (xec_time <= 0.f)
|
||||
return;
|
||||
void CScriptTargetingPoint::Think(float dt, CStateManager&) {
|
||||
if (xec_time <= 0.f)
|
||||
return;
|
||||
|
||||
xec_time -= dt;
|
||||
xec_time -= dt;
|
||||
}
|
||||
|
||||
bool CScriptTargetingPoint::GetLocked() const { return !x20_conns.empty(); }
|
||||
}
|
||||
} // namespace urde
|
||||
|
||||
Reference in New Issue
Block a user