Exemple #1
0
        static int _g_get_m_is_circleFlying(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.AvatarCtrl.FlyActorItem __cl_gen_to_be_invoked = (xc.AvatarCtrl.FlyActorItem)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, __cl_gen_to_be_invoked.m_is_circleFlying);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
Exemple #2
0
        static int _s_set_resetPos_callback(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.AvatarCtrl.FlyActorItem __cl_gen_to_be_invoked = (xc.AvatarCtrl.FlyActorItem)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.resetPos_callback = translator.GetDelegate <System.Action>(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Exemple #3
0
        static int _s_set_m_next_circleFlyingInterval(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.AvatarCtrl.FlyActorItem __cl_gen_to_be_invoked = (xc.AvatarCtrl.FlyActorItem)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.m_next_circleFlyingInterval = (float)LuaAPI.lua_tonumber(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Exemple #4
0
        static int _s_set_m_is_followMoving(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.AvatarCtrl.FlyActorItem __cl_gen_to_be_invoked = (xc.AvatarCtrl.FlyActorItem)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.m_is_followMoving = LuaAPI.lua_toboolean(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Exemple #5
0
        static int _s_set_m_circleFly_startPos(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.AvatarCtrl.FlyActorItem __cl_gen_to_be_invoked = (xc.AvatarCtrl.FlyActorItem)translator.FastGetCSObj(L, 1);
                UnityEngine.Vector3        __cl_gen_value; translator.Get(L, 2, out __cl_gen_value);
                __cl_gen_to_be_invoked.m_circleFly_startPos = __cl_gen_value;
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Exemple #6
0
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (LuaAPI.lua_gettop(L) == 2 && translator.Assignable <System.Action>(L, 2))
                {
                    System.Action var_resetPos_callback = translator.GetDelegate <System.Action>(L, 2);

                    xc.AvatarCtrl.FlyActorItem __cl_gen_ret = new xc.AvatarCtrl.FlyActorItem(var_resetPos_callback);
                    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.AvatarCtrl.FlyActorItem constructor!"));
        }