static int IntToEnum(IntPtr L) { int arg0 = (int)LuaDLL.lua_tonumber(L, 1); FairyGUI.AlignType o = (FairyGUI.AlignType)arg0; ToLua.Push(L, o); return(1); }
static int set_align(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.GTextField obj = (FairyGUI.GTextField)o; FairyGUI.AlignType arg0 = (FairyGUI.AlignType)ToLua.CheckObject(L, 2, typeof(FairyGUI.AlignType)); obj.align = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index align on a nil value" : e.Message)); } }
static int get_align(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.GTextField obj = (FairyGUI.GTextField)o; FairyGUI.AlignType ret = obj.align; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index align on a nil value" : e.Message)); } }
static StackObject *set_align_12(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); FairyGUI.AlignType @value = (FairyGUI.AlignType) typeof(FairyGUI.AlignType).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); FairyGUI.GTextField instance_of_this_method = (FairyGUI.GTextField) typeof(FairyGUI.GTextField).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.align = value; return(__ret); }