From 7833b9532bbaca3172f74be33493872fb791eba6 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Mon, 17 Aug 2020 03:07:43 -0400 Subject: [PATCH] CFlaahgra: Add Accept --- Runtime/MP1/World/CFlaahgra.cpp | 2 ++ Runtime/MP1/World/CFlaahgra.hpp | 1 + 2 files changed, 3 insertions(+) diff --git a/Runtime/MP1/World/CFlaahgra.cpp b/Runtime/MP1/World/CFlaahgra.cpp index 8df691b27..1a0b6228f 100644 --- a/Runtime/MP1/World/CFlaahgra.cpp +++ b/Runtime/MP1/World/CFlaahgra.cpp @@ -119,6 +119,8 @@ CFlaahgra::CFlaahgra(TUniqueId uid, std::string_view name, const CEntityInfo& in } } +void CFlaahgra::Accept(IVisitor& visitor) { visitor.Visit(this); } + void CFlaahgra::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, CStateManager& mgr) { switch (msg) { case EScriptObjectMessage::InitializedInArea: { diff --git a/Runtime/MP1/World/CFlaahgra.hpp b/Runtime/MP1/World/CFlaahgra.hpp index ba669b87b..a300accde 100644 --- a/Runtime/MP1/World/CFlaahgra.hpp +++ b/Runtime/MP1/World/CFlaahgra.hpp @@ -193,6 +193,7 @@ public: CFlaahgra(TUniqueId, std::string_view, const CEntityInfo&, const zeus::CTransform&, const CAnimRes&, const CPatternedInfo&, const CActorParameters&, const CFlaahgraData&); + void Accept(IVisitor& visitor) override; void Think(float, CStateManager&) override; void PreThink(float, CStateManager&) override; void AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager&) override;