Esempio n. 1
0
		public IFramework.Hotfix.Lua.MyStruct __Gen_Delegate_Imp3(IFramework.Hotfix.Lua.MyStruct p0)
		{
#if THREAD_SAFE || HOTFIX_ENABLE
            lock (luaEnv.luaEnvLock)
            {
#endif
                RealStatePtr L = luaEnv.rawL;
                int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference);
                ObjectTranslator translator = luaEnv.translator;
                translator.PushIFrameworkHotfixLuaMyStruct(L, p0);
                
                PCall(L, 1, 1, errFunc);
                
                
                IFramework.Hotfix.Lua.MyStruct __gen_ret;translator.Get(L, errFunc + 1, out __gen_ret);
                LuaAPI.lua_settop(L, errFunc - 1);
                return  __gen_ret;
#if THREAD_SAFE || HOTFIX_ENABLE
            }
#endif
		}
Esempio n. 2
0
 internal static bool __tryArrayGet(Type type, RealStatePtr L, ObjectTranslator translator, object obj, int index)
 {
     if (type == typeof(UnityEngine.Vector2[]))
     {
         UnityEngine.Vector2[] array = obj as UnityEngine.Vector2[];
         translator.PushUnityEngineVector2(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Vector3[]))
     {
         UnityEngine.Vector3[] array = obj as UnityEngine.Vector3[];
         translator.PushUnityEngineVector3(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Vector4[]))
     {
         UnityEngine.Vector4[] array = obj as UnityEngine.Vector4[];
         translator.PushUnityEngineVector4(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Color[]))
     {
         UnityEngine.Color[] array = obj as UnityEngine.Color[];
         translator.PushUnityEngineColor(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Quaternion[]))
     {
         UnityEngine.Quaternion[] array = obj as UnityEngine.Quaternion[];
         translator.PushUnityEngineQuaternion(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Ray[]))
     {
         UnityEngine.Ray[] array = obj as UnityEngine.Ray[];
         translator.PushUnityEngineRay(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Bounds[]))
     {
         UnityEngine.Bounds[] array = obj as UnityEngine.Bounds[];
         translator.PushUnityEngineBounds(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Ray2D[]))
     {
         UnityEngine.Ray2D[] array = obj as UnityEngine.Ray2D[];
         translator.PushUnityEngineRay2D(L, array[index]);
         return(true);
     }
     else if (type == typeof(IFramework.Hotfix.Lua.Pedding[]))
     {
         IFramework.Hotfix.Lua.Pedding[] array = obj as IFramework.Hotfix.Lua.Pedding[];
         translator.PushIFrameworkHotfixLuaPedding(L, array[index]);
         return(true);
     }
     else if (type == typeof(IFramework.Hotfix.Lua.MyStruct[]))
     {
         IFramework.Hotfix.Lua.MyStruct[] array = obj as IFramework.Hotfix.Lua.MyStruct[];
         translator.PushIFrameworkHotfixLuaMyStruct(L, array[index]);
         return(true);
     }
     else if (type == typeof(Tutorial.TestEnum[]))
     {
         Tutorial.TestEnum[] array = obj as Tutorial.TestEnum[];
         translator.PushTutorialTestEnum(L, array[index]);
         return(true);
     }
     else if (type == typeof(IFramework.Hotfix.Lua.MyEnum[]))
     {
         IFramework.Hotfix.Lua.MyEnum[] array = obj as IFramework.Hotfix.Lua.MyEnum[];
         translator.PushIFrameworkHotfixLuaMyEnum(L, array[index]);
         return(true);
     }
     else if (type == typeof(Tutorial.DerivedClass.TestEnumInner[]))
     {
         Tutorial.DerivedClass.TestEnumInner[] array = obj as Tutorial.DerivedClass.TestEnumInner[];
         translator.PushTutorialDerivedClassTestEnumInner(L, array[index]);
         return(true);
     }
     return(false);
 }