From 759f6e6b3ac9661a65f5977b8308a32bf7502e25 Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Tue, 17 Oct 2023 14:51:59 -0700 Subject: [PATCH] Add missing cpp files Former-commit-id: ddd7a79cc02d43d6e7d9f790ffb36326bfacd452 --- include/MetroidPrime/Factories/CStateMachineFactory.hpp | 9 +++++++++ src/MetroidPrime/Factories/CStateMachineFactory.cpp | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 include/MetroidPrime/Factories/CStateMachineFactory.hpp create mode 100644 src/MetroidPrime/Factories/CStateMachineFactory.cpp diff --git a/include/MetroidPrime/Factories/CStateMachineFactory.hpp b/include/MetroidPrime/Factories/CStateMachineFactory.hpp new file mode 100644 index 00000000..46ca0821 --- /dev/null +++ b/include/MetroidPrime/Factories/CStateMachineFactory.hpp @@ -0,0 +1,9 @@ +#ifndef _CSTATEMACHINEFACTORY +#define _CSTATEMACHINEFACTORY + +#include + +CFactoryFnReturn FAiFiniteStateMachineFactory(const SObjectTag& tag, CInputStream& in, + const CVParamTransfer& xfer); + +#endif // _CSTATEMACHINEFACTORY diff --git a/src/MetroidPrime/Factories/CStateMachineFactory.cpp b/src/MetroidPrime/Factories/CStateMachineFactory.cpp new file mode 100644 index 00000000..7f1fa710 --- /dev/null +++ b/src/MetroidPrime/Factories/CStateMachineFactory.cpp @@ -0,0 +1,9 @@ +#include +#include + +#include + +#pragma inline_max_size(250) +CFactoryFnReturn FAiFiniteStateMachineFactory(const SObjectTag& tag, CInputStream& in, const CVParamTransfer& xfer) { + return rs_new CStateMachine(in); +}