Exemple #1
0
        public Entity AddHealthVisual(UnityEngine.TextMesh newText)
        {
            var componentPool = GetComponentPool(GameComponentIds.HealthVisual);
            var component     = (Assets.HealthVisualComponent)(componentPool.Count > 0 ? componentPool.Pop() : new Assets.HealthVisualComponent());

            component.Text = newText;
            return(AddComponent(GameComponentIds.HealthVisual, component));
        }
        static StackObject *Ctor_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *__ret = ILIntepreter.Minus(__esp, 0);

            var result_of_this_method = new UnityEngine.TextMesh();

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
Exemple #3
0
 protected override void GetDependencies(System.Collections.Generic.Dictionary <long, UnityEngine.Object> dependencies, object obj)
 {
     base.GetDependencies(dependencies, obj);
     if (obj == null)
     {
         return;
     }
     UnityEngine.TextMesh o = (UnityEngine.TextMesh)obj;
     AddDependency(o.font, dependencies);
 }
Exemple #4
0
        static int _g_get_font(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.font);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Exemple #5
0
        static int _s_set_richText(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.richText = LuaAPI.lua_toboolean(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Exemple #6
0
        static int _g_get_text(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                UnityEngine.TextMesh __cl_gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushstring(L, __cl_gen_to_be_invoked.text);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
Exemple #7
0
        static int _s_set_tabSize(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                UnityEngine.TextMesh __cl_gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.tabSize = (float)LuaAPI.lua_tonumber(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Exemple #8
0
        static int _s_set_font(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                UnityEngine.TextMesh __cl_gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.font = (UnityEngine.Font)translator.GetObject(L, 2, typeof(UnityEngine.Font));
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Exemple #9
0
        static int _s_set_color(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                UnityEngine.TextMesh gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1);
                UnityEngine.Color    gen_value; translator.Get(L, 2, out gen_value);
                gen_to_be_invoked.color = gen_value;
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Exemple #10
0
        static int _s_set_anchor(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                UnityEngine.TextMesh   __cl_gen_to_be_invoked = (UnityEngine.TextMesh)translator.FastGetCSObj(L, 1);
                UnityEngine.TextAnchor __cl_gen_value; translator.Get(L, 2, out __cl_gen_value);
                __cl_gen_to_be_invoked.anchor = __cl_gen_value;
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Exemple #11
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    UnityEngine.TextMesh gen_ret = new UnityEngine.TextMesh();
                    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 UnityEngine.TextMesh constructor!"));
        }
Exemple #12
0
 public override void ReadFrom(object obj)
 {
     base.ReadFrom(obj);
     if (obj == null)
     {
         return;
     }
     UnityEngine.TextMesh o = (UnityEngine.TextMesh)obj;
     text          = o.text;
     font          = o.font.GetMappedInstanceID();
     fontSize      = o.fontSize;
     fontStyle     = (uint)o.fontStyle;
     offsetZ       = o.offsetZ;
     alignment     = (uint)o.alignment;
     anchor        = (uint)o.anchor;
     characterSize = o.characterSize;
     lineSpacing   = o.lineSpacing;
     tabSize       = o.tabSize;
     richText      = o.richText;
     color         = o.color;
 }
Exemple #13
0
 public override object WriteTo(object obj, System.Collections.Generic.Dictionary <long, UnityEngine.Object> objects)
 {
     obj = base.WriteTo(obj, objects);
     if (obj == null)
     {
         return(null);
     }
     UnityEngine.TextMesh o = (UnityEngine.TextMesh)obj;
     o.text          = text;
     o.font          = (UnityEngine.Font)objects.Get(font);
     o.fontSize      = fontSize;
     o.fontStyle     = (UnityEngine.FontStyle)fontStyle;
     o.offsetZ       = offsetZ;
     o.alignment     = (UnityEngine.TextAlignment)alignment;
     o.anchor        = (UnityEngine.TextAnchor)anchor;
     o.characterSize = characterSize;
     o.lineSpacing   = lineSpacing;
     o.tabSize       = tabSize;
     o.richText      = richText;
     o.color         = color;
     return(o);
 }