diff options
author | Fabian <Fabi@users.noreply.github.com> | 2024-02-12 16:42:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-12 16:42:08 +0100 |
commit | 9fa521194b374cc55953e7a9ab6d531fdd39a838 (patch) | |
tree | 0e19b0a292f9154c1d2d09674452fdbd3509604a /src/server/game/Services/ClubMembershipService.h | |
parent | 13398a9710e3414bc1ad4aacd3ec0bfed9ef2593 (diff) |
Core/Guilds: Implemented club basics to restore old guild functionality (#29587)
* Updated BGS status names enum. Values bigger than 0x0000AFCD & some others are preserved for compatibility reasons. They were not in the client by default.
* Added services & service methods required for guilds.
* Allow club stream messages the usage of LANG_UNIVERSAL.
Co-authored-by: Shauren <shauren.trinity@gmail.com>
Diffstat (limited to 'src/server/game/Services/ClubMembershipService.h')
-rw-r--r-- | src/server/game/Services/ClubMembershipService.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/server/game/Services/ClubMembershipService.h b/src/server/game/Services/ClubMembershipService.h new file mode 100644 index 00000000000..f914f8e25cd --- /dev/null +++ b/src/server/game/Services/ClubMembershipService.h @@ -0,0 +1,40 @@ +/* + * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along + * with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef ClubMembershipService_h__ +#define ClubMembershipService_h__ + +#include "WorldserverService.h" +#include "club_membership_service.pb.h" + +namespace Battlenet::Services +{ +class ClubMembershipService : public WorldserverService<club::v1::membership::ClubMembershipService> +{ + typedef WorldserverService<club::v1::membership::ClubMembershipService> BaseService; + +public: + ClubMembershipService(WorldSession* session); + + uint32 HandleSubscribe(club::v1::membership::SubscribeRequest const* request, club::v1::membership::SubscribeResponse* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation) override; + uint32 HandleUnsubscribe(club::v1::membership::UnsubscribeRequest const* request, NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation) override; + + static std::unique_ptr<club::v1::MemberId> CreateClubMemberId(ObjectGuid guid); +}; +} + +#endif // ClubMembershipService_h__ |