Exemplo n.º 1
0
        static int _e_onCreateNewMaterial(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                int gen_param_count         = LuaAPI.lua_gettop(L);
                FairyGUI.MaterialManager             gen_to_be_invoked = (FairyGUI.MaterialManager)translator.FastGetCSObj(L, 1);
                System.Action <UnityEngine.Material> gen_delegate      = translator.GetDelegate <System.Action <UnityEngine.Material> >(L, 3);
                if (gen_delegate == null)
                {
                    return(LuaAPI.luaL_error(L, "#3 need System.Action<UnityEngine.Material>!"));
                }

                if (gen_param_count == 3)
                {
                    if (LuaAPI.xlua_is_eq_str(L, 2, "+"))
                    {
                        gen_to_be_invoked.onCreateNewMaterial += gen_delegate;
                        return(0);
                    }


                    if (LuaAPI.xlua_is_eq_str(L, 2, "-"))
                    {
                        gen_to_be_invoked.onCreateNewMaterial -= gen_delegate;
                        return(0);
                    }
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            LuaAPI.luaL_error(L, "invalid arguments to FairyGUI.MaterialManager.onCreateNewMaterial!");
            return(0);
        }
Exemplo n.º 2
0
        static int _m_GetMaterialManager(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                FairyGUI.NTexture gen_to_be_invoked = (FairyGUI.NTexture)translator.FastGetCSObj(L, 1);



                {
                    string   _shaderName = LuaAPI.lua_tostring(L, 2);
                    string[] _keywords   = (string[])translator.GetObject(L, 3, typeof(string[]));

                    FairyGUI.MaterialManager gen_ret = gen_to_be_invoked.GetMaterialManager(
                        _shaderName,
                        _keywords);
                    translator.Push(L, gen_ret);



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


                FairyGUI.MaterialManager gen_to_be_invoked = (FairyGUI.MaterialManager)translator.FastGetCSObj(L, 1);



                {
                    int _flags = LuaAPI.xlua_tointeger(L, 2);
                    FairyGUI.BlendMode _blendMode; translator.Get(L, 3, out _blendMode);
                    uint _group = LuaAPI.xlua_touint(L, 4);

                    UnityEngine.Material gen_ret = gen_to_be_invoked.GetMaterial(_flags, _blendMode, _group);
                    translator.Push(L, gen_ret);



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


                FairyGUI.MaterialManager gen_to_be_invoked = (FairyGUI.MaterialManager)translator.FastGetCSObj(L, 1);



                {
                    int _materialType = LuaAPI.xlua_tointeger(L, 2);
                    FairyGUI.BlendMode _blendMode; translator.Get(L, 3, out _blendMode);
                    uint _clipId = LuaAPI.xlua_touint(L, 4);
                    bool _firstInstance;

                    FairyGUI.NMaterial gen_ret = gen_to_be_invoked.GetMaterial(
                        _materialType,
                        _blendMode,
                        _clipId,
                        out _firstInstance);
                    translator.Push(L, gen_ret);
                    LuaAPI.lua_pushboolean(L, _firstInstance);



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

                FairyGUI.MaterialManager gen_to_be_invoked = (FairyGUI.MaterialManager)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.firstMaterialInFrame = LuaAPI.lua_toboolean(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Exemplo n.º 6
0
        static StackObject *DestroyMaterialManager_13(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            FairyGUI.MaterialManager @manager = (FairyGUI.MaterialManager) typeof(FairyGUI.MaterialManager).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            FairyGUI.NTexture instance_of_this_method = (FairyGUI.NTexture) typeof(FairyGUI.NTexture).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.DestroyMaterialManager(@manager);

            return(__ret);
        }
Exemplo n.º 7
0
        static int _m_RefreshMaterials(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                FairyGUI.MaterialManager gen_to_be_invoked = (FairyGUI.MaterialManager)translator.FastGetCSObj(L, 1);



                {
                    gen_to_be_invoked.RefreshMaterials(  );



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


                FairyGUI.NTexture gen_to_be_invoked = (FairyGUI.NTexture)translator.FastGetCSObj(L, 1);



                {
                    FairyGUI.MaterialManager _manager = (FairyGUI.MaterialManager)translator.GetObject(L, 2, typeof(FairyGUI.MaterialManager));

                    gen_to_be_invoked.DestroyMaterialManager(_manager);



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


                FairyGUI.MaterialManager gen_to_be_invoked = (FairyGUI.MaterialManager)translator.FastGetCSObj(L, 1);



                {
                    System.Collections.Generic.IList <string> _keywords = (System.Collections.Generic.IList <string>)translator.GetObject(L, 2, typeof(System.Collections.Generic.IList <string>));

                    int gen_ret = gen_to_be_invoked.GetFlagsByKeywords(_keywords);
                    LuaAPI.xlua_pushinteger(L, gen_ret);



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