2016-02-13 01:02:47 -08:00
|
|
|
#ifndef __PSHAG_IFACTORY_HPP__
|
|
|
|
#define __PSHAG_IFACTORY_HPP__
|
2015-08-17 22:54:43 -07:00
|
|
|
|
2015-08-22 23:42:29 -07:00
|
|
|
#include <memory>
|
2015-08-21 18:58:41 -07:00
|
|
|
#include "RetroTypes.hpp"
|
|
|
|
|
2016-03-04 15:04:53 -08:00
|
|
|
namespace urde
|
2015-08-17 22:54:43 -07:00
|
|
|
{
|
2015-08-21 18:58:41 -07:00
|
|
|
class CVParamTransfer;
|
|
|
|
class IObj;
|
2015-08-17 22:54:43 -07:00
|
|
|
|
|
|
|
class IFactory
|
|
|
|
{
|
2015-08-21 18:58:41 -07:00
|
|
|
public:
|
2016-03-28 15:39:56 -07:00
|
|
|
virtual ~IFactory() = default;
|
2015-08-22 23:42:29 -07:00
|
|
|
virtual std::unique_ptr<IObj> Build(const SObjectTag&, const CVParamTransfer&)=0;
|
2015-08-21 18:58:41 -07:00
|
|
|
virtual void BuildAsync(const SObjectTag&, const CVParamTransfer&, IObj**)=0;
|
|
|
|
virtual void CancelBuild(const SObjectTag&)=0;
|
|
|
|
virtual bool CanBuild(const SObjectTag&)=0;
|
2015-08-27 17:11:31 -07:00
|
|
|
virtual const SObjectTag* GetResourceIdByName(const char*) const=0;
|
2015-08-17 22:54:43 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-02-13 01:02:47 -08:00
|
|
|
#endif // __PSHAG_IFACTORY_HPP__
|