Esempio n. 1
0
        public void UpdateSceneInfoKey(RealStatePtr L, int index, SceneInfoKey val)
        {
            if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA)
            {
                if (LuaAPI.xlua_gettypeid(L, index) != SceneInfoKey_TypeID)
                {
                    throw new Exception("invalid userdata for SceneInfoKey");
                }

                IntPtr buff = LuaAPI.lua_touserdata(L, index);
                if (!CopyByValue.Pack(buff, 0, (int)val))
                {
                    throw new Exception("pack fail for SceneInfoKey ,value=" + val);
                }
            }

            else
            {
                throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index));
            }
        }
Esempio n. 2
0
        public void UpdateTutorialDerivedClassTestEnumInner(RealStatePtr L, int index, Tutorial.DerivedClass.TestEnumInner val)
        {
            if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA)
            {
                if (LuaAPI.xlua_gettypeid(L, index) != TutorialDerivedClassTestEnumInner_TypeID)
                {
                    throw new Exception("invalid userdata for Tutorial.DerivedClass.TestEnumInner");
                }

                IntPtr buff = LuaAPI.lua_touserdata(L, index);
                if (!CopyByValue.Pack(buff, 0, (int)val))
                {
                    throw new Exception("pack fail for Tutorial.DerivedClass.TestEnumInner ,value=" + val);
                }
            }

            else
            {
                throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index));
            }
        }
Esempio n. 3
0
        public void UpdateUnityEngineRay2D(RealStatePtr L, int index, UnityEngine.Ray2D val)
        {
            if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA)
            {
                if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRay2D_TypeID)
                {
                    throw new Exception("invalid userdata for UnityEngine.Ray2D");
                }

                IntPtr buff = LuaAPI.lua_touserdata(L, index);
                if (!CopyByValue.Pack(buff, 0, val))
                {
                    throw new Exception("pack fail for UnityEngine.Ray2D ,value=" + val);
                }
            }

            else
            {
                throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index));
            }
        }
Esempio n. 4
0
        public void UpdateXLuaTestPedding(RealStatePtr L, int index, XLuaTest.Pedding val)
        {
            if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA)
            {
                if (LuaAPI.xlua_gettypeid(L, index) != XLuaTestPedding_TypeID)
                {
                    throw new Exception("invalid userdata for XLuaTest.Pedding");
                }

                IntPtr buff = LuaAPI.lua_touserdata(L, index);
                if (!CopyByValue.Pack(buff, 0, val))
                {
                    throw new Exception("pack fail for XLuaTest.Pedding ,value=" + val);
                }
            }

            else
            {
                throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index));
            }
        }
Esempio n. 5
0
        public void UpdateXLuaFrameworkNetPackageType(RealStatePtr L, int index, XLuaFramework.NetPackageType val)
        {
            if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA)
            {
                if (LuaAPI.xlua_gettypeid(L, index) != XLuaFrameworkNetPackageType_TypeID)
                {
                    throw new Exception("invalid userdata for XLuaFramework.NetPackageType");
                }

                IntPtr buff = LuaAPI.lua_touserdata(L, index);
                if (!CopyByValue.Pack(buff, 0, (int)val))
                {
                    throw new Exception("pack fail for XLuaFramework.NetPackageType ,value=" + val);
                }
            }

            else
            {
                throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index));
            }
        }
Esempio n. 6
0
        public void UpdateVVMUIScriptXLuaXLuaCommandType(RealStatePtr L, int index, VVMUI.Script.XLua.XLuaCommandType val)
        {
            if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA)
            {
                if (LuaAPI.xlua_gettypeid(L, index) != VVMUIScriptXLuaXLuaCommandType_TypeID)
                {
                    throw new Exception("invalid userdata for VVMUI.Script.XLua.XLuaCommandType");
                }

                IntPtr buff = LuaAPI.lua_touserdata(L, index);
                if (!CopyByValue.Pack(buff, 0, (int)val))
                {
                    throw new Exception("pack fail for VVMUI.Script.XLua.XLuaCommandType ,value=" + val);
                }
            }

            else
            {
                throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index));
            }
        }
Esempio n. 7
0
        static int _m_KcpRecv_xlua_st_(RealStatePtr L)
        {
            try {
                {
                    System.IntPtr _kcp    = LuaAPI.lua_touserdata(L, 1);
                    byte[]        _buffer = LuaAPI.lua_tobytes(L, 2);
                    int           _len    = LuaAPI.xlua_tointeger(L, 3);

                    int gen_ret = ETCold.Kcp.KcpRecv(
                        _kcp,
                        _buffer,
                        _len);
                    LuaAPI.xlua_pushinteger(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Esempio n. 8
0
        static int _m_UpdateExternalTexture(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            UnityEngine.Texture2D __cl_gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1);


            try {
                {
                    System.IntPtr nativeTex = LuaAPI.lua_touserdata(L, 2);

                    __cl_gen_to_be_invoked.UpdateExternalTexture(nativeTex);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Esempio n. 9
0
        static int _m_KcpWndsize_xlua_st_(RealStatePtr L)
        {
            try {
                {
                    System.IntPtr _kcp    = LuaAPI.lua_touserdata(L, 1);
                    int           _sndwnd = LuaAPI.xlua_tointeger(L, 2);
                    int           _rcvwnd = LuaAPI.xlua_tointeger(L, 3);

                    int gen_ret = ETCold.Kcp.KcpWndsize(
                        _kcp,
                        _sndwnd,
                        _rcvwnd);
                    LuaAPI.xlua_pushinteger(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m___Register_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    System.IntPtr _L = LuaAPI.lua_touserdata(L, 1);
                    
                    XLua.CSObjectWrap.XLuaCSObjectWrapXLuaCSObjectWrapXLuaCSObjectWrapMongoDBBsonSerializationSerializersBsonSymbolSerializerWrapWrapWrapWrap.__Register( _L );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        static int _m___Register_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    System.IntPtr _L = LuaAPI.lua_touserdata(L, 1);
                    
                    XLua.CSObjectWrap.LitJsonJsonWriterWrap.__Register( _L );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
Esempio n. 12
0
        static int _m_lua_type_xlua_st_(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



                {
                    System.IntPtr _luaState = LuaAPI.lua_touserdata(L, 1);
                    int           _index    = LuaAPI.xlua_tointeger(L, 2);

                    MikuLuaProfiler.LuaTypes gen_ret = MikuLuaProfiler.LuaDLL.lua_type(_luaState, _index);
                    translator.PushMikuLuaProfilerLuaTypes(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m___Register_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    System.IntPtr _L = LuaAPI.lua_touserdata(L, 1);
                    
                    XLua.CSObjectWrap.XLuaCSObjectWrapXLuaCSObjectWrapXLuaCSObjectWrapDCETModelPrefabLightmapDataWrapWrapWrapWrap.__Register( _L );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        static int _m___Register_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    System.IntPtr _L = LuaAPI.lua_touserdata(L, 1);
                    
                    XLua.CSObjectWrap.XLuaCSObjectWrapMongoDBSharedCanonicalDisposableClassWrapWrap.__Register( _L );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        static int _m___Register_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    System.IntPtr _L = LuaAPI.lua_touserdata(L, 1);
                    
                    XLua.CSObjectWrap.MongoDBBsonSerializationConventionsNamedIdMemberConventionWrap.__Register( _L );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        static int _m___Register_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    System.IntPtr _L = LuaAPI.lua_touserdata(L, 1);
                    
                    XLua.CSObjectWrap.XLuaCSObjectWrapXLuaCSObjectWrapXLuaCSObjectWrapFairyGUIRichTextFieldWrapWrapWrapWrap.__Register( _L );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        static int _m_LoadRawTextureData(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 3 && LuaTypes.LUA_TLIGHTUSERDATA == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
                {
                    System.IntPtr _data = LuaAPI.lua_touserdata(L, 2);
                    int           _size = LuaAPI.xlua_tointeger(L, 3);

                    gen_to_be_invoked.LoadRawTextureData(_data, _size);



                    return(0);
                }
                if (gen_param_count == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
                {
                    byte[] _data = LuaAPI.lua_tobytes(L, 2);

                    gen_to_be_invoked.LoadRawTextureData(_data);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }

            return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Texture2D.LoadRawTextureData!"));
        }
Esempio n. 18
0
        static int _m_HookRef_xlua_st_(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 3 && LuaTypes.LUA_TLIGHTUSERDATA == LuaAPI.lua_type(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <MikuLuaProfiler.LuaDLL.tolua_getref_fun>(L, 3))
                {
                    System.IntPtr _L         = LuaAPI.lua_touserdata(L, 1);
                    int           _reference = LuaAPI.xlua_tointeger(L, 2);
                    MikuLuaProfiler.LuaDLL.tolua_getref_fun _refFun = translator.GetDelegate <MikuLuaProfiler.LuaDLL.tolua_getref_fun>(L, 3);

                    MikuLuaProfiler.LuaHook.HookRef(_L, _reference, _refFun);



                    return(0);
                }
                if (gen_param_count == 2 && LuaTypes.LUA_TLIGHTUSERDATA == LuaAPI.lua_type(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
                {
                    System.IntPtr _L         = LuaAPI.lua_touserdata(L, 1);
                    int           _reference = LuaAPI.xlua_tointeger(L, 2);

                    MikuLuaProfiler.LuaHook.HookRef(_L, _reference);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }

            return(LuaAPI.luaL_error(L, "invalid arguments to MikuLuaProfiler.LuaHook.HookRef!"));
        }
        static int _m_Compile_xlua_st_(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 1 && LuaTypes.LUA_TLIGHTUSERDATA == LuaAPI.lua_type(L, 1))
                {
                    System.IntPtr _L = LuaAPI.lua_touserdata(L, 1);

                    int gen_ret = XLua.TemplateEngine.LuaTemplate.Compile(_L);
                    LuaAPI.xlua_pushinteger(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 2 && translator.Assignable <XLua.LuaEnv>(L, 1) && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
                {
                    XLua.LuaEnv _luaenv  = (XLua.LuaEnv)translator.GetObject(L, 1, typeof(XLua.LuaEnv));
                    string      _snippet = LuaAPI.lua_tostring(L, 2);

                    XLua.LuaFunction gen_ret = XLua.TemplateEngine.LuaTemplate.Compile(_luaenv, _snippet);
                    translator.Push(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }

            return(LuaAPI.luaL_error(L, "invalid arguments to XLua.TemplateEngine.LuaTemplate.Compile!"));
        }
        static int _m_Remove(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                XLua.ObjectTranslatorPool gen_to_be_invoked = (XLua.ObjectTranslatorPool)translator.FastGetCSObj(L, 1);



                {
                    System.IntPtr _L = LuaAPI.lua_touserdata(L, 2);

                    gen_to_be_invoked.Remove(_L);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Esempio n. 21
0
        static int _m_TryGetLuaString_xlua_st_(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



                {
                    System.IntPtr _p = LuaAPI.lua_touserdata(L, 1);
                    object        _result;

                    bool gen_ret = MikuLuaProfiler.LuaHook.TryGetLuaString(_p, out _result);
                    LuaAPI.lua_pushboolean(L, gen_ret);
                    translator.PushAny(L, _result);



                    return(2);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Esempio n. 22
0
        static int _m_lua_gc_xlua_st_(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



                {
                    System.IntPtr _luaState = LuaAPI.lua_touserdata(L, 1);
                    MikuLuaProfiler.LuaGCOptions _what; translator.Get(L, 2, out _what);
                    int _data = LuaAPI.xlua_tointeger(L, 3);

                    int gen_ret = MikuLuaProfiler.LuaDLL.lua_gc(_luaState, _what, _data);
                    LuaAPI.xlua_pushinteger(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Esempio n. 23
0
        static int _m_DoRefLuaFun_xlua_st_(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



                {
                    System.IntPtr _L         = LuaAPI.lua_touserdata(L, 1);
                    string        _funName   = LuaAPI.lua_tostring(L, 2);
                    int           _reference = LuaAPI.xlua_tointeger(L, 3);
                    MikuLuaProfiler.LuaDLL.tolua_getref_fun _refFun = translator.GetDelegate <MikuLuaProfiler.LuaDLL.tolua_getref_fun>(L, 4);

                    MikuLuaProfiler.LuaLib.DoRefLuaFun(_L, _funName, _reference, _refFun);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Esempio n. 24
0
        static int _m_RefString_xlua_st_(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



                {
                    System.IntPtr _strPoint = LuaAPI.lua_touserdata(L, 1);
                    int           _index    = LuaAPI.xlua_tointeger(L, 2);
                    object        _s        = translator.GetObject(L, 3, typeof(object));
                    System.IntPtr _L        = LuaAPI.lua_touserdata(L, 4);

                    MikuLuaProfiler.LuaHook.RefString(_strPoint, _index, _s, _L);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Esempio n. 25
0
        static int _m_UpdateExternalTexture(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityEngine.Cubemap gen_to_be_invoked = (UnityEngine.Cubemap)translator.FastGetCSObj(L, 1);



                {
                    System.IntPtr _nativeTexture = LuaAPI.lua_touserdata(L, 2);

                    gen_to_be_invoked.UpdateExternalTexture(_nativeTexture);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Esempio n. 26
0
        public void Get(RealStatePtr L, int index, out Tutorial.DerivedClass.TestEnumInner val)
        {
            LuaTypes type = LuaAPI.lua_type(L, index);

            if (type == LuaTypes.LUA_TUSERDATA)
            {
                if (LuaAPI.xlua_gettypeid(L, index) != TutorialDerivedClassTestEnumInner_TypeID)
                {
                    throw new Exception("invalid userdata for Tutorial.DerivedClass.TestEnumInner");
                }

                IntPtr buff = LuaAPI.lua_touserdata(L, index);
                int    e;
                if (!CopyByValue.UnPack(buff, 0, out e))
                {
                    throw new Exception("unpack fail for Tutorial.DerivedClass.TestEnumInner");
                }
                val = (Tutorial.DerivedClass.TestEnumInner)e;
            }
            else
            {
                val = (Tutorial.DerivedClass.TestEnumInner)objectCasters.GetCaster(typeof(Tutorial.DerivedClass.TestEnumInner))(L, index, null);
            }
        }
Esempio n. 27
0
        static int _m_CreateExternalTexture_xlua_st_(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



                {
                    int _width = LuaAPI.xlua_tointeger(L, 1);
                    UnityEngine.TextureFormat _format; translator.Get(L, 2, out _format);
                    bool          _mipmap    = LuaAPI.lua_toboolean(L, 3);
                    System.IntPtr _nativeTex = LuaAPI.lua_touserdata(L, 4);

                    var gen_ret = UnityEngine.Cubemap.CreateExternalTexture(_width, _format, _mipmap, _nativeTex);
                    translator.Push(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Esempio n. 28
0
        public void Get(RealStatePtr L, int index, out XLuaTest.MyEnum val)
        {
            LuaTypes type = LuaAPI.lua_type(L, index);

            if (type == LuaTypes.LUA_TUSERDATA)
            {
                if (LuaAPI.xlua_gettypeid(L, index) != XLuaTestMyEnum_TypeID)
                {
                    throw new Exception("invalid userdata for XLuaTest.MyEnum");
                }

                IntPtr buff = LuaAPI.lua_touserdata(L, index);
                int    e;
                if (!CopyByValue.UnPack(buff, 0, out e))
                {
                    throw new Exception("unpack fail for XLuaTest.MyEnum");
                }
                val = (XLuaTest.MyEnum)e;
            }
            else
            {
                val = (XLuaTest.MyEnum)objectCasters.GetCaster(typeof(XLuaTest.MyEnum))(L, index, null);
            }
        }
Esempio n. 29
0
        public void Get(RealStatePtr L, int index, out UnityEngine.SystemLanguage val)
        {
            LuaTypes type = LuaAPI.lua_type(L, index);

            if (type == LuaTypes.LUA_TUSERDATA)
            {
                if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineSystemLanguage_TypeID)
                {
                    throw new Exception("invalid userdata for UnityEngine.SystemLanguage");
                }

                IntPtr buff = LuaAPI.lua_touserdata(L, index);
                int    e;
                if (!CopyByValue.UnPack(buff, 0, out e))
                {
                    throw new Exception("unpack fail for UnityEngine.SystemLanguage");
                }
                val = (UnityEngine.SystemLanguage)e;
            }
            else
            {
                val = (UnityEngine.SystemLanguage)objectCasters.GetCaster(typeof(UnityEngine.SystemLanguage))(L, index, null);
            }
        }
Esempio n. 30
0
        public void Get(RealStatePtr L, int index, out DotEngine.UI.UILayerLevel val)
        {
            LuaTypes type = LuaAPI.lua_type(L, index);

            if (type == LuaTypes.LUA_TUSERDATA)
            {
                if (LuaAPI.xlua_gettypeid(L, index) != DotEngineUIUILayerLevel_TypeID)
                {
                    throw new Exception("invalid userdata for DotEngine.UI.UILayerLevel");
                }

                IntPtr buff = LuaAPI.lua_touserdata(L, index);
                int    e;
                if (!CopyByValue.UnPack(buff, 0, out e))
                {
                    throw new Exception("unpack fail for DotEngine.UI.UILayerLevel");
                }
                val = (DotEngine.UI.UILayerLevel)e;
            }
            else
            {
                val = (DotEngine.UI.UILayerLevel)objectCasters.GetCaster(typeof(DotEngine.UI.UILayerLevel))(L, index, null);
            }
        }