CPatterned/ScriptLoader: Convert function typedefs to using aliases

Same thing, but more readable.
This commit is contained in:
Lioncash 2020-03-26 03:09:54 -04:00
parent d9a9e0f51e
commit be6b5406a9
2 changed files with 3 additions and 2 deletions

View File

@ -26,7 +26,8 @@ namespace urde {
class CPatternedInfo;
class CProjectileInfo;
class CPathFindSearch;
typedef void (CPatterned::*CPatternedTryFunc)(CStateManager&, int);
using CPatternedTryFunc = void (CPatterned::*)(CStateManager&, int);
class CPatterned : public CAi {
public:

View File

@ -18,7 +18,7 @@ class CScannableParameters;
class CStateManager;
class CVisorParameters;
typedef CEntity* (*FScriptLoader)(CStateManager& mgr, CInputStream& in, int propCount, const CEntityInfo& info);
using FScriptLoader = CEntity* (*)(CStateManager& mgr, CInputStream& in, int propCount, const CEntityInfo& info);
class ScriptLoader {
public: