Example #1
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    UnityMMO.FightFlyWord gen_ret = new UnityMMO.FightFlyWord();
                    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 UnityMMO.FightFlyWord constructor!"));
        }
Example #2
0
        static int _m_StartFly(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityMMO.FightFlyWord gen_to_be_invoked = (UnityMMO.FightFlyWord)translator.FastGetCSObj(L, 1);



                {
                    gen_to_be_invoked.StartFly(  );



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


                UnityMMO.FightFlyWord gen_to_be_invoked = (UnityMMO.FightFlyWord)translator.FastGetCSObj(L, 1);



                {
                    long _num  = LuaAPI.lua_toint64(L, 2);
                    long _flag = LuaAPI.lua_toint64(L, 3);

                    gen_to_be_invoked.SetData(_num, _flag);



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