mirror of https://github.com/AxioDL/metaforce.git
CPatterned/ScriptLoader: Convert function typedefs to using aliases
Same thing, but more readable.
This commit is contained in:
parent
d9a9e0f51e
commit
be6b5406a9
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue