From 15740faf9fe9fe4be08965098bbf2947e096aeeb Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 14 Aug 2019 22:50:43 +0800 Subject: +Unity Runtime code --- Runtime/Scripting/Backend/ScriptingMethodFactory.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Runtime/Scripting/Backend/ScriptingMethodFactory.h (limited to 'Runtime/Scripting/Backend/ScriptingMethodFactory.h') 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 -- cgit v1.1-26-g67d0