mirror of https://github.com/AxioDL/metaforce.git
CAiFuncMap: Convert typedefs into type aliases
Same thing, but reads a little nicer.
This commit is contained in:
parent
2f06fcba0a
commit
20a0585cc5
|
@ -1,15 +1,17 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "RetroTypes.hpp"
|
#include <string>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
namespace urde {
|
namespace urde {
|
||||||
|
class CAi;
|
||||||
|
class CStateManager;
|
||||||
|
|
||||||
enum class EStateMsg { Activate = 0, Update = 1, Deactivate = 2 };
|
enum class EStateMsg { Activate = 0, Update = 1, Deactivate = 2 };
|
||||||
|
|
||||||
class CStateManager;
|
using CAiStateFunc = void (CAi::*)(CStateManager&, EStateMsg, float);
|
||||||
class CAi;
|
using CAiTriggerFunc = bool (CAi::*)(CStateManager&, float);
|
||||||
typedef void (CAi::*CAiStateFunc)(CStateManager&, EStateMsg, float);
|
|
||||||
typedef bool (CAi::*CAiTriggerFunc)(CStateManager&, float);
|
|
||||||
|
|
||||||
class CAiFuncMap {
|
class CAiFuncMap {
|
||||||
static const std::vector<std::string> gkStateNames;
|
static const std::vector<std::string> gkStateNames;
|
||||||
|
|
Loading…
Reference in New Issue