static int ToString(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); Observers.Notification obj = (Observers.Notification)ToLua.CheckObject(L, 1, typeof(Observers.Notification)); string o = obj.ToString(); LuaDLL.lua_pushstring(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_Name(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Observers.Notification obj = (Observers.Notification)o; string ret = obj.Name; LuaDLL.lua_pushstring(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Name on a nil value" : e.Message)); } }
static int set_Type(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Observers.Notification obj = (Observers.Notification)o; string arg0 = ToLua.CheckString(L, 2); obj.Type = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Type on a nil value" : e.Message)); } }
static int set_Body(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Observers.Notification obj = (Observers.Notification)o; object arg0 = ToLua.ToVarObject(L, 2); obj.Body = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Body on a nil value" : e.Message)); } }
static int get_Body(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Observers.Notification obj = (Observers.Notification)o; object ret = obj.Body; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Body on a nil value" : e.Message)); } }
static int _CreateObservers_Notification(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 1) { string arg0 = ToLua.CheckString(L, 1); Observers.Notification obj = new Observers.Notification(arg0); ToLua.PushObject(L, obj); return(1); } else if (count == 2 && TypeChecker.CheckTypes(L, typeof(string), typeof(object))) { string arg0 = ToLua.CheckString(L, 1); object arg1 = ToLua.ToVarObject(L, 2); Observers.Notification obj = new Observers.Notification(arg0, arg1); ToLua.PushObject(L, obj); return(1); } else if (count == 3 && TypeChecker.CheckTypes(L, typeof(string), typeof(object), typeof(string))) { string arg0 = ToLua.CheckString(L, 1); object arg1 = ToLua.ToVarObject(L, 2); string arg2 = ToLua.CheckString(L, 3); Observers.Notification obj = new Observers.Notification(arg0, arg1, arg2); ToLua.PushObject(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: Observers.Notification.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }