static int get_mode(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FXTypeWriter obj = (FXTypeWriter)o; FXTypeWriter.Mode ret = obj.mode; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index mode on a nil value" : e.Message)); } }
static int set_mode(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FXTypeWriter obj = (FXTypeWriter)o; FXTypeWriter.Mode arg0 = (FXTypeWriter.Mode)ToLua.CheckObject(L, 2, typeof(FXTypeWriter.Mode)); obj.mode = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index mode on a nil value" : e.Message)); } }