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


                XH.Pin.LSKRotateComponent __cl_gen_to_be_invoked = (XH.Pin.LSKRotateComponent)translator.FastGetCSObj(L, 1);



                {
                    int   trickMode = LuaAPI.xlua_tointeger(L, 2);
                    float minAngle  = (float)LuaAPI.lua_tonumber(L, 3);
                    float maxAngle  = (float)LuaAPI.lua_tonumber(L, 4);

                    __cl_gen_to_be_invoked.Trick(trickMode, minAngle, maxAngle);



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

                XH.Pin.LSKRotateComponent __cl_gen_to_be_invoked = (XH.Pin.LSKRotateComponent)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.OnTrickOver = translator.GetDelegate <System.Action>(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Exemplo n.º 3
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    XH.Pin.LSKRotateComponent __cl_gen_ret = new XH.Pin.LSKRotateComponent();
                    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 XH.Pin.LSKRotateComponent constructor!"));
        }
Exemplo n.º 4
0
        static int _m_StartRotate(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                XH.Pin.LSKRotateComponent __cl_gen_to_be_invoked = (XH.Pin.LSKRotateComponent)translator.FastGetCSObj(L, 1);



                {
                    __cl_gen_to_be_invoked.StartRotate(  );



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


                XH.Pin.LSKRotateComponent __cl_gen_to_be_invoked = (XH.Pin.LSKRotateComponent)translator.FastGetCSObj(L, 1);



                {
                    float __cl_gen_ret = __cl_gen_to_be_invoked.GetRadius(  );
                    LuaAPI.lua_pushnumber(L, __cl_gen_ret);



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


                XH.Pin.LSKRotateComponent __cl_gen_to_be_invoked = (XH.Pin.LSKRotateComponent)translator.FastGetCSObj(L, 1);



                {
                    XLua.LuaTable table = (XLua.LuaTable)translator.GetObject(L, 2, typeof(XLua.LuaTable));

                    __cl_gen_to_be_invoked.InitData(table);



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