mirror of
https://github.com/CraftyBoss/SuperMarioOdysseyOnline.git
synced 2024-11-29 06:33:06 +00:00
29 lines
No EOL
619 B
C++
29 lines
No EOL
619 B
C++
#pragma once
|
|
|
|
#include "Factory.h"
|
|
#include "logger.hpp"
|
|
|
|
namespace al {
|
|
|
|
template <class T>
|
|
LiveActor* createActorFunction(const char *name);
|
|
|
|
template <class T>
|
|
LiveActor *createCustomActor(const char *name)
|
|
{
|
|
return new T(name);
|
|
};
|
|
|
|
class LiveActor;
|
|
|
|
typedef LiveActor* (*createActor)(const char* name);
|
|
|
|
class ActorFactory : public Factory<createActor> {
|
|
public:
|
|
ActorFactory(const char *fName) {
|
|
this->factoryName = fName;
|
|
this->actorTable = nullptr;
|
|
this->factoryCount = 0;
|
|
};
|
|
};
|
|
} |