static int get_key(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameFramework.MessageBody obj = (GameFramework.MessageBody)o; string ret = obj.key; LuaDLL.lua_pushstring(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index key on a nil value")); } }
static int _CreateGameFramework_MessageBody(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 1) { string arg0 = ToLua.CheckString(L, 1); GameFramework.MessageBody obj = new GameFramework.MessageBody(arg0); ToLua.PushObject(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: GameFramework.MessageBody.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }