#include "CStateMachine.hpp" #include "CAi.hpp" namespace urde { CStateMachine::CStateMachine(CInputStream& in) { #if 0 u32 stateCount = in.readUint32Big(); x0_states.reserve(stateCount); for (u32 i = 0 ; i bool { return (strncmp(st.GetName(), state.c_str(), 31) == 0); }); if (it == x0_states.end()) return 0; return it - x0_states.begin(); } const std::vector& CStateMachine::GetStateVector() const { return x0_states; } float CStateMachineState::GetTime() const { return 0.f; } const std::vector* CStateMachineState::GetStateVector() const { if (!x0_machine) return nullptr; return &x0_machine->GetStateVector(); } void CStateMachineState::Setup(const CStateMachine *machine) { x0_machine = machine; x4_state = nullptr; x8_ = 0.f; xc_ = 0.f; x10_= 0.f; } std::string CStateMachineState::GetName() const { return {}; } }