mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 21:07:42 +00:00
Make CMain a polymorphic class
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "CAi.hpp"
|
||||
#include "Character/CModelData.hpp"
|
||||
#include "CStateManager.hpp"
|
||||
#include "CStateMachine.hpp"
|
||||
|
||||
namespace urde
|
||||
{
|
||||
@@ -33,6 +34,8 @@ CAiTriggerFunc CAi::GetTrigerFunc(const char* func)
|
||||
{
|
||||
return m_FuncMap->GetTriggerFunc(func);
|
||||
}
|
||||
|
||||
const CStateMachine*CAi::GetStateMachine() const { return x2c8_stateMachine.GetObj(); }
|
||||
void CAi::CreateFuncLookup(CAiFuncMap* funcMap)
|
||||
{
|
||||
m_FuncMap = funcMap;
|
||||
|
||||
Reference in New Issue
Block a user