From 15740faf9fe9fe4be08965098bbf2947e096aeeb Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 14 Aug 2019 22:50:43 +0800 Subject: +Unity Runtime code --- .../Backend/Flash/ScriptingBackendApi_Flash.h | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Runtime/Scripting/Backend/Flash/ScriptingBackendApi_Flash.h (limited to 'Runtime/Scripting/Backend/Flash/ScriptingBackendApi_Flash.h') diff --git a/Runtime/Scripting/Backend/Flash/ScriptingBackendApi_Flash.h b/Runtime/Scripting/Backend/Flash/ScriptingBackendApi_Flash.h new file mode 100644 index 0000000..c2372a2 --- /dev/null +++ b/Runtime/Scripting/Backend/Flash/ScriptingBackendApi_Flash.h @@ -0,0 +1,45 @@ +#ifndef _SCRIPTINGBACKENDAPI_FLASH_H_ +#define _SCRIPTINGBACKENDAPI_FLASH_H_ + +#include + +#include "../ScriptingTypes.h" +#include "../ScriptingBackendApi.h" + +//todo: remove +typedef ScriptingObject* (*FastMonoMethod) (void* thiz, ScriptingException** ex); +typedef int AS3String; + +struct ScriptingMethod +{ + const char* m_Name; + const char* m_Mappedname; + const char* m_Signature; + AS3String m_As3String; + + ScriptingClass* m_Class; + ScriptingObject* m_SystemType; + ScriptingObject* m_MethodInfo; + + ScriptingMethod(const char* name, ScriptingClass* klass); + ScriptingMethod(const char* name, const char* mappedName, const char* sig, ScriptingClass* klass); + void Init(const char* name, const char* mappedName, const char* sig, ScriptingClass* klass); + ScriptingClass* GetReturnType(); + const char* GetName() { return m_Name; } + ScriptingObjectPtr GetSystemReflectionMethodInfo(); +}; + +struct ScriptingField +{ + ScriptingField(const char* name,const char* type) + : m_name(name) + , m_type(type) + { + + } + + std::string m_name; + std::string m_type; +}; + +#endif -- cgit v1.1-26-g67d0