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 CPatternedInfo;
|
||||||
class CProjectileInfo;
|
class CProjectileInfo;
|
||||||
class CPathFindSearch;
|
class CPathFindSearch;
|
||||||
typedef void (CPatterned::*CPatternedTryFunc)(CStateManager&, int);
|
|
||||||
|
using CPatternedTryFunc = void (CPatterned::*)(CStateManager&, int);
|
||||||
|
|
||||||
class CPatterned : public CAi {
|
class CPatterned : public CAi {
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -18,7 +18,7 @@ class CScannableParameters;
|
||||||
class CStateManager;
|
class CStateManager;
|
||||||
class CVisorParameters;
|
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 {
|
class ScriptLoader {
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in New Issue