예제 #1
0
        static StackObject *PopulateWithErrors_6(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 4);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.GameObject context = (UnityEngine.GameObject) typeof(UnityEngine.GameObject).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);
            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.TextGenerationSettings settings = (UnityEngine.TextGenerationSettings) typeof(UnityEngine.TextGenerationSettings).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);
            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            System.String str = (System.String) typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);
            ptr_of_this_method = ILIntepreter.Minus(__esp, 4);
            UnityEngine.TextGenerator instance_of_this_method;
            instance_of_this_method = (UnityEngine.TextGenerator) typeof(UnityEngine.TextGenerator).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.PopulateWithErrors(str, settings, context);

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value      = result_of_this_method ? 1 : 0;
            return(__ret + 1);
        }
예제 #2
0
        static int _m_GetGenerationSettings(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1);



                {
                    UnityEngine.Vector2 _extents; translator.Get(L, 2, out _extents);

                    UnityEngine.TextGenerationSettings gen_ret = gen_to_be_invoked.GetGenerationSettings(
                        _extents);
                    translator.Push(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
예제 #3
0
        static object PerformMemberwiseClone(ref object o)
        {
            var ins = new UnityEngine.TextGenerationSettings();

            ins = (UnityEngine.TextGenerationSettings)o;
            return(ins);
        }
예제 #4
0
        static void WriteBackInstance(CSHotFix.Runtime.Enviorment.AppDomain __domain, StackObject *ptr_of_this_method, IList <object> __mStack, ref UnityEngine.TextGenerationSettings instance_of_this_method)
        {
            ptr_of_this_method = ILIntepreter.GetObjectAndResolveReference(ptr_of_this_method);
            switch (ptr_of_this_method->ObjectType)
            {
            case ObjectTypes.Object:
            {
                __mStack[ptr_of_this_method->Value] = instance_of_this_method;
            }
            break;

            case ObjectTypes.FieldReference:
            {
                var ___obj = __mStack[ptr_of_this_method->Value];
                if (___obj is ILTypeInstance)
                {
                    ((ILTypeInstance)___obj)[ptr_of_this_method->ValueLow] = instance_of_this_method;
                }
                else
                {
                    var t = __domain.GetType(___obj.GetType()) as CLRType;
                    t.SetFieldValue(ptr_of_this_method->ValueLow, ref ___obj, instance_of_this_method);
                }
            }
            break;

            case ObjectTypes.StaticFieldReference:
            {
                var t = __domain.GetType(ptr_of_this_method->Value);
                if (t is ILType)
                {
                    ((ILType)t).StaticInstance[ptr_of_this_method->ValueLow] = instance_of_this_method;
                }
                else
                {
                    ((CLRType)t).SetStaticFieldValue(ptr_of_this_method->ValueLow, instance_of_this_method);
                }
            }
            break;

            case ObjectTypes.ArrayReference:
            {
                var instance_of_arrayReference = __mStack[ptr_of_this_method->Value] as UnityEngine.TextGenerationSettings[];
                instance_of_arrayReference[ptr_of_this_method->ValueLow] = instance_of_this_method;
            }
            break;
            }
        }
예제 #5
0
        int UnityEngineUIText_m_GetGenerationSettings(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;


            UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1);


            {
                UnityEngine.Vector2 _extents; translator.Get(L, 2, out _extents);

                UnityEngine.TextGenerationSettings gen_ret = gen_to_be_invoked.GetGenerationSettings(_extents);
                translator.Push(L, gen_ret);



                return(1);
            }
        }
예제 #6
0
        static StackObject *Equals_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.TextGenerationSettings other = (UnityEngine.TextGenerationSettings) typeof(UnityEngine.TextGenerationSettings).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);
            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            ptr_of_this_method = ILIntepreter.GetObjectAndResolveReference(ptr_of_this_method);
            UnityEngine.TextGenerationSettings instance_of_this_method;
            instance_of_this_method = (UnityEngine.TextGenerationSettings) typeof(UnityEngine.TextGenerationSettings).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));

            var result_of_this_method = instance_of_this_method.Equals(other);

            WriteBackInstance(__domain, ptr_of_this_method, __mStack, ref instance_of_this_method);

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value      = result_of_this_method ? 1 : 0;
            return(__ret + 1);
        }
예제 #7
0
        static StackObject *GetPreferredHeight_5(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 3);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.TextGenerationSettings settings = (UnityEngine.TextGenerationSettings) typeof(UnityEngine.TextGenerationSettings).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);
            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            System.String str = (System.String) typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);
            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            UnityEngine.TextGenerator instance_of_this_method;
            instance_of_this_method = (UnityEngine.TextGenerator) typeof(UnityEngine.TextGenerator).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.GetPreferredHeight(str, settings);

            __ret->ObjectType       = ObjectTypes.Float;
            *(float *)&__ret->Value = result_of_this_method;
            return(__ret + 1);
        }
예제 #8
0
 static void set_horizontalOverflow_14(ref object o, object v)
 {
     UnityEngine.TextGenerationSettings _o = (UnityEngine.TextGenerationSettings)o;
     _o.horizontalOverflow = (UnityEngine.HorizontalWrapMode)v;
 }
예제 #9
0
 static void set_verticalOverflow_13(ref object o, object v)
 {
     UnityEngine.TextGenerationSettings _o = (UnityEngine.TextGenerationSettings)o;
     _o.verticalOverflow = (UnityEngine.VerticalWrapMode)v;
 }
예제 #10
0
 static void set_updateBounds_12(ref object o, object v)
 {
     UnityEngine.TextGenerationSettings _o = (UnityEngine.TextGenerationSettings)o;
     _o.updateBounds = (System.Boolean)v;
 }
예제 #11
0
 static void set_resizeTextMaxSize_11(ref object o, object v)
 {
     UnityEngine.TextGenerationSettings _o = (UnityEngine.TextGenerationSettings)o;
     _o.resizeTextMaxSize = (System.Int32)v;
 }
예제 #12
0
 static void set_resizeTextForBestFit_9(ref object o, object v)
 {
     UnityEngine.TextGenerationSettings _o = (UnityEngine.TextGenerationSettings)o;
     _o.resizeTextForBestFit = (System.Boolean)v;
 }
예제 #13
0
 static void set_generateOutOfBounds_17(ref object o, object v)
 {
     UnityEngine.TextGenerationSettings _o = (UnityEngine.TextGenerationSettings)o;
     _o.generateOutOfBounds = (System.Boolean)v;
 }
예제 #14
0
 static void set_scaleFactor_5(ref object o, object v)
 {
     UnityEngine.TextGenerationSettings _o = (UnityEngine.TextGenerationSettings)o;
     _o.scaleFactor = (System.Single)v;
 }
예제 #15
0
 static void set_richText_4(ref object o, object v)
 {
     UnityEngine.TextGenerationSettings _o = (UnityEngine.TextGenerationSettings)o;
     _o.richText = (System.Boolean)v;
 }
예제 #16
0
 static void set_lineSpacing_3(ref object o, object v)
 {
     UnityEngine.TextGenerationSettings _o = (UnityEngine.TextGenerationSettings)o;
     _o.lineSpacing = (System.Single)v;
 }
예제 #17
0
 static void set_fontSize_2(ref object o, object v)
 {
     UnityEngine.TextGenerationSettings _o = (UnityEngine.TextGenerationSettings)o;
     _o.fontSize = (System.Int32)v;
 }
예제 #18
0
 static void set_color_1(ref object o, object v)
 {
     UnityEngine.TextGenerationSettings _o = (UnityEngine.TextGenerationSettings)o;
     _o.color = (UnityEngine.Color)v;
 }
예제 #19
0
 static void set_font_0(ref object o, object v)
 {
     UnityEngine.TextGenerationSettings _o = (UnityEngine.TextGenerationSettings)o;
     _o.font = (UnityEngine.Font)v;
 }
예제 #20
0
 static void set_generationExtents_15(ref object o, object v)
 {
     UnityEngine.TextGenerationSettings _o = (UnityEngine.TextGenerationSettings)o;
     _o.generationExtents = (UnityEngine.Vector2)v;
 }
예제 #21
0
 static void set_pivot_16(ref object o, object v)
 {
     UnityEngine.TextGenerationSettings _o = (UnityEngine.TextGenerationSettings)o;
     _o.pivot = (UnityEngine.Vector2)v;
 }
예제 #22
0
 static void set_textAnchor_7(ref object o, object v)
 {
     UnityEngine.TextGenerationSettings _o = (UnityEngine.TextGenerationSettings)o;
     _o.textAnchor = (UnityEngine.TextAnchor)v;
 }
예제 #23
0
 static void set_fontStyle_6(ref object o, object v)
 {
     UnityEngine.TextGenerationSettings _o = (UnityEngine.TextGenerationSettings)o;
     _o.fontStyle = (UnityEngine.FontStyle)v;
 }
예제 #24
0
 static void set_alignByGeometry_8(ref object o, object v)
 {
     UnityEngine.TextGenerationSettings _o = (UnityEngine.TextGenerationSettings)o;
     _o.alignByGeometry = (System.Boolean)v;
 }