From be6adbfe139bda5ea0c2cf99e3d4c3529346b529 Mon Sep 17 00:00:00 2001 From: Skull <86374920+skkuull@users.noreply.github.com> Date: Fri, 9 Sep 2022 17:30:58 +0300 Subject: [PATCH] label some more --- .../game/demonware/servers/lobby_server.cpp | 2 +- src/client/game/demonware/services.hpp | 2 +- .../game/demonware/services/bdMarketing.cpp | 25 ----------- .../game/demonware/services/bdMarketing.hpp | 14 ------- .../game/demonware/services/bdReward.cpp | 41 +++++++++++++++++++ .../game/demonware/services/bdReward.hpp | 16 ++++++++ .../demonware/services/bdRichPresence.cpp | 8 ++-- .../demonware/services/bdRichPresence.hpp | 4 +- 8 files changed, 65 insertions(+), 47 deletions(-) delete mode 100644 src/client/game/demonware/services/bdMarketing.cpp delete mode 100644 src/client/game/demonware/services/bdMarketing.hpp create mode 100644 src/client/game/demonware/services/bdReward.cpp create mode 100644 src/client/game/demonware/services/bdReward.hpp diff --git a/src/client/game/demonware/servers/lobby_server.cpp b/src/client/game/demonware/servers/lobby_server.cpp index 09f0cc66..7f32110f 100644 --- a/src/client/game/demonware/servers/lobby_server.cpp +++ b/src/client/game/demonware/servers/lobby_server.cpp @@ -32,7 +32,7 @@ namespace demonware this->register_service(); this->register_service(); this->register_service(); - this->register_service(); + this->register_service(); }; void lobby_server::send_reply(reply* data) diff --git a/src/client/game/demonware/services.hpp b/src/client/game/demonware/services.hpp index d72be24b..53c296eb 100644 --- a/src/client/game/demonware/services.hpp +++ b/src/client/game/demonware/services.hpp @@ -36,4 +36,4 @@ #include "services/bdPresence.hpp" //103 #include "services/bdMarketingComms.hpp" //104 #include "services/bdMatchMaking.hpp" //138 -#include "services/bdMarketing.hpp" //139 +#include "services/bdReward.hpp" //139 diff --git a/src/client/game/demonware/services/bdMarketing.cpp b/src/client/game/demonware/services/bdMarketing.cpp deleted file mode 100644 index 1009cc30..00000000 --- a/src/client/game/demonware/services/bdMarketing.cpp +++ /dev/null @@ -1,25 +0,0 @@ -#include -#include "../services.hpp" - -namespace demonware -{ - bdMarketing::bdMarketing() : service(139, "bdMarketing") - { - this->register_task(2, &bdMarketing::unk2); - this->register_task(3, &bdMarketing::unk3); - } - - void bdMarketing::unk2(service_server* server, byte_buffer* /*buffer*/) const - { - // TODO: - auto reply = server->create_reply(this->task_id()); - reply->send(); - } - - void bdMarketing::unk3(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/bdMarketing.hpp b/src/client/game/demonware/services/bdMarketing.hpp deleted file mode 100644 index 455e1523..00000000 --- a/src/client/game/demonware/services/bdMarketing.hpp +++ /dev/null @@ -1,14 +0,0 @@ -#pragma once - -namespace demonware -{ - class bdMarketing final : public service - { - public: - bdMarketing(); - - private: - void unk2(service_server* server, byte_buffer* buffer) const; - void unk3(service_server* server, byte_buffer* buffer) const; - }; -} diff --git a/src/client/game/demonware/services/bdReward.cpp b/src/client/game/demonware/services/bdReward.cpp new file mode 100644 index 00000000..86fe661b --- /dev/null +++ b/src/client/game/demonware/services/bdReward.cpp @@ -0,0 +1,41 @@ +#include +#include "../services.hpp" + +namespace demonware +{ + bdReward::bdReward() : service(139, "bdReward") + { + this->register_task(1, &bdReward::incrementTime); + this->register_task(2, &bdReward::claimRewardRoll); + this->register_task(3, &bdReward::claimClientAchievements); + this->register_task(4, &bdReward::reportRewardEvents); + } + + void bdReward::incrementTime(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdReward::claimRewardRoll(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdReward::claimClientAchievements(service_server* server, byte_buffer* /*buffer*/) const + { + // TODO: + auto reply = server->create_reply(this->task_id()); + reply->send(); + } + + void bdReward::reportRewardEvents(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/bdReward.hpp b/src/client/game/demonware/services/bdReward.hpp new file mode 100644 index 00000000..a013123f --- /dev/null +++ b/src/client/game/demonware/services/bdReward.hpp @@ -0,0 +1,16 @@ +#pragma once + +namespace demonware +{ + class bdReward final : public service + { + public: + bdReward(); + + private: + void incrementTime(service_server* server, byte_buffer* buffer) const; + void claimRewardRoll(service_server* server, byte_buffer* buffer) const; + void claimClientAchievements(service_server* server, byte_buffer* buffer) const; + void reportRewardEvents(service_server* server, byte_buffer* buffer) const; + }; +} diff --git a/src/client/game/demonware/services/bdRichPresence.cpp b/src/client/game/demonware/services/bdRichPresence.cpp index 917ebbad..adfb0fbb 100644 --- a/src/client/game/demonware/services/bdRichPresence.cpp +++ b/src/client/game/demonware/services/bdRichPresence.cpp @@ -5,18 +5,18 @@ namespace demonware { bdRichPresence::bdRichPresence() : service(68, "bdRichPresence") { - this->register_task(1, &bdRichPresence::unk1); - this->register_task(2, &bdRichPresence::unk2); + this->register_task(1, &bdRichPresence::setInfo); + this->register_task(2, &bdRichPresence::getInfo); } - void bdRichPresence::unk1(service_server* server, byte_buffer* /*buffer*/) const + void bdRichPresence::setInfo(service_server* server, byte_buffer* /*buffer*/) const { // TODO: auto reply = server->create_reply(this->task_id()); reply->send(); } - void bdRichPresence::unk2(service_server* server, byte_buffer* /*buffer*/) const + void bdRichPresence::getInfo(service_server* server, byte_buffer* /*buffer*/) const { // TODO: auto reply = server->create_reply(this->task_id()); diff --git a/src/client/game/demonware/services/bdRichPresence.hpp b/src/client/game/demonware/services/bdRichPresence.hpp index c04d91a5..821270cf 100644 --- a/src/client/game/demonware/services/bdRichPresence.hpp +++ b/src/client/game/demonware/services/bdRichPresence.hpp @@ -8,7 +8,7 @@ namespace demonware bdRichPresence(); private: - void unk1(service_server* server, byte_buffer* buffer) const; - void unk2(service_server* server, byte_buffer* buffer) const; + void setInfo(service_server* server, byte_buffer* buffer) const; + void getInfo(service_server* server, byte_buffer* buffer) const; }; }