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); +}