コード例 #1
0
        static int _s_set_onStopped(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                ParticleAutoHide __cl_gen_to_be_invoked = (ParticleAutoHide)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.onStopped = translator.GetDelegate <ParticleAutoHide.OnStopped>(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
コード例 #2
0
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    ParticleAutoHide __cl_gen_ret = new ParticleAutoHide();
                    translator.Push(L, __cl_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 ParticleAutoHide constructor!"));
        }