Esempio n. 1
0
        static int _e_OnClickEvent(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                int gen_param_count         = LuaAPI.lua_gettop(L);
                Minecraft.BlocksData.Block            gen_to_be_invoked = (Minecraft.BlocksData.Block)translator.FastGetCSObj(L, 1);
                Minecraft.BlocksData.BlockEventAction gen_delegate      = translator.GetDelegate <Minecraft.BlocksData.BlockEventAction>(L, 3);
                if (gen_delegate == null)
                {
                    return(LuaAPI.luaL_error(L, "#3 need Minecraft.BlocksData.BlockEventAction!"));
                }

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


                    if (LuaAPI.xlua_is_eq_str(L, 2, "-"))
                    {
                        gen_to_be_invoked.OnClickEvent -= 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 Minecraft.BlocksData.Block.OnClickEvent!");
            return(0);
        }
Esempio n. 2
0
        static int _m_GetNegativeZUVForCubeVertex(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Minecraft.BlocksData.Block gen_to_be_invoked = (Minecraft.BlocksData.Block)translator.FastGetCSObj(L, 1);



                {
                    UnityEngine.Vector2 _lb;
                    UnityEngine.Vector2 _rb;
                    UnityEngine.Vector2 _rt;
                    UnityEngine.Vector2 _lt;

                    gen_to_be_invoked.GetNegativeZUVForCubeVertex(out _lb, out _rb, out _rt, out _lt);
                    translator.PushUnityEngineVector2(L, _lb);

                    translator.PushUnityEngineVector2(L, _rb);

                    translator.PushUnityEngineVector2(L, _rt);

                    translator.PushUnityEngineVector2(L, _lt);



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


                Minecraft.BlocksData.Block gen_to_be_invoked = (Minecraft.BlocksData.Block)translator.FastGetCSObj(L, 1);



                {
                    int _x = LuaAPI.xlua_tointeger(L, 2);
                    int _y = LuaAPI.xlua_tointeger(L, 3);
                    int _z = LuaAPI.xlua_tointeger(L, 4);

                    gen_to_be_invoked.OnClick(_x, _y, _z);



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

                Minecraft.BlocksData.Block gen_to_be_invoked = (Minecraft.BlocksData.Block)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.DestoryEffectColor);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Esempio n. 5
0
        static int _g_get_Hardness(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                Minecraft.BlocksData.Block gen_to_be_invoked = (Minecraft.BlocksData.Block)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Hardness);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Esempio n. 6
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    Minecraft.BlocksData.Block gen_ret = new Minecraft.BlocksData.Block();
                    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 Minecraft.BlocksData.Block constructor!"));
        }
Esempio n. 7
0
        static int _m_ClearEvents(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Minecraft.BlocksData.Block gen_to_be_invoked = (Minecraft.BlocksData.Block)translator.FastGetCSObj(L, 1);



                {
                    gen_to_be_invoked.ClearEvents(  );



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


                Minecraft.BlocksData.Block gen_to_be_invoked = (Minecraft.BlocksData.Block)translator.FastGetCSObj(L, 1);



                {
                    UnityEngine.AudioSource _source = (UnityEngine.AudioSource)translator.GetObject(L, 2, typeof(UnityEngine.AudioSource));

                    gen_to_be_invoked.PlayStepAutio(_source);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        public void __Gen_Delegate_Imp0(int p0, int p1, int p2, Minecraft.BlocksData.Block p3)
        {
#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;
            LuaAPI.xlua_pushinteger(L, p0);
            LuaAPI.xlua_pushinteger(L, p1);
            LuaAPI.xlua_pushinteger(L, p2);
            translator.Push(L, p3);

            PCall(L, 4, 0, errFunc);



            LuaAPI.lua_settop(L, errFunc - 1);

#if THREAD_SAFE || HOTFIX_ENABLE
        }
#endif
        }
Esempio n. 10
0
        static int _m_GetExtraAsset(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Minecraft.BlocksData.Block gen_to_be_invoked = (Minecraft.BlocksData.Block)translator.FastGetCSObj(L, 1);



                {
                    int _index = LuaAPI.xlua_tointeger(L, 2);

                    UnityEngine.Object gen_ret = gen_to_be_invoked.GetExtraAsset(_index);
                    translator.Push(L, gen_ret);



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


                Minecraft.BlocksData.Block gen_to_be_invoked = (Minecraft.BlocksData.Block)translator.FastGetCSObj(L, 1);



                {
                    Minecraft.BlocksData.BlockFlags _flags; translator.Get(L, 2, out _flags);

                    bool gen_ret = gen_to_be_invoked.HasAnyFlag(_flags);
                    LuaAPI.lua_pushboolean(L, gen_ret);



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


                Minecraft.DataManager gen_to_be_invoked = (Minecraft.DataManager)translator.FastGetCSObj(L, 1);



                {
                    Minecraft.BlocksData.BlockType _type; translator.Get(L, 2, out _type);

                    Minecraft.BlocksData.Block gen_ret = gen_to_be_invoked.GetBlockByType(_type);
                    translator.Push(L, gen_ret);



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