static int _s_set_target(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                UnityMMO.Nameboard gen_to_be_invoked = (UnityMMO.Nameboard)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.target = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform));
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
        static int _g_get_target(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                UnityMMO.Nameboard gen_to_be_invoked = (UnityMMO.Nameboard)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.target);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
        static int _s_set_Name(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                UnityMMO.Nameboard gen_to_be_invoked = (UnityMMO.Nameboard)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.Name = LuaAPI.lua_tostring(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
        static int _s_set_CurColorStyle(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                UnityMMO.Nameboard            gen_to_be_invoked = (UnityMMO.Nameboard)translator.FastGetCSObj(L, 1);
                UnityMMO.Nameboard.ColorStyle gen_value; translator.Get(L, 2, out gen_value);
                gen_to_be_invoked.CurColorStyle = gen_value;
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    UnityMMO.Nameboard gen_ret = new UnityMMO.Nameboard();
                    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.Nameboard constructor!"));
        }
Beispiel #6
0
        static int _m_UpdateBloodBar(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    gen_to_be_invoked.UpdateBloodBar(  );



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


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



                {
                    bool _isShow = LuaAPI.lua_toboolean(L, 2);

                    gen_to_be_invoked.SetBloodVisible(_isShow);



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