2015-08-18 05:54:43 +00:00
|
|
|
#ifndef __RETRO_IFACTORY_HPP__
|
|
|
|
#define __RETRO_IFACTORY_HPP__
|
|
|
|
|
2015-08-23 06:42:29 +00:00
|
|
|
#include <memory>
|
2015-08-22 01:58:41 +00:00
|
|
|
#include "RetroTypes.hpp"
|
|
|
|
|
2015-08-18 05:54:43 +00:00
|
|
|
namespace Retro
|
|
|
|
{
|
2015-08-22 01:58:41 +00:00
|
|
|
class CVParamTransfer;
|
|
|
|
class IObj;
|
2015-08-18 05:54:43 +00:00
|
|
|
|
|
|
|
class IFactory
|
|
|
|
{
|
2015-08-22 01:58:41 +00:00
|
|
|
public:
|
|
|
|
virtual ~IFactory() {}
|
2015-08-23 06:42:29 +00:00
|
|
|
virtual std::unique_ptr<IObj> Build(const SObjectTag&, const CVParamTransfer&)=0;
|
2015-08-22 01:58:41 +00:00
|
|
|
virtual void BuildAsync(const SObjectTag&, const CVParamTransfer&, IObj**)=0;
|
|
|
|
virtual void CancelBuild(const SObjectTag&)=0;
|
|
|
|
virtual bool CanBuild(const SObjectTag&)=0;
|
2015-08-28 00:11:31 +00:00
|
|
|
virtual const SObjectTag* GetResourceIdByName(const char*) const=0;
|
2015-08-18 05:54:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __RETRO_IFACTORY_HPP__
|