2016-02-13 09:02:47 +00:00
|
|
|
#ifndef __PSHAG_IFACTORY_HPP__
|
|
|
|
#define __PSHAG_IFACTORY_HPP__
|
2015-08-18 05:54:43 +00:00
|
|
|
|
2015-08-23 06:42:29 +00:00
|
|
|
#include <memory>
|
2015-08-22 01:58:41 +00:00
|
|
|
#include "RetroTypes.hpp"
|
|
|
|
|
2016-03-04 23:04:53 +00:00
|
|
|
namespace urde
|
2015-08-18 05:54:43 +00:00
|
|
|
{
|
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:
|
2016-03-28 22:39:56 +00:00
|
|
|
virtual ~IFactory() = default;
|
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
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-02-13 09:02:47 +00:00
|
|
|
#endif // __PSHAG_IFACTORY_HPP__
|