diff options
author | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
commit | 15740faf9fe9fe4be08965098bbf2947e096aeeb (patch) | |
tree | a730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/Scripting/Backend/ScriptingMethodFactory.h |
Diffstat (limited to 'Runtime/Scripting/Backend/ScriptingMethodFactory.h')
-rw-r--r-- | Runtime/Scripting/Backend/ScriptingMethodFactory.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Runtime/Scripting/Backend/ScriptingMethodFactory.h b/Runtime/Scripting/Backend/ScriptingMethodFactory.h new file mode 100644 index 0000000..a497d62 --- /dev/null +++ b/Runtime/Scripting/Backend/ScriptingMethodFactory.h @@ -0,0 +1,18 @@ +#ifndef _SCRIPTINGMETHODFACTORY_H_ +#define _SCRIPTINGMETHODFACTORY_H_ + +#include "ScriptingTypes.h" + + +// !!TODO: ScriptingMethodPtr Produce(ScriptingTypePtr klass, const char* name, int searchFilter) & ScriptingMethodPtr Produce(BackendNativeMethod nativeMethod) must return the same +// method if internally method is the same !!! +class IScriptingMethodFactory +{ +public: + virtual ~IScriptingMethodFactory() {} + virtual ScriptingMethodPtr Produce(ScriptingTypePtr klass, const char* name, int searchFilter) = 0; + virtual ScriptingMethodPtr Produce(BackendNativeMethod nativeMethod) = 0; + virtual void Release(ScriptingMethodPtr) = 0; +}; + +#endif |