From 893f4323820dc13eb71109f00f594506d6287777 Mon Sep 17 00:00:00 2001 From: Skull <86374920+skkuull@users.noreply.github.com> Date: Fri, 9 Sep 2022 17:06:54 +0300 Subject: [PATCH] label demonware services and tasks --- .../game/demonware/servers/lobby_server.cpp | 10 +- src/client/game/demonware/services.hpp | 15 +- .../game/demonware/services/bdLeague.cpp | 97 +++++ .../game/demonware/services/bdLeague.hpp | 23 + .../game/demonware/services/bdLeague2.cpp | 41 ++ .../game/demonware/services/bdLeague2.hpp | 16 + .../demonware/services/bdMarketingComms.cpp | 12 +- .../demonware/services/bdMarketingComms.hpp | 3 +- .../game/demonware/services/bdMarketplace.cpp | 84 ++++ .../game/demonware/services/bdMarketplace.hpp | 21 + .../game/demonware/services/bdMatchMaking.cpp | 129 ++++++ .../game/demonware/services/bdMatchMaking.hpp | 27 ++ .../demonware/services/bdMatchMaking2.cpp | 57 --- .../demonware/services/bdMatchMaking2.hpp | 18 - .../game/demonware/services/bdProfiles.cpp | 60 ++- .../game/demonware/services/bdProfiles.hpp | 9 +- .../services/bdPublisherVariables.cpp | 17 + .../services/bdPublisherVariables.hpp | 13 + .../game/demonware/services/bdTeams.cpp | 409 ++++++++++++++++++ .../game/demonware/services/bdTeams.hpp | 62 +++ .../game/demonware/services/bdUNK80.cpp | 66 --- .../game/demonware/services/bdUNK80.hpp | 19 - .../game/demonware/services/bdUNK95.cpp | 17 - .../game/demonware/services/bdUNK95.hpp | 13 - .../game/demonware/services/bdUserGroups.cpp | 97 +++++ .../game/demonware/services/bdUserGroups.hpp | 23 + 26 files changed, 1153 insertions(+), 205 deletions(-) create mode 100644 src/client/game/demonware/services/bdLeague.cpp create mode 100644 src/client/game/demonware/services/bdLeague.hpp create mode 100644 src/client/game/demonware/services/bdLeague2.cpp create mode 100644 src/client/game/demonware/services/bdLeague2.hpp create mode 100644 src/client/game/demonware/services/bdMarketplace.cpp create mode 100644 src/client/game/demonware/services/bdMarketplace.hpp create mode 100644 src/client/game/demonware/services/bdMatchMaking.cpp create mode 100644 src/client/game/demonware/services/bdMatchMaking.hpp delete mode 100644 src/client/game/demonware/services/bdMatchMaking2.cpp delete mode 100644 src/client/game/demonware/services/bdMatchMaking2.hpp create mode 100644 src/client/game/demonware/services/bdPublisherVariables.cpp create mode 100644 src/client/game/demonware/services/bdPublisherVariables.hpp create mode 100644 src/client/game/demonware/services/bdTeams.cpp create mode 100644 src/client/game/demonware/services/bdTeams.hpp delete mode 100644 src/client/game/demonware/services/bdUNK80.cpp delete mode 100644 src/client/game/demonware/services/bdUNK80.hpp delete mode 100644 src/client/game/demonware/services/bdUNK95.cpp delete mode 100644 src/client/game/demonware/services/bdUNK95.hpp create mode 100644 src/client/game/demonware/services/bdUserGroups.cpp create mode 100644 src/client/game/demonware/services/bdUserGroups.hpp diff --git a/src/client/game/demonware/servers/lobby_server.cpp b/src/client/game/demonware/servers/lobby_server.cpp index 4127f68b..09f0cc66 100644 --- a/src/client/game/demonware/servers/lobby_server.cpp +++ b/src/client/game/demonware/servers/lobby_server.cpp @@ -16,6 +16,7 @@ namespace demonware this->register_service(); this->register_service(); this->register_service(); + this->register_service(); this->register_service(); this->register_service(); this->register_service(); @@ -23,11 +24,14 @@ namespace demonware this->register_service(); this->register_service(); this->register_service(); - this->register_service(); - this->register_service(); + this->register_service(); + this->register_service(); + this->register_service(); + this->register_service(); + this->register_service(); this->register_service(); this->register_service(); - this->register_service(); + this->register_service(); this->register_service(); }; diff --git a/src/client/game/demonware/services.hpp b/src/client/game/demonware/services.hpp index 86326c7e..d72be24b 100644 --- a/src/client/game/demonware/services.hpp +++ b/src/client/game/demonware/services.hpp @@ -7,14 +7,13 @@ #include "service.hpp" #include "servers/service_server.hpp" -//#include "services/bdTeams.hpp" // 3 +#include "services/bdTeams.hpp" // 3 #include "services/bdStats.hpp" // 4 //#include "services/bdMessaging.hpp" // 6 #include "services/bdProfiles.hpp" // 8 #include "services/bdStorage.hpp" // 10 #include "services/bdTitleUtilities.hpp" // 12 #include "services/bdBandwidthTest.hpp" // 18 -//#include "services/bdMatchMaking.hpp" // 21 #include "services/bdCounters.hpp" // 23 #include "services/bdDML.hpp" // 27 #include "services/bdGroups.hpp" // 28 @@ -24,13 +23,17 @@ #include "services/bdContentStreaming.hpp" // 50 //#include "services/bdTags.hpp" // 52 #include "services/bdUNK63.hpp" // 63 +#include "services/bdUserGroups.hpp" // 65 #include "services/bdEventLog.hpp" // 67 #include "services/bdRichPresence.hpp" // 68 -//#include "services/bdTitleUtilities2.hpp" // 72 -#include "services/bdUNK80.hpp" -#include "services/bdUNK95.hpp" +//#include "services/bdTencent.hpp" // 71 +//#include "services/bdCodOnlineTeams.hpp" // 72 +#include "services/bdMarketplace.hpp" // 80 +#include "services/bdLeague.hpp" // 81 +#include "services/bdLeague2.hpp" // 82 +#include "services/bdPublisherVariables.hpp"// 95 // AccountLinking // 86 #include "services/bdPresence.hpp" //103 #include "services/bdMarketingComms.hpp" //104 -#include "services/bdMatchMaking2.hpp" //138 +#include "services/bdMatchMaking.hpp" //138 #include "services/bdMarketing.hpp" //139 diff --git a/src/client/game/demonware/services/bdLeague.cpp b/src/client/game/demonware/services/bdLeague.cpp new file mode 100644 index 00000000..add6d0d7 --- /dev/null +++ b/src/client/game/demonware/services/bdLeague.cpp @@ -0,0 +1,97 @@ +#include +#include "../services.hpp" + +namespace demonware +{ + bdLeague::bdLeague() : service(81, "bdLeague") + { + this->register_task(1, &bdLeague::getTeamID); + this->register_task(2, &bdLeague::getTeamIDsForUser); + this->register_task(3, &bdLeague::getTeamSubdivisions); + this->register_task(4, &bdLeague::setTeamName); + this->register_task(5, &bdLeague::setTeamIcon); + this->register_task(6, &bdLeague::getTeamInfos); + this->register_task(7, &bdLeague::getTeamLeaguesAndSubdivisions); + this->register_task(8, &bdLeague::getTeamMemberInfos); + this->register_task(10, &bdLeague::incrementGamesPlayedCount); + this->register_task(20, &bdLeague::getSubdivisionInfos); + this->register_task(21, &bdLeague::getTeamSubdivisionHistory); + } + + void bdLeague::getTeamID(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdLeague::getTeamIDsForUser(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdLeague::getTeamSubdivisions(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdLeague::setTeamName(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdLeague::setTeamIcon(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdLeague::getTeamInfos(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdLeague::getTeamLeaguesAndSubdivisions(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdLeague::getTeamMemberInfos(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdLeague::incrementGamesPlayedCount(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdLeague::getSubdivisionInfos(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdLeague::getTeamSubdivisionHistory(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } +} \ No newline at end of file diff --git a/src/client/game/demonware/services/bdLeague.hpp b/src/client/game/demonware/services/bdLeague.hpp new file mode 100644 index 00000000..1df36bb8 --- /dev/null +++ b/src/client/game/demonware/services/bdLeague.hpp @@ -0,0 +1,23 @@ +#pragma once + +namespace demonware +{ + class bdLeague final : public service + { + public: + bdLeague(); + + private: + void getTeamID(service_server* server, byte_buffer* buffer) const; + void getTeamIDsForUser(service_server* server, byte_buffer* buffer) const; + void getTeamSubdivisions(service_server* server, byte_buffer* buffer) const; + void setTeamName(service_server* server, byte_buffer* buffer) const; + void setTeamIcon(service_server* server, byte_buffer* buffer) const; + void getTeamInfos(service_server* server, byte_buffer* buffer) const; + void getTeamLeaguesAndSubdivisions(service_server* server, byte_buffer* buffer) const; + void getTeamMemberInfos(service_server* server, byte_buffer* buffer) const; + void incrementGamesPlayedCount(service_server* server, byte_buffer* buffer) const; + void getSubdivisionInfos(service_server* server, byte_buffer* buffer) const; + void getTeamSubdivisionHistory(service_server* server, byte_buffer* buffer) const; + }; +} \ No newline at end of file diff --git a/src/client/game/demonware/services/bdLeague2.cpp b/src/client/game/demonware/services/bdLeague2.cpp new file mode 100644 index 00000000..edb6a36e --- /dev/null +++ b/src/client/game/demonware/services/bdLeague2.cpp @@ -0,0 +1,41 @@ +#include +#include "../services.hpp" + +namespace demonware +{ + bdLeague2::bdLeague2() : service(82, "bdLeague") + { + this->register_task(1, &bdLeague2::writeStats); + this->register_task(2, &bdLeague2::readStatsByTeamID); + this->register_task(3, &bdLeague2::readStatsByRank); + this->register_task(4, &bdLeague2::readStatsByPivot); + } + + void bdLeague2::writeStats(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdLeague2::readStatsByTeamID(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdLeague2::readStatsByRank(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdLeague2::readStatsByPivot(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } +} \ No newline at end of file diff --git a/src/client/game/demonware/services/bdLeague2.hpp b/src/client/game/demonware/services/bdLeague2.hpp new file mode 100644 index 00000000..4737955b --- /dev/null +++ b/src/client/game/demonware/services/bdLeague2.hpp @@ -0,0 +1,16 @@ +#pragma once + +namespace demonware +{ + class bdLeague2 final : public service + { + public: + bdLeague2(); + + private: + void writeStats(service_server* server, byte_buffer* buffer) const; + void readStatsByTeamID(service_server* server, byte_buffer* buffer) const; + void readStatsByRank(service_server* server, byte_buffer* buffer) const; + void readStatsByPivot(service_server* server, byte_buffer* buffer) const; + }; +} \ No newline at end of file diff --git a/src/client/game/demonware/services/bdMarketingComms.cpp b/src/client/game/demonware/services/bdMarketingComms.cpp index 5cbbe7bb..409b278a 100644 --- a/src/client/game/demonware/services/bdMarketingComms.cpp +++ b/src/client/game/demonware/services/bdMarketingComms.cpp @@ -5,10 +5,18 @@ namespace demonware { bdMarketingComms::bdMarketingComms() : service(104, "bdMarketingComms") { - this->register_task(1, &bdMarketingComms::get_messages); + this->register_task(1, &bdMarketingComms::getMessages); + this->register_task(4, &bdMarketingComms::reportFullMessagesViewed); } - void bdMarketingComms::get_messages(service_server* server, byte_buffer* /*buffer*/) const + void bdMarketingComms::getMessages(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdMarketingComms::reportFullMessagesViewed(service_server* server, byte_buffer* /*buffer*/) const { // TODO: auto reply = server->create_reply(this->task_id()); diff --git a/src/client/game/demonware/services/bdMarketingComms.hpp b/src/client/game/demonware/services/bdMarketingComms.hpp index 76179493..c973d7ae 100644 --- a/src/client/game/demonware/services/bdMarketingComms.hpp +++ b/src/client/game/demonware/services/bdMarketingComms.hpp @@ -8,6 +8,7 @@ namespace demonware bdMarketingComms(); private: - void get_messages(service_server* server, byte_buffer* buffer) const; + void getMessages(service_server* server, byte_buffer* buffer) const; + void reportFullMessagesViewed(service_server* server, byte_buffer* buffer) const; }; } diff --git a/src/client/game/demonware/services/bdMarketplace.cpp b/src/client/game/demonware/services/bdMarketplace.cpp new file mode 100644 index 00000000..3eb3f165 --- /dev/null +++ b/src/client/game/demonware/services/bdMarketplace.cpp @@ -0,0 +1,84 @@ +#include +#include "../services.hpp" + +#include + +namespace demonware +{ + bdMarketplace::bdMarketplace() : service(80, "bdMarketplace") + { + this->register_task(42, &bdMarketplace::startExchangeTransaction); // COD POINTS purchase ? + //this->register_task(43, &bdMarketplace::purchaseOnSteamInitialize); // COD POINTS purchase ? + this->register_task(49, &bdMarketplace::getExpiredInventoryItems); + this->register_task(60, &bdMarketplace::steamProcessDurable); + this->register_task(122, &bdMarketplace::purchaseSkus); + this->register_task(130, &bdMarketplace::getBalance); + this->register_task(165, &bdMarketplace::getInventoryPaginated); + this->register_task(193, &bdMarketplace::putPlayersInventoryItems); + this->register_task(232, &bdMarketplace::getEntitlements); + } + + void bdMarketplace::startExchangeTransaction(service_server* server, byte_buffer* buffer) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdMarketplace::purchaseOnSteamInitialize(service_server* server, byte_buffer* buffer) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdMarketplace::getExpiredInventoryItems(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdMarketplace::steamProcessDurable(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdMarketplace::purchaseSkus(service_server* server, byte_buffer* buffer) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdMarketplace::getBalance(service_server* server, byte_buffer* buffer) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + + reply->send(); + } + + void bdMarketplace::getInventoryPaginated(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdMarketplace::putPlayersInventoryItems(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdMarketplace::getEntitlements(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } +} diff --git a/src/client/game/demonware/services/bdMarketplace.hpp b/src/client/game/demonware/services/bdMarketplace.hpp new file mode 100644 index 00000000..7b2ebf27 --- /dev/null +++ b/src/client/game/demonware/services/bdMarketplace.hpp @@ -0,0 +1,21 @@ +#pragma once + +namespace demonware +{ + class bdMarketplace final : public service + { + public: + bdMarketplace(); + + private: + void startExchangeTransaction(service_server* server, byte_buffer* buffer) const; + void purchaseOnSteamInitialize(service_server* server, byte_buffer* buffer) const; + void getExpiredInventoryItems(service_server* server, byte_buffer* buffer) const; + void steamProcessDurable(service_server* server, byte_buffer* buffer) const; + void purchaseSkus(service_server* server, byte_buffer* buffer) const; + void getBalance(service_server* server, byte_buffer* buffer) const; + void getInventoryPaginated(service_server* server, byte_buffer* buffer) const; + void putPlayersInventoryItems(service_server* server, byte_buffer* buffer) const; + void getEntitlements(service_server* server, byte_buffer* buffer) const; + }; +} diff --git a/src/client/game/demonware/services/bdMatchMaking.cpp b/src/client/game/demonware/services/bdMatchMaking.cpp new file mode 100644 index 00000000..6b59d1eb --- /dev/null +++ b/src/client/game/demonware/services/bdMatchMaking.cpp @@ -0,0 +1,129 @@ +#include +#include "../services.hpp" + +namespace demonware +{ + bdMatchMaking::bdMatchMaking() : service(138, "bdMatchMaking") + { + this->register_task(1, &bdMatchMaking::createSession); + this->register_task(2, &bdMatchMaking::updateSession); + this->register_task(3, &bdMatchMaking::deleteSession); + this->register_task(4, &bdMatchMaking::findSessionFromID); + this->register_task(5, &bdMatchMaking::findSessions); + this->register_task(6, &bdMatchMaking::notifyJoin); + this->register_task(8, &bdMatchMaking::inviteToSession); + this->register_task(9, &bdMatchMaking::submitPerformance); + this->register_task(10, &bdMatchMaking::getPerformanceValues); + this->register_task(11, &bdMatchMaking::getSessionInvites); + this->register_task(12, &bdMatchMaking::updateSessionPlayers); + this->register_task(13, &bdMatchMaking::findSessionsPaged); + this->register_task(14, &bdMatchMaking::findSessionsByEntityIDs); + this->register_task(15, &bdMatchMaking::findSessionsFromIDs); + this->register_task(16, &bdMatchMaking::findSessionsTwoPass); + } + + void bdMatchMaking::createSession(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdMatchMaking::updateSession(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdMatchMaking::deleteSession(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdMatchMaking::findSessionFromID(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdMatchMaking::findSessions(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdMatchMaking::getPerformanceValues(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdMatchMaking::getSessionInvites(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdMatchMaking::updateSessionPlayers(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdMatchMaking::submitPerformance(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdMatchMaking::notifyJoin(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdMatchMaking::inviteToSession(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdMatchMaking::findSessionsPaged(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdMatchMaking::findSessionsByEntityIDs(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdMatchMaking::findSessionsFromIDs(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdMatchMaking::findSessionsTwoPass(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } +} diff --git a/src/client/game/demonware/services/bdMatchMaking.hpp b/src/client/game/demonware/services/bdMatchMaking.hpp new file mode 100644 index 00000000..0cc1a79c --- /dev/null +++ b/src/client/game/demonware/services/bdMatchMaking.hpp @@ -0,0 +1,27 @@ +#pragma once + +namespace demonware +{ + class bdMatchMaking final : public service + { + public: + bdMatchMaking(); + + private: + void createSession(service_server* server, byte_buffer* buffer) const; + void updateSession(service_server* server, byte_buffer* buffer) const; + void deleteSession(service_server* server, byte_buffer* buffer) const; + void findSessionFromID(service_server* server, byte_buffer* buffer) const; + void findSessions(service_server* server, byte_buffer* buffer) const; + void inviteToSession(service_server* server, byte_buffer* buffer) const; + void submitPerformance(service_server* server, byte_buffer* buffer) const; + void notifyJoin(service_server* server, byte_buffer* buffer) const; + void getPerformanceValues(service_server* server, byte_buffer* buffer) const; + void getSessionInvites(service_server* server, byte_buffer* buffer) const; + void updateSessionPlayers(service_server* server, byte_buffer* buffer) const; + void findSessionsPaged(service_server* server, byte_buffer* buffer) const; + void findSessionsByEntityIDs(service_server* server, byte_buffer* buffer) const; + void findSessionsFromIDs(service_server* server, byte_buffer* buffer) const; + void findSessionsTwoPass(service_server* server, byte_buffer* buffer) const; + }; +} diff --git a/src/client/game/demonware/services/bdMatchMaking2.cpp b/src/client/game/demonware/services/bdMatchMaking2.cpp deleted file mode 100644 index 4e9a9ea8..00000000 --- a/src/client/game/demonware/services/bdMatchMaking2.cpp +++ /dev/null @@ -1,57 +0,0 @@ -#include -#include "../services.hpp" - -namespace demonware -{ - bdMatchMaking2::bdMatchMaking2() : service(138, "bdMatchMaking2") - { - this->register_task(1, &bdMatchMaking2::unk1); - this->register_task(2, &bdMatchMaking2::unk2); - this->register_task(3, &bdMatchMaking2::unk3); - this->register_task(5, &bdMatchMaking2::unk5); - this->register_task(10, &bdMatchMaking2::unk10); - this->register_task(16, &bdMatchMaking2::unk16); - } - - void bdMatchMaking2::unk1(service_server* server, byte_buffer* /*buffer*/) const - { - // TODO: - auto reply = server->create_reply(this->task_id()); - reply->send(); - } - - void bdMatchMaking2::unk2(service_server* server, byte_buffer* /*buffer*/) const - { - // TODO: - auto reply = server->create_reply(this->task_id()); - reply->send(); - } - - void bdMatchMaking2::unk3(service_server* server, byte_buffer* /*buffer*/) const - { - // TODO: - auto reply = server->create_reply(this->task_id()); - reply->send(); - } - - void bdMatchMaking2::unk5(service_server* server, byte_buffer* /*buffer*/) const - { - // TODO: - auto reply = server->create_reply(this->task_id()); - reply->send(); - } - - void bdMatchMaking2::unk10(service_server* server, byte_buffer* /*buffer*/) const - { - // TODO: - auto reply = server->create_reply(this->task_id()); - reply->send(); - } - - void bdMatchMaking2::unk16(service_server* server, byte_buffer* /*buffer*/) const - { - // TODO: - auto reply = server->create_reply(this->task_id()); - reply->send(); - } -} diff --git a/src/client/game/demonware/services/bdMatchMaking2.hpp b/src/client/game/demonware/services/bdMatchMaking2.hpp deleted file mode 100644 index 30fa4ee8..00000000 --- a/src/client/game/demonware/services/bdMatchMaking2.hpp +++ /dev/null @@ -1,18 +0,0 @@ -#pragma once - -namespace demonware -{ - class bdMatchMaking2 final : public service - { - public: - bdMatchMaking2(); - - private: - void unk1(service_server* server, byte_buffer* buffer) const; - void unk2(service_server* server, byte_buffer* buffer) const; - void unk3(service_server* server, byte_buffer* buffer) const; - void unk5(service_server* server, byte_buffer* buffer) const; - void unk10(service_server* server, byte_buffer* buffer) const; - void unk16(service_server* server, byte_buffer* buffer) const; - }; -} diff --git a/src/client/game/demonware/services/bdProfiles.cpp b/src/client/game/demonware/services/bdProfiles.cpp index ded5fac4..ac7a466a 100644 --- a/src/client/game/demonware/services/bdProfiles.cpp +++ b/src/client/game/demonware/services/bdProfiles.cpp @@ -5,10 +5,66 @@ namespace demonware { bdProfiles::bdProfiles() : service(8, "bdProfiles") { - this->register_task(3, &bdProfiles::unk3); + this->register_task(1, &bdProfiles::getPublicInfos); + this->register_task(2, &bdProfiles::getPrivateInfo); + this->register_task(3, &bdProfiles::setPublicInfo); + this->register_task(4, &bdProfiles::setPrivateInfo); + this->register_task(5, &bdProfiles::deleteProfile); + this->register_task(6, &bdProfiles::setPrivateInfoByUserID); + this->register_task(7, &bdProfiles::getPrivateInfoByUserID); + this->register_task(8, &bdProfiles::setPublicInfoByUserID); } - void bdProfiles::unk3(service_server* server, byte_buffer* /*buffer*/) const + void bdProfiles::getPublicInfos(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdProfiles::setPublicInfo(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdProfiles::getPrivateInfo(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdProfiles::setPrivateInfo(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdProfiles::deleteProfile(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdProfiles::setPrivateInfoByUserID(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdProfiles::getPrivateInfoByUserID(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdProfiles::setPublicInfoByUserID(service_server* server, byte_buffer* /*buffer*/) const { // TODO: auto reply = server->create_reply(this->task_id()); diff --git a/src/client/game/demonware/services/bdProfiles.hpp b/src/client/game/demonware/services/bdProfiles.hpp index 3c090e86..b9d0b8e7 100644 --- a/src/client/game/demonware/services/bdProfiles.hpp +++ b/src/client/game/demonware/services/bdProfiles.hpp @@ -8,6 +8,13 @@ namespace demonware bdProfiles(); private: - void unk3(service_server* server, byte_buffer* buffer) const; + void getPublicInfos(service_server* server, byte_buffer* buffer) const; + void getPrivateInfo(service_server* server, byte_buffer* buffer) const; + void setPublicInfo(service_server* server, byte_buffer* buffer) const; + void setPrivateInfo(service_server* server, byte_buffer* buffer) const; + void deleteProfile(service_server* server, byte_buffer* buffer) const; + void setPrivateInfoByUserID(service_server* server, byte_buffer* buffer) const; + void getPrivateInfoByUserID(service_server* server, byte_buffer* buffer) const; + void setPublicInfoByUserID(service_server* server, byte_buffer* buffer) const; }; } diff --git a/src/client/game/demonware/services/bdPublisherVariables.cpp b/src/client/game/demonware/services/bdPublisherVariables.cpp new file mode 100644 index 00000000..73df8a26 --- /dev/null +++ b/src/client/game/demonware/services/bdPublisherVariables.cpp @@ -0,0 +1,17 @@ +#include +#include "../services.hpp" + +namespace demonware +{ + bdPublisherVariables::bdPublisherVariables() : service(95, "bdPublisherVariables") + { + this->register_task(1, &bdPublisherVariables::retrievePublisherVariables); + } + + void bdPublisherVariables::retrievePublisherVariables(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } +} diff --git a/src/client/game/demonware/services/bdPublisherVariables.hpp b/src/client/game/demonware/services/bdPublisherVariables.hpp new file mode 100644 index 00000000..9833602d --- /dev/null +++ b/src/client/game/demonware/services/bdPublisherVariables.hpp @@ -0,0 +1,13 @@ +#pragma once + +namespace demonware +{ + class bdPublisherVariables final : public service + { + public: + bdPublisherVariables(); + + private: + void retrievePublisherVariables(service_server* server, byte_buffer* buffer) const; + }; +} diff --git a/src/client/game/demonware/services/bdTeams.cpp b/src/client/game/demonware/services/bdTeams.cpp new file mode 100644 index 00000000..574cd013 --- /dev/null +++ b/src/client/game/demonware/services/bdTeams.cpp @@ -0,0 +1,409 @@ +#include +#include "../services.hpp" + +namespace demonware +{ + bdTeams::bdTeams() : service(3, "bdTeams") + { + this->register_task(30, &bdTeams::createTeam); + this->register_task(31, &bdTeams::updateTeamName); + this->register_task(32, &bdTeams::promoteMember); + this->register_task(33, &bdTeams::kickMember); + this->register_task(34, &bdTeams::leaveTeam); + this->register_task(35, &bdTeams::proposeMembership); + this->register_task(36, &bdTeams::rejectMembership); + this->register_task(37, &bdTeams::acceptMembership); + this->register_task(38, &bdTeams::getPublicProfiles); + this->register_task(39, &bdTeams::getPrivateProfile); + this->register_task(40, &bdTeams::getPublicMemberProfiles); + this->register_task(41, &bdTeams::getPrivateMemberProfiles); + this->register_task(42, &bdTeams::setPublicProfile); + this->register_task(43, &bdTeams::setPrivateProfile); + this->register_task(44, &bdTeams::setPublicMemberProfile); + this->register_task(45, &bdTeams::setPrivateMemberProfile); + this->register_task(46, &bdTeams::getMemberships); + this->register_task(47, &bdTeams::getMembers); + this->register_task(48, &bdTeams::getOutgoingProposals); + this->register_task(49, &bdTeams::withdrawProposal); + this->register_task(50, &bdTeams::demoteMember); + this->register_task(51, &bdTeams::promoteMemberToOwner); + this->register_task(52, &bdTeams::getTeamInfo); + this->register_task(53, &bdTeams::getIncomingProposals); + this->register_task(54, &bdTeams::sendInstantMessage); + this->register_task(56, &bdTeams::getMembershipsUser); + this->register_task(57, &bdTeams::sendInstantMessageToTeam); + this->register_task(58, &bdTeams::searchPublicTeamProfiles); + this->register_task(63, &bdTeams::addApplication); + this->register_task(64, &bdTeams::getApplicationsByTeam); + this->register_task(65, &bdTeams::acceptApplication); + this->register_task(66, &bdTeams::rejectApplication); + this->register_task(68, &bdTeams::autoJoinTeam); + this->register_task(70, &bdTeams::createTeamWithProfiles); + this->register_task(73, &bdTeams::banMember); + this->register_task(74, &bdTeams::unbanMember); + this->register_task(76, &bdTeams::blockApplication); + this->register_task(78, &bdTeams::unblockApplication); + this->register_task(80, &bdTeams::updateTeamType); + this->register_task(82, &bdTeams::setOnline); + this->register_task(83, &bdTeams::getMembershipsWithCounts); + this->register_task(84, &bdTeams::getMembershipsWithCountsUser); + this->register_task(85, &bdTeams::searchTeams); + this->register_task(86, &bdTeams::createTeamWithProfilesAndTeamType); + this->register_task(87, &bdTeams::getMembershipsWithCountsAndTeamTypeUser); + this->register_task(88, &bdTeams::getMembershipsWithCountsAndTeamType); + this->register_task(89, &bdTeams::getTeamInfoWithTeamType); + this->register_task(91, &bdTeams::setTeamAutoJoin); + this->register_task(92, &bdTeams::getTeamAutoJoin); + this->register_task(94, &bdTeams::getMembersAndPrivileges); + } + + void bdTeams::createTeam(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::updateTeamName(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::promoteMember(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::kickMember(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::leaveTeam(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::proposeMembership(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::rejectMembership(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::acceptMembership(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::getPublicProfiles(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::getPrivateProfile(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::getPublicMemberProfiles(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::getPrivateMemberProfiles(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::setPublicProfile(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::setPrivateProfile(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::setPublicMemberProfile(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::setPrivateMemberProfile(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::getMemberships(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::getMembers(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::getOutgoingProposals(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::withdrawProposal(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::demoteMember(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::promoteMemberToOwner(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::getTeamInfo(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::getIncomingProposals(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::sendInstantMessage(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::getMembershipsUser(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::sendInstantMessageToTeam(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::searchPublicTeamProfiles(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::addApplication(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::getApplicationsByTeam(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::acceptApplication(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::rejectApplication(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::autoJoinTeam(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::createTeamWithProfiles(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::banMember(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::unbanMember(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::blockApplication(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::unblockApplication(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::updateTeamType(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::setOnline(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::getMembershipsWithCounts(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::getMembershipsWithCountsUser(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::searchTeams(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::createTeamWithProfilesAndTeamType(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::getMembershipsWithCountsAndTeamTypeUser(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::getMembershipsWithCountsAndTeamType(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::getTeamInfoWithTeamType(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::setTeamAutoJoin(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::getTeamAutoJoin(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdTeams::getMembersAndPrivileges(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } +} diff --git a/src/client/game/demonware/services/bdTeams.hpp b/src/client/game/demonware/services/bdTeams.hpp new file mode 100644 index 00000000..62874e73 --- /dev/null +++ b/src/client/game/demonware/services/bdTeams.hpp @@ -0,0 +1,62 @@ +#pragma once + +namespace demonware +{ + class bdTeams final : public service + { + public: + bdTeams(); + + private: + void createTeam(service_server* server, byte_buffer* buffer) const; + void updateTeamName(service_server* server, byte_buffer* buffer) const; + void promoteMember(service_server* server, byte_buffer* buffer) const; + void kickMember(service_server* server, byte_buffer* buffer) const; + void leaveTeam(service_server* server, byte_buffer* buffer) const; + void proposeMembership(service_server* server, byte_buffer* buffer) const; + void rejectMembership(service_server* server, byte_buffer* buffer) const; + void acceptMembership(service_server* server, byte_buffer* buffer) const; + void getPublicProfiles(service_server* server, byte_buffer* buffer) const; + void getPrivateProfile(service_server* server, byte_buffer* buffer) const; + void getPublicMemberProfiles(service_server* server, byte_buffer* buffer) const; + void getPrivateMemberProfiles(service_server* server, byte_buffer* buffer) const; + void setPublicProfile(service_server* server, byte_buffer* buffer) const; + void setPrivateProfile(service_server* server, byte_buffer* buffer) const; + void setPublicMemberProfile(service_server* server, byte_buffer* buffer) const; + void setPrivateMemberProfile(service_server* server, byte_buffer* buffer) const; + void getMemberships(service_server* server, byte_buffer* buffer) const; + void getMembers(service_server* server, byte_buffer* buffer) const; + void getOutgoingProposals(service_server* server, byte_buffer* buffer) const; + void withdrawProposal(service_server* server, byte_buffer* buffer) const; + void demoteMember(service_server* server, byte_buffer* buffer) const; + void promoteMemberToOwner(service_server* server, byte_buffer* buffer) const; + void getTeamInfo(service_server* server, byte_buffer* buffer) const; + void getIncomingProposals(service_server* server, byte_buffer* buffer) const; + void sendInstantMessage(service_server* server, byte_buffer* buffer) const; + void getMembershipsUser(service_server* server, byte_buffer* buffer) const; + void sendInstantMessageToTeam(service_server* server, byte_buffer* buffer) const; + void searchPublicTeamProfiles(service_server* server, byte_buffer* buffer) const; + void addApplication(service_server* server, byte_buffer* buffer) const; + void getApplicationsByTeam(service_server* server, byte_buffer* buffer) const; + void acceptApplication(service_server* server, byte_buffer* buffer) const; + void rejectApplication(service_server* server, byte_buffer* buffer) const; + void autoJoinTeam(service_server* server, byte_buffer* buffer) const; + void createTeamWithProfiles(service_server* server, byte_buffer* buffer) const; + void banMember(service_server* server, byte_buffer* buffer) const; + void unbanMember(service_server* server, byte_buffer* buffer) const; + void blockApplication(service_server* server, byte_buffer* buffer) const; + void unblockApplication(service_server* server, byte_buffer* buffer) const; + void updateTeamType(service_server* server, byte_buffer* buffer) const; + void setOnline(service_server* server, byte_buffer* buffer) const; + void getMembershipsWithCounts(service_server* server, byte_buffer* buffer) const; + void getMembershipsWithCountsUser(service_server* server, byte_buffer* buffer) const; + void searchTeams(service_server* server, byte_buffer* buffer) const; + void createTeamWithProfilesAndTeamType(service_server* server, byte_buffer* buffer) const; + void getMembershipsWithCountsAndTeamTypeUser(service_server* server, byte_buffer* buffer) const; + void getMembershipsWithCountsAndTeamType(service_server* server, byte_buffer* buffer) const; + void getTeamInfoWithTeamType(service_server* server, byte_buffer* buffer) const; + void setTeamAutoJoin(service_server* server, byte_buffer* buffer) const; + void getTeamAutoJoin(service_server* server, byte_buffer* buffer) const; + void getMembersAndPrivileges(service_server* server, byte_buffer* buffer) const; + }; +} diff --git a/src/client/game/demonware/services/bdUNK80.cpp b/src/client/game/demonware/services/bdUNK80.cpp deleted file mode 100644 index 65c458c4..00000000 --- a/src/client/game/demonware/services/bdUNK80.cpp +++ /dev/null @@ -1,66 +0,0 @@ -#include -#include "../services.hpp" - -namespace demonware -{ - bdUNK80::bdUNK80() : service(80, "bdUNK80") - { - this->register_task(42, &bdUNK80::unk42); // COD POINTS purchase ? - // this->register_task(43, &bdUNK80::unk43); COD POINTS purchase ? - this->register_task(49, &bdUNK80::unk49); - this->register_task(60, &bdUNK80::unk60); - this->register_task(130, &bdUNK80::unk130); - this->register_task(165, &bdUNK80::unk165); - this->register_task(193, &bdUNK80::unk193); - this->register_task(232, &bdUNK80::unk232); - } - - void bdUNK80::unk42(service_server* server, byte_buffer* /*buffer*/) const - { - // TODO: - auto reply = server->create_reply(this->task_id()); - reply->send(); - } - - void bdUNK80::unk49(service_server* server, byte_buffer* /*buffer*/) const - { - // TODO: - auto reply = server->create_reply(this->task_id()); - reply->send(); - } - - void bdUNK80::unk60(service_server* server, byte_buffer* /*buffer*/) const - { - // TODO: - auto reply = server->create_reply(this->task_id()); - reply->send(); - } - - void bdUNK80::unk130(service_server* server, byte_buffer* /*buffer*/) const - { - // TODO: - auto reply = server->create_reply(this->task_id()); - reply->send(); - } - - void bdUNK80::unk165(service_server* server, byte_buffer* /*buffer*/) const - { - // TODO: - auto reply = server->create_reply(this->task_id()); - reply->send(); - } - - void bdUNK80::unk193(service_server* server, byte_buffer* /*buffer*/) const - { - // TODO: - auto reply = server->create_reply(this->task_id()); - reply->send(); - } - - void bdUNK80::unk232(service_server* server, byte_buffer* /*buffer*/) const - { - // TODO: - auto reply = server->create_reply(this->task_id()); - reply->send(); - } -} diff --git a/src/client/game/demonware/services/bdUNK80.hpp b/src/client/game/demonware/services/bdUNK80.hpp deleted file mode 100644 index 2870de13..00000000 --- a/src/client/game/demonware/services/bdUNK80.hpp +++ /dev/null @@ -1,19 +0,0 @@ -#pragma once - -namespace demonware -{ - class bdUNK80 final : public service - { - public: - bdUNK80(); - - private: - void unk42(service_server* server, byte_buffer* buffer) const; - void unk49(service_server* server, byte_buffer* buffer) const; - void unk60(service_server* server, byte_buffer* buffer) const; - void unk130(service_server* server, byte_buffer* buffer) const; - void unk165(service_server* server, byte_buffer* buffer) const; - void unk193(service_server* server, byte_buffer* buffer) const; - void unk232(service_server* server, byte_buffer* buffer) const; - }; -} diff --git a/src/client/game/demonware/services/bdUNK95.cpp b/src/client/game/demonware/services/bdUNK95.cpp deleted file mode 100644 index 3cac7302..00000000 --- a/src/client/game/demonware/services/bdUNK95.cpp +++ /dev/null @@ -1,17 +0,0 @@ -#include -#include "../services.hpp" - -namespace demonware -{ - bdUNK95::bdUNK95() : service(95, "bdUNK95") - { - this->register_task(1, &bdUNK95::unk1); - } - - void bdUNK95::unk1(service_server* server, byte_buffer* /*buffer*/) const - { - // TODO: - auto reply = server->create_reply(this->task_id()); - reply->send(); - } -} diff --git a/src/client/game/demonware/services/bdUNK95.hpp b/src/client/game/demonware/services/bdUNK95.hpp deleted file mode 100644 index 790395d3..00000000 --- a/src/client/game/demonware/services/bdUNK95.hpp +++ /dev/null @@ -1,13 +0,0 @@ -#pragma once - -namespace demonware -{ - class bdUNK95 final : public service - { - public: - bdUNK95(); - - private: - void unk1(service_server* server, byte_buffer* buffer) const; - }; -} diff --git a/src/client/game/demonware/services/bdUserGroups.cpp b/src/client/game/demonware/services/bdUserGroups.cpp new file mode 100644 index 00000000..206bdcb7 --- /dev/null +++ b/src/client/game/demonware/services/bdUserGroups.cpp @@ -0,0 +1,97 @@ +#include +#include "../services.hpp" + +namespace demonware +{ + bdUserGroups::bdUserGroups() : service(65, "bdUserGroups") + { + this->register_task(1, &bdUserGroups::createGroup); + this->register_task(2, &bdUserGroups::deleteGroup); + this->register_task(3, &bdUserGroups::joinGroup); + this->register_task(4, &bdUserGroups::leaveGroup); + this->register_task(5, &bdUserGroups::getMembershipInfo); + this->register_task(6, &bdUserGroups::changeMemberType); + this->register_task(7, &bdUserGroups::getNumMembers); + this->register_task(8, &bdUserGroups::getMembers); + this->register_task(9, &bdUserGroups::getMemberships); + this->register_task(10, &bdUserGroups::readStatsByRank); + this->register_task(11, &bdUserGroups::getGroupLists); + } + + void bdUserGroups::createGroup(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdUserGroups::deleteGroup(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdUserGroups::joinGroup(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdUserGroups::leaveGroup(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdUserGroups::getMembershipInfo(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdUserGroups::changeMemberType(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdUserGroups::getNumMembers(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdUserGroups::getMembers(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdUserGroups::getMemberships(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdUserGroups::readStatsByRank(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdUserGroups::getGroupLists(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } +} \ No newline at end of file diff --git a/src/client/game/demonware/services/bdUserGroups.hpp b/src/client/game/demonware/services/bdUserGroups.hpp new file mode 100644 index 00000000..558abba3 --- /dev/null +++ b/src/client/game/demonware/services/bdUserGroups.hpp @@ -0,0 +1,23 @@ +#pragma once + +namespace demonware +{ + class bdUserGroups final : public service + { + public: + bdUserGroups(); + + private: + void createGroup(service_server* server, byte_buffer* buffer) const; + void deleteGroup(service_server* server, byte_buffer* buffer) const; + void joinGroup(service_server* server, byte_buffer* buffer) const; + void leaveGroup(service_server* server, byte_buffer* buffer) const; + void getMembershipInfo(service_server* server, byte_buffer* buffer) const; + void changeMemberType(service_server* server, byte_buffer* buffer) const; + void getNumMembers(service_server* server, byte_buffer* buffer) const; + void getMembers(service_server* server, byte_buffer* buffer) const; + void getMemberships(service_server* server, byte_buffer* buffer) const; + void readStatsByRank(service_server* server, byte_buffer* buffer) const; + void getGroupLists(service_server* server, byte_buffer* buffer) const; + }; +} \ No newline at end of file