Exemplo n.º 1
0
        static int _g_get_Loaded(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.EffectEmitter __cl_gen_to_be_invoked = (xc.EffectEmitter)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, __cl_gen_to_be_invoked.Loaded);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
Exemplo n.º 2
0
        static int _m_Destroy(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.EffectEmitter __cl_gen_to_be_invoked = (xc.EffectEmitter)translator.FastGetCSObj(L, 1);


            try {
                {
                    __cl_gen_to_be_invoked.Destroy(  );



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

            try {
                if (LuaAPI.lua_gettop(L) == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
                {
                    string assetPath = LuaAPI.lua_tostring(L, 2);
                    int    maxCount  = LuaAPI.xlua_tointeger(L, 3);

                    xc.EffectEmitter __cl_gen_ret = new xc.EffectEmitter(assetPath, maxCount);
                    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 xc.EffectEmitter constructor!"));
        }
Exemplo n.º 4
0
        static int _m_GetEffectEmitter(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.EffectManager __cl_gen_to_be_invoked = (xc.EffectManager)translator.FastGetCSObj(L, 1);


            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
                {
                    string effectPrefab = LuaAPI.lua_tostring(L, 2);
                    int    maxCount     = LuaAPI.xlua_tointeger(L, 3);

                    xc.EffectEmitter __cl_gen_ret = __cl_gen_to_be_invoked.GetEffectEmitter(effectPrefab, maxCount);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
                {
                    string effectPrefab = LuaAPI.lua_tostring(L, 2);

                    xc.EffectEmitter __cl_gen_ret = __cl_gen_to_be_invoked.GetEffectEmitter(effectPrefab);
                    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 xc.EffectManager.GetEffectEmitter!"));
        }
Exemplo n.º 5
0
        static int _m_CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.EffectEmitter __cl_gen_to_be_invoked = (xc.EffectEmitter)translator.FastGetCSObj(L, 1);


            try {
                {
                    xc.EffectEmitter.InitFunc callBack = translator.GetDelegate <xc.EffectEmitter.InitFunc>(L, 2);

                    __cl_gen_to_be_invoked.CreateInstance(callBack);



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