label some more

This commit is contained in:
Skull 2022-09-09 17:30:58 +03:00
parent 893f432382
commit 990e64af85
8 changed files with 65 additions and 47 deletions

View File

@ -32,7 +32,7 @@ namespace demonware
this->register_service<bdPresence>();
this->register_service<bdMarketingComms>();
this->register_service<bdMatchMaking>();
this->register_service<bdMarketing>();
this->register_service<bdReward>();
};
void lobby_server::send_reply(reply* data)

View File

@ -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

View File

@ -1,25 +0,0 @@
#include <std_include.hpp>
#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();
}
}

View File

@ -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;
};
}

View File

@ -0,0 +1,41 @@
#include <std_include.hpp>
#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();
}
}

View File

@ -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;
};
}

View File

@ -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());

View File

@ -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;
};
}