From 20a0585cc547925066daf24806f56cfc8f5b4de4 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 8 Sep 2019 18:00:55 -0400 Subject: [PATCH] CAiFuncMap: Convert typedefs into type aliases Same thing, but reads a little nicer. --- Runtime/World/CAiFuncMap.hpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Runtime/World/CAiFuncMap.hpp b/Runtime/World/CAiFuncMap.hpp index e9a37f074..625e0602e 100644 --- a/Runtime/World/CAiFuncMap.hpp +++ b/Runtime/World/CAiFuncMap.hpp @@ -1,15 +1,17 @@ #pragma once -#include "RetroTypes.hpp" +#include #include +#include namespace urde { +class CAi; +class CStateManager; + enum class EStateMsg { Activate = 0, Update = 1, Deactivate = 2 }; -class CStateManager; -class CAi; -typedef void (CAi::*CAiStateFunc)(CStateManager&, EStateMsg, float); -typedef bool (CAi::*CAiTriggerFunc)(CStateManager&, float); +using CAiStateFunc = void (CAi::*)(CStateManager&, EStateMsg, float); +using CAiTriggerFunc = bool (CAi::*)(CStateManager&, float); class CAiFuncMap { static const std::vector gkStateNames;