static int GetConsume(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 3); StoreGoodsConfig obj = (StoreGoodsConfig)LuaScriptMgr.GetNetObjectSelf(L, 1, "StoreGoodsConfig"); uint arg0 = (uint)LuaScriptMgr.GetNumber(L, 2); uint arg1 = (uint)LuaScriptMgr.GetNumber(L, 3); fogs.proto.config.StoreRefreshConsumeConfig o = obj.GetConsume(arg0,arg1); LuaScriptMgr.PushObject(L, o); return 1; }
static int _Createfogs_proto_config_StoreRefreshConsumeConfig(IntPtr L) { int count = LuaDLL.lua_gettop(L); if (count == 0) { fogs.proto.config.StoreRefreshConsumeConfig obj = new fogs.proto.config.StoreRefreshConsumeConfig(); LuaScriptMgr.PushObject(L, obj); return(1); } else { LuaDLL.luaL_error(L, "invalid arguments to method: fogs.proto.config.StoreRefreshConsumeConfig.New"); } return(0); }
static int get_times(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); fogs.proto.config.StoreRefreshConsumeConfig obj = (fogs.proto.config.StoreRefreshConsumeConfig)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name times"); } else { LuaDLL.luaL_error(L, "attempt to index times on a nil value"); } } LuaScriptMgr.Push(L, obj.times); return(1); }
static int set_consume(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); fogs.proto.config.StoreRefreshConsumeConfig obj = (fogs.proto.config.StoreRefreshConsumeConfig)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name consume"); } else { LuaDLL.luaL_error(L, "attempt to index consume on a nil value"); } } obj.consume = (uint)LuaScriptMgr.GetNumber(L, 3); return(0); }