static int _CreateChatContent(IntPtr L) { int count = LuaDLL.lua_gettop(L); if (count == 0) { fogs.proto.msg.ChatContent obj = new fogs.proto.msg.ChatContent(); LuaScriptMgr.PushObject(L, obj); return(1); } else { LuaDLL.luaL_error(L, "invalid arguments to method: fogs.proto.msg.ChatContent.New"); } return(0); }
static int get_ogri_name(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); fogs.proto.msg.ChatContent obj = (fogs.proto.msg.ChatContent)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name ogri_name"); } else { LuaDLL.luaL_error(L, "attempt to index ogri_name on a nil value"); } } LuaScriptMgr.Push(L, obj.ogri_name); return(1); }
static int set_acc_id(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); fogs.proto.msg.ChatContent obj = (fogs.proto.msg.ChatContent)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name acc_id"); } else { LuaDLL.luaL_error(L, "attempt to index acc_id on a nil value"); } } obj.acc_id = (uint)LuaScriptMgr.GetNumber(L, 3); return(0); }