static int _s_set_lineSpacing(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { UnityEngine.UI.FontData __cl_gen_to_be_invoked = (UnityEngine.UI.FontData)translator.FastGetCSObj(L, 1); __cl_gen_to_be_invoked.lineSpacing = (float)LuaAPI.lua_tonumber(L, 2); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(0); }
static int _s_set_alignByGeometry(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { UnityEngine.UI.FontData __cl_gen_to_be_invoked = (UnityEngine.UI.FontData)translator.FastGetCSObj(L, 1); __cl_gen_to_be_invoked.alignByGeometry = LuaAPI.lua_toboolean(L, 2); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(0); }
static int _s_set_font(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { UnityEngine.UI.FontData __cl_gen_to_be_invoked = (UnityEngine.UI.FontData)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); }
static int _g_get_verticalOverflow(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { UnityEngine.UI.FontData __cl_gen_to_be_invoked = (UnityEngine.UI.FontData)translator.FastGetCSObj(L, 1); translator.Push(L, __cl_gen_to_be_invoked.verticalOverflow); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int _s_set_alignment(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.UI.FontData gen_to_be_invoked = (UnityEngine.UI.FontData)translator.FastGetCSObj(L, 1); UnityEngine.TextAnchor gen_value; translator.Get(L, 2, out gen_value); gen_to_be_invoked.alignment = gen_value; } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _s_set_horizontalOverflow(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { UnityEngine.UI.FontData __cl_gen_to_be_invoked = (UnityEngine.UI.FontData)translator.FastGetCSObj(L, 1); UnityEngine.HorizontalWrapMode __cl_gen_value; translator.Get(L, 2, out __cl_gen_value); __cl_gen_to_be_invoked.horizontalOverflow = __cl_gen_value; } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(0); }
static int _s_set_verticalOverflow(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.UI.FontData gen_to_be_invoked = (UnityEngine.UI.FontData)translator.FastGetCSObj(L, 1); UnityEngine.VerticalWrapMode gen_value; translator.Get(L, 2, out gen_value); gen_to_be_invoked.verticalOverflow = gen_value; } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static StackObject *get_verticalOverflow_21(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.UI.FontData instance_of_this_method = (UnityEngine.UI.FontData) typeof(UnityEngine.UI.FontData).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.verticalOverflow; return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method)); }
static StackObject *get_richText_17(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, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.UI.FontData instance_of_this_method = (UnityEngine.UI.FontData) typeof(UnityEngine.UI.FontData).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.richText; __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return(__ret + 1); }
/// <summary> /// Write the specified value using the writer. /// </summary> /// <param name="value">Value.</param> /// <param name="writer">Writer.</param> public override void Write(object value, ISaveGameWriter writer) { UnityEngine.UI.FontData fontData = (UnityEngine.UI.FontData)value; writer.WriteProperty("font", fontData.font); writer.WriteProperty("fontSize", fontData.fontSize); writer.WriteProperty("fontStyle", fontData.fontStyle); writer.WriteProperty("bestFit", fontData.bestFit); writer.WriteProperty("minSize", fontData.minSize); writer.WriteProperty("maxSize", fontData.maxSize); writer.WriteProperty("alignment", fontData.alignment); writer.WriteProperty("alignByGeometry", fontData.alignByGeometry); writer.WriteProperty("richText", fontData.richText); writer.WriteProperty("horizontalOverflow", fontData.horizontalOverflow); writer.WriteProperty("verticalOverflow", fontData.verticalOverflow); writer.WriteProperty("lineSpacing", fontData.lineSpacing); }
static StackObject *get_lineSpacing_23(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.UI.FontData instance_of_this_method = (UnityEngine.UI.FontData) typeof(UnityEngine.UI.FontData).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.lineSpacing; __ret->ObjectType = ObjectTypes.Float; *(float *)&__ret->Value = result_of_this_method; return(__ret + 1); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { UnityEngine.UI.FontData gen_ret = new UnityEngine.UI.FontData(); 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.UI.FontData constructor!")); }
static StackObject *set_maxSize_12(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); System.Int32 @value = ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.UI.FontData instance_of_this_method = (UnityEngine.UI.FontData) typeof(UnityEngine.UI.FontData).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.maxSize = value; return(__ret); }
static StackObject *set_lineSpacing_24(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.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); System.Single @value = *(float *)&ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.UI.FontData instance_of_this_method = (UnityEngine.UI.FontData) typeof(UnityEngine.UI.FontData).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.lineSpacing = value; return(__ret); }
static StackObject *set_alignByGeometry_16(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.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); System.Boolean @value = ptr_of_this_method->Value == 1; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.UI.FontData instance_of_this_method = (UnityEngine.UI.FontData) typeof(UnityEngine.UI.FontData).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.alignByGeometry = value; return(__ret); }
static StackObject *set_verticalOverflow_22(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.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.VerticalWrapMode @value = (UnityEngine.VerticalWrapMode) typeof(UnityEngine.VerticalWrapMode).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.UI.FontData instance_of_this_method = (UnityEngine.UI.FontData) typeof(UnityEngine.UI.FontData).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.verticalOverflow = value; return(__ret); }
/// <summary> /// Read the data into the specified value. /// </summary> /// <param name="value">Value.</param> /// <param name="reader">Reader.</param> public override void ReadInto(object value, ISaveGameReader reader) { UnityEngine.UI.FontData fontData = (UnityEngine.UI.FontData)value; foreach (string property in reader.Properties) { switch (property) { case "font": if (fontData.font == null) { fontData.font = reader.ReadProperty <UnityEngine.Font> (); } else { reader.ReadIntoProperty <UnityEngine.Font> (fontData.font); } break; case "fontSize": fontData.fontSize = reader.ReadProperty <System.Int32> (); break; case "fontStyle": fontData.fontStyle = reader.ReadProperty <UnityEngine.FontStyle> (); break; case "bestFit": fontData.bestFit = reader.ReadProperty <System.Boolean> (); break; case "minSize": fontData.minSize = reader.ReadProperty <System.Int32> (); break; case "maxSize": fontData.maxSize = reader.ReadProperty <System.Int32> (); break; case "alignment": fontData.alignment = reader.ReadProperty <UnityEngine.TextAnchor> (); break; case "alignByGeometry": fontData.alignByGeometry = reader.ReadProperty <System.Boolean> (); break; case "richText": fontData.richText = reader.ReadProperty <System.Boolean> (); break; case "horizontalOverflow": fontData.horizontalOverflow = reader.ReadProperty <UnityEngine.HorizontalWrapMode> (); break; case "verticalOverflow": fontData.verticalOverflow = reader.ReadProperty <UnityEngine.VerticalWrapMode> (); break; case "lineSpacing": fontData.lineSpacing = reader.ReadProperty <System.Single> (); break; } } }
/// <summary> /// Read the data using the reader. /// </summary> /// <param name="reader">Reader.</param> public override object Read(ISaveGameReader reader) { UnityEngine.UI.FontData fontData = new UnityEngine.UI.FontData(); ReadInto(fontData, reader); return(fontData); }