static int IntToEnum(IntPtr L) { int arg0 = (int)LuaDLL.lua_tonumber(L, 1); FairyGUI.FillType o = (FairyGUI.FillType)arg0; ToLua.Push(L, o); return(1); }
static int set_fill(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.GLoader obj = (FairyGUI.GLoader)o; FairyGUI.FillType arg0 = (FairyGUI.FillType)ToLua.CheckObject(L, 2, typeof(FairyGUI.FillType)); obj.fill = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index fill on a nil value" : e.Message)); } }
static int get_fill(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.GLoader obj = (FairyGUI.GLoader)o; FairyGUI.FillType ret = obj.fill; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index fill on a nil value" : e.Message)); } }