dw small changes
This commit is contained in:
parent
be6adbfe13
commit
53d5e87019
@ -13,9 +13,10 @@ namespace demonware
|
|||||||
this->register_service<bdAnticheat>();
|
this->register_service<bdAnticheat>();
|
||||||
this->register_service<bdBandwidthTest>();
|
this->register_service<bdBandwidthTest>();
|
||||||
this->register_service<bdContentStreaming>();
|
this->register_service<bdContentStreaming>();
|
||||||
|
this->register_service<bdCounter>();
|
||||||
this->register_service<bdDML>();
|
this->register_service<bdDML>();
|
||||||
this->register_service<bdEventLog>();
|
this->register_service<bdEventLog>();
|
||||||
this->register_service<bdGroups>();
|
this->register_service<bdGroup>();
|
||||||
this->register_service<bdTeams>();
|
this->register_service<bdTeams>();
|
||||||
this->register_service<bdStats>();
|
this->register_service<bdStats>();
|
||||||
this->register_service<bdStorage>();
|
this->register_service<bdStorage>();
|
||||||
|
@ -14,9 +14,9 @@
|
|||||||
#include "services/bdStorage.hpp" // 10
|
#include "services/bdStorage.hpp" // 10
|
||||||
#include "services/bdTitleUtilities.hpp" // 12
|
#include "services/bdTitleUtilities.hpp" // 12
|
||||||
#include "services/bdBandwidthTest.hpp" // 18
|
#include "services/bdBandwidthTest.hpp" // 18
|
||||||
#include "services/bdCounters.hpp" // 23
|
#include "services/bdCounter.hpp" // 23
|
||||||
#include "services/bdDML.hpp" // 27
|
#include "services/bdDML.hpp" // 27
|
||||||
#include "services/bdGroups.hpp" // 28
|
#include "services/bdGroup.hpp" // 28
|
||||||
//#include "services/bdCMail.hpp" // 29
|
//#include "services/bdCMail.hpp" // 29
|
||||||
#include "services/bdFacebook.hpp" // 36
|
#include "services/bdFacebook.hpp" // 36
|
||||||
#include "services/bdAnticheat.hpp" // 38
|
#include "services/bdAnticheat.hpp" // 38
|
||||||
|
@ -5,18 +5,34 @@ namespace demonware
|
|||||||
{
|
{
|
||||||
bdAnticheat::bdAnticheat() : service(38, "bdAnticheat")
|
bdAnticheat::bdAnticheat() : service(38, "bdAnticheat")
|
||||||
{
|
{
|
||||||
this->register_task(2, &bdAnticheat::unk2);
|
this->register_task(2, &bdAnticheat::answerChallenges);
|
||||||
this->register_task(4, &bdAnticheat::report_console_details);
|
this->register_task(3, &bdAnticheat::reportConsoleID);
|
||||||
|
this->register_task(4, &bdAnticheat::reportConsoleDetails);
|
||||||
|
this->register_task(5, &bdAnticheat::answerTOTPChallenge);
|
||||||
}
|
}
|
||||||
|
|
||||||
void bdAnticheat::unk2(service_server* server, byte_buffer* /*buffer*/) const
|
void bdAnticheat::answerChallenges(service_server* server, byte_buffer* /*buffer*/) const
|
||||||
{
|
{
|
||||||
// TODO: Read data as soon as needed
|
// TODO: Read data as soon as needed
|
||||||
auto reply = server->create_reply(this->task_id());
|
auto reply = server->create_reply(this->task_id());
|
||||||
reply->send();
|
reply->send();
|
||||||
}
|
}
|
||||||
|
|
||||||
void bdAnticheat::report_console_details(service_server* server, byte_buffer* /*buffer*/) const
|
void bdAnticheat::reportConsoleID(service_server* server, byte_buffer* /*buffer*/) const
|
||||||
|
{
|
||||||
|
// TODO: Read data as soon as needed
|
||||||
|
auto reply = server->create_reply(this->task_id());
|
||||||
|
reply->send();
|
||||||
|
}
|
||||||
|
|
||||||
|
void bdAnticheat::reportConsoleDetails(service_server* server, byte_buffer* /*buffer*/) const
|
||||||
|
{
|
||||||
|
// TODO: Read data as soon as needed
|
||||||
|
auto reply = server->create_reply(this->task_id());
|
||||||
|
reply->send();
|
||||||
|
}
|
||||||
|
|
||||||
|
void bdAnticheat::answerTOTPChallenge(service_server* server, byte_buffer* /*buffer*/) const
|
||||||
{
|
{
|
||||||
// TODO: Read data as soon as needed
|
// TODO: Read data as soon as needed
|
||||||
auto reply = server->create_reply(this->task_id());
|
auto reply = server->create_reply(this->task_id());
|
||||||
|
@ -8,7 +8,9 @@ namespace demonware
|
|||||||
bdAnticheat();
|
bdAnticheat();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void unk2(service_server* server, byte_buffer* buffer) const;
|
void answerChallenges(service_server* server, byte_buffer* buffer) const;
|
||||||
void report_console_details(service_server* server, byte_buffer* buffer) const;
|
void reportConsoleID(service_server* server, byte_buffer* buffer) const;
|
||||||
|
void reportConsoleDetails(service_server* server, byte_buffer* buffer) const;
|
||||||
|
void answerTOTPChallenge(service_server* server, byte_buffer* buffer) const;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
25
src/client/game/demonware/services/bdCounter.cpp
Normal file
25
src/client/game/demonware/services/bdCounter.cpp
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
#include <std_include.hpp>
|
||||||
|
#include "../services.hpp"
|
||||||
|
|
||||||
|
namespace demonware
|
||||||
|
{
|
||||||
|
bdCounter::bdCounter() : service(23, "bdCounter")
|
||||||
|
{
|
||||||
|
this->register_task(1, &bdCounter::incrementCounters);
|
||||||
|
this->register_task(2, &bdCounter::getCounterTotals);
|
||||||
|
}
|
||||||
|
|
||||||
|
void bdCounter::incrementCounters(service_server* server, byte_buffer* /*buffer*/) const
|
||||||
|
{
|
||||||
|
// TODO:
|
||||||
|
auto reply = server->create_reply(this->task_id());
|
||||||
|
reply->send();
|
||||||
|
}
|
||||||
|
|
||||||
|
void bdCounter::getCounterTotals(service_server* server, byte_buffer* /*buffer*/) const
|
||||||
|
{
|
||||||
|
// TODO:
|
||||||
|
auto reply = server->create_reply(this->task_id());
|
||||||
|
reply->send();
|
||||||
|
}
|
||||||
|
}
|
14
src/client/game/demonware/services/bdCounter.hpp
Normal file
14
src/client/game/demonware/services/bdCounter.hpp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
namespace demonware
|
||||||
|
{
|
||||||
|
class bdCounter final : public service
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
bdCounter();
|
||||||
|
|
||||||
|
private:
|
||||||
|
void incrementCounters(service_server* server, byte_buffer* buffer) const;
|
||||||
|
void getCounterTotals(service_server* server, byte_buffer* buffer) const;
|
||||||
|
};
|
||||||
|
}
|
@ -1,25 +0,0 @@
|
|||||||
#include <std_include.hpp>
|
|
||||||
#include "../services.hpp"
|
|
||||||
|
|
||||||
namespace demonware
|
|
||||||
{
|
|
||||||
bdCounters::bdCounters() : service(23, "bdCounters")
|
|
||||||
{
|
|
||||||
this->register_task(1, &bdCounters::unk1);
|
|
||||||
this->register_task(2, &bdCounters::unk2);
|
|
||||||
}
|
|
||||||
|
|
||||||
void bdCounters::unk1(service_server* server, byte_buffer* /*buffer*/) const
|
|
||||||
{
|
|
||||||
// TODO:
|
|
||||||
auto reply = server->create_reply(this->task_id());
|
|
||||||
reply->send();
|
|
||||||
}
|
|
||||||
|
|
||||||
void bdCounters::unk2(service_server* server, byte_buffer* /*buffer*/) const
|
|
||||||
{
|
|
||||||
// TODO:
|
|
||||||
auto reply = server->create_reply(this->task_id());
|
|
||||||
reply->send();
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,14 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
|
|
||||||
namespace demonware
|
|
||||||
{
|
|
||||||
class bdCounters final : public service
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
bdCounters();
|
|
||||||
|
|
||||||
private:
|
|
||||||
void unk1(service_server* server, byte_buffer* buffer) const;
|
|
||||||
void unk2(service_server* server, byte_buffer* buffer) const;
|
|
||||||
};
|
|
||||||
}
|
|
@ -5,10 +5,20 @@ namespace demonware
|
|||||||
{
|
{
|
||||||
bdDML::bdDML() : service(27, "bdDML")
|
bdDML::bdDML() : service(27, "bdDML")
|
||||||
{
|
{
|
||||||
this->register_task(2, &bdDML::get_user_raw_data);
|
this->register_task(1, &bdDML::recordIP);
|
||||||
|
this->register_task(2, &bdDML::getUserData);
|
||||||
|
this->register_task(3, &bdDML::getUserHierarchicalData);
|
||||||
|
this->register_task(4, &bdDML::getUsersLastLogonData);
|
||||||
}
|
}
|
||||||
|
|
||||||
void bdDML::get_user_raw_data(service_server* server, byte_buffer* /*buffer*/) const
|
void bdDML::recordIP(service_server* server, byte_buffer* /*buffer*/) const
|
||||||
|
{
|
||||||
|
// TODO:
|
||||||
|
auto reply = server->create_reply(this->task_id());
|
||||||
|
reply->send();
|
||||||
|
}
|
||||||
|
|
||||||
|
void bdDML::getUserData(service_server* server, byte_buffer* /*buffer*/) const
|
||||||
{
|
{
|
||||||
auto result = new bdDMLRawData;
|
auto result = new bdDMLRawData;
|
||||||
result->country_code = "US";
|
result->country_code = "US";
|
||||||
@ -25,4 +35,18 @@ namespace demonware
|
|||||||
reply->add(result);
|
reply->add(result);
|
||||||
reply->send();
|
reply->send();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void bdDML::getUserHierarchicalData(service_server* server, byte_buffer* /*buffer*/) const
|
||||||
|
{
|
||||||
|
// TODO:
|
||||||
|
auto reply = server->create_reply(this->task_id());
|
||||||
|
reply->send();
|
||||||
|
}
|
||||||
|
|
||||||
|
void bdDML::getUsersLastLogonData(service_server* server, byte_buffer* /*buffer*/) const
|
||||||
|
{
|
||||||
|
// TODO:
|
||||||
|
auto reply = server->create_reply(this->task_id());
|
||||||
|
reply->send();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,9 @@ namespace demonware
|
|||||||
bdDML();
|
bdDML();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void get_user_raw_data(service_server* server, byte_buffer* buffer) const;
|
void recordIP(service_server* server, byte_buffer* buffer) const;
|
||||||
|
void getUserData(service_server* server, byte_buffer* buffer) const;
|
||||||
|
void getUserHierarchicalData(service_server* server, byte_buffer* buffer) const;
|
||||||
|
void getUsersLastLogonData(service_server* server, byte_buffer* buffer) const;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -5,10 +5,42 @@ namespace demonware
|
|||||||
{
|
{
|
||||||
bdEventLog::bdEventLog() : service(67, "bdEventLog")
|
bdEventLog::bdEventLog() : service(67, "bdEventLog")
|
||||||
{
|
{
|
||||||
this->register_task(6, &bdEventLog::unk6);
|
this->register_task(1, &bdEventLog::recordEvent);
|
||||||
|
this->register_task(2, &bdEventLog::recordEventBin);
|
||||||
|
this->register_task(3, &bdEventLog::recordEvents);
|
||||||
|
this->register_task(4, &bdEventLog::recordEventsBin);
|
||||||
|
this->register_task(6, &bdEventLog::initializeFiltering);
|
||||||
}
|
}
|
||||||
|
|
||||||
void bdEventLog::unk6(service_server* server, byte_buffer* /*buffer*/) const
|
void bdEventLog::recordEvent(service_server* server, byte_buffer* /*buffer*/) const
|
||||||
|
{
|
||||||
|
// TODO:
|
||||||
|
auto reply = server->create_reply(this->task_id());
|
||||||
|
reply->send();
|
||||||
|
}
|
||||||
|
|
||||||
|
void bdEventLog::recordEventBin(service_server* server, byte_buffer* /*buffer*/) const
|
||||||
|
{
|
||||||
|
// TODO:
|
||||||
|
auto reply = server->create_reply(this->task_id());
|
||||||
|
reply->send();
|
||||||
|
}
|
||||||
|
|
||||||
|
void bdEventLog::recordEvents(service_server* server, byte_buffer* /*buffer*/) const
|
||||||
|
{
|
||||||
|
// TODO:
|
||||||
|
auto reply = server->create_reply(this->task_id());
|
||||||
|
reply->send();
|
||||||
|
}
|
||||||
|
|
||||||
|
void bdEventLog::recordEventsBin(service_server* server, byte_buffer* /*buffer*/) const
|
||||||
|
{
|
||||||
|
// TODO:
|
||||||
|
auto reply = server->create_reply(this->task_id());
|
||||||
|
reply->send();
|
||||||
|
}
|
||||||
|
|
||||||
|
void bdEventLog::initializeFiltering(service_server* server, byte_buffer* /*buffer*/) const
|
||||||
{
|
{
|
||||||
// TODO:
|
// TODO:
|
||||||
auto reply = server->create_reply(this->task_id());
|
auto reply = server->create_reply(this->task_id());
|
||||||
|
@ -8,6 +8,10 @@ namespace demonware
|
|||||||
bdEventLog();
|
bdEventLog();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void unk6(service_server* server, byte_buffer* buffer) const;
|
void recordEvent(service_server* server, byte_buffer* buffer) const;
|
||||||
|
void recordEventBin(service_server* server, byte_buffer* buffer) const;
|
||||||
|
void recordEvents(service_server* server, byte_buffer* buffer) const;
|
||||||
|
void recordEventsBin(service_server* server, byte_buffer* buffer) const;
|
||||||
|
void initializeFiltering(service_server* server, byte_buffer* buffer) const;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -5,34 +5,106 @@ namespace demonware
|
|||||||
{
|
{
|
||||||
bdFacebook::bdFacebook() : service(36, "bdFacebook")
|
bdFacebook::bdFacebook() : service(36, "bdFacebook")
|
||||||
{
|
{
|
||||||
this->register_task(1, &bdFacebook::unk1);
|
this->register_task(1, &bdFacebook::registerAccount);
|
||||||
this->register_task(3, &bdFacebook::unk3);
|
this->register_task(2, &bdFacebook::post);
|
||||||
this->register_task(7, &bdFacebook::unk7);
|
this->register_task(3, &bdFacebook::unregisterAccount);
|
||||||
this->register_task(8, &bdFacebook::unk8);
|
this->register_task(5, &bdFacebook::isRegistered);
|
||||||
|
this->register_task(6, &bdFacebook::getInfo);
|
||||||
|
this->register_task(7, &bdFacebook::getRegisteredAccounts);
|
||||||
|
this->register_task(8, &bdFacebook::getFriends);
|
||||||
|
this->register_task(9, &bdFacebook::getProfilePictures);
|
||||||
|
this->register_task(10, &bdFacebook::uploadPhoto);
|
||||||
|
this->register_task(11, &bdFacebook::registerToken);
|
||||||
|
this->register_task(12, &bdFacebook::uploadVideo);
|
||||||
|
this->register_task(13, &bdFacebook::getFriendsByID);
|
||||||
|
this->register_task(14, &bdFacebook::setLikeStatus);
|
||||||
}
|
}
|
||||||
|
|
||||||
void bdFacebook::unk1(service_server* server, byte_buffer* /*buffer*/) const
|
void bdFacebook::registerAccount(service_server* server, byte_buffer* /*buffer*/) const
|
||||||
{
|
{
|
||||||
// TODO:
|
// TODO:
|
||||||
auto reply = server->create_reply(this->task_id());
|
auto reply = server->create_reply(this->task_id());
|
||||||
reply->send();
|
reply->send();
|
||||||
}
|
}
|
||||||
|
|
||||||
void bdFacebook::unk3(service_server* server, byte_buffer* /*buffer*/) const
|
void bdFacebook::post(service_server* server, byte_buffer* /*buffer*/) const
|
||||||
{
|
{
|
||||||
// TODO:
|
// TODO:
|
||||||
auto reply = server->create_reply(this->task_id());
|
auto reply = server->create_reply(this->task_id());
|
||||||
reply->send();
|
reply->send();
|
||||||
}
|
}
|
||||||
|
|
||||||
void bdFacebook::unk7(service_server* server, byte_buffer* /*buffer*/) const
|
void bdFacebook::unregisterAccount(service_server* server, byte_buffer* /*buffer*/) const
|
||||||
{
|
{
|
||||||
// TODO:
|
// TODO:
|
||||||
auto reply = server->create_reply(this->task_id());
|
auto reply = server->create_reply(this->task_id());
|
||||||
reply->send();
|
reply->send();
|
||||||
}
|
}
|
||||||
|
|
||||||
void bdFacebook::unk8(service_server* server, byte_buffer* /*buffer*/) const
|
void bdFacebook::isRegistered(service_server* server, byte_buffer* /*buffer*/) const
|
||||||
|
{
|
||||||
|
// TODO:
|
||||||
|
auto reply = server->create_reply(this->task_id());
|
||||||
|
reply->send();
|
||||||
|
}
|
||||||
|
|
||||||
|
void bdFacebook::getInfo(service_server* server, byte_buffer* /*buffer*/) const
|
||||||
|
{
|
||||||
|
// TODO:
|
||||||
|
auto reply = server->create_reply(this->task_id());
|
||||||
|
reply->send();
|
||||||
|
}
|
||||||
|
|
||||||
|
void bdFacebook::getRegisteredAccounts(service_server* server, byte_buffer* /*buffer*/) const
|
||||||
|
{
|
||||||
|
// TODO:
|
||||||
|
auto reply = server->create_reply(this->task_id());
|
||||||
|
reply->send();
|
||||||
|
}
|
||||||
|
|
||||||
|
void bdFacebook::getFriends(service_server* server, byte_buffer* /*buffer*/) const
|
||||||
|
{
|
||||||
|
// TODO:
|
||||||
|
auto reply = server->create_reply(this->task_id());
|
||||||
|
reply->send();
|
||||||
|
}
|
||||||
|
|
||||||
|
void bdFacebook::getProfilePictures(service_server* server, byte_buffer* /*buffer*/) const
|
||||||
|
{
|
||||||
|
// TODO:
|
||||||
|
auto reply = server->create_reply(this->task_id());
|
||||||
|
reply->send();
|
||||||
|
}
|
||||||
|
|
||||||
|
void bdFacebook::uploadPhoto(service_server* server, byte_buffer* /*buffer*/) const
|
||||||
|
{
|
||||||
|
// TODO:
|
||||||
|
auto reply = server->create_reply(this->task_id());
|
||||||
|
reply->send();
|
||||||
|
}
|
||||||
|
|
||||||
|
void bdFacebook::registerToken(service_server* server, byte_buffer* /*buffer*/) const
|
||||||
|
{
|
||||||
|
// TODO:
|
||||||
|
auto reply = server->create_reply(this->task_id());
|
||||||
|
reply->send();
|
||||||
|
}
|
||||||
|
|
||||||
|
void bdFacebook::uploadVideo(service_server* server, byte_buffer* /*buffer*/) const
|
||||||
|
{
|
||||||
|
// TODO:
|
||||||
|
auto reply = server->create_reply(this->task_id());
|
||||||
|
reply->send();
|
||||||
|
}
|
||||||
|
|
||||||
|
void bdFacebook::getFriendsByID(service_server* server, byte_buffer* /*buffer*/) const
|
||||||
|
{
|
||||||
|
// TODO:
|
||||||
|
auto reply = server->create_reply(this->task_id());
|
||||||
|
reply->send();
|
||||||
|
}
|
||||||
|
|
||||||
|
void bdFacebook::setLikeStatus(service_server* server, byte_buffer* /*buffer*/) const
|
||||||
{
|
{
|
||||||
// TODO:
|
// TODO:
|
||||||
auto reply = server->create_reply(this->task_id());
|
auto reply = server->create_reply(this->task_id());
|
||||||
|
@ -8,9 +8,18 @@ namespace demonware
|
|||||||
bdFacebook();
|
bdFacebook();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void unk1(service_server* server, byte_buffer* buffer) const;
|
void registerAccount(service_server* server, byte_buffer* buffer) const;
|
||||||
void unk3(service_server* server, byte_buffer* buffer) const;
|
void post(service_server* server, byte_buffer* buffer) const;
|
||||||
void unk7(service_server* server, byte_buffer* buffer) const;
|
void unregisterAccount(service_server* server, byte_buffer* buffer) const;
|
||||||
void unk8(service_server* server, byte_buffer* buffer) const;
|
void isRegistered(service_server* server, byte_buffer* buffer) const;
|
||||||
|
void getInfo(service_server* server, byte_buffer* buffer) const;
|
||||||
|
void getRegisteredAccounts(service_server* server, byte_buffer* buffer) const;
|
||||||
|
void getFriends(service_server* server, byte_buffer* buffer) const;
|
||||||
|
void getProfilePictures(service_server* server, byte_buffer* buffer) const;
|
||||||
|
void uploadPhoto(service_server* server, byte_buffer* buffer) const;
|
||||||
|
void registerToken(service_server* server, byte_buffer* buffer) const;
|
||||||
|
void uploadVideo(service_server* server, byte_buffer* buffer) const;
|
||||||
|
void getFriendsByID(service_server* server, byte_buffer* buffer) const;
|
||||||
|
void setLikeStatus(service_server* server, byte_buffer* buffer) const;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
41
src/client/game/demonware/services/bdGroup.cpp
Normal file
41
src/client/game/demonware/services/bdGroup.cpp
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
#include <std_include.hpp>
|
||||||
|
#include "../services.hpp"
|
||||||
|
|
||||||
|
namespace demonware
|
||||||
|
{
|
||||||
|
bdGroup::bdGroup() : service(28, "bdGroup")
|
||||||
|
{
|
||||||
|
this->register_task(1, &bdGroup::setGroups);
|
||||||
|
this->register_task(2, &bdGroup::setGroupsForEntity);
|
||||||
|
this->register_task(3, &bdGroup::getEntityGroups);
|
||||||
|
this->register_task(4, &bdGroup::getGroupCounts);
|
||||||
|
}
|
||||||
|
|
||||||
|
void bdGroup::setGroups(service_server* server, byte_buffer* /*buffer*/) const
|
||||||
|
{
|
||||||
|
// TODO:
|
||||||
|
auto reply = server->create_reply(this->task_id());
|
||||||
|
reply->send();
|
||||||
|
}
|
||||||
|
|
||||||
|
void bdGroup::setGroupsForEntity(service_server* server, byte_buffer* /*buffer*/) const
|
||||||
|
{
|
||||||
|
// TODO:
|
||||||
|
auto reply = server->create_reply(this->task_id());
|
||||||
|
reply->send();
|
||||||
|
}
|
||||||
|
|
||||||
|
void bdGroup::getEntityGroups(service_server* server, byte_buffer* /*buffer*/) const
|
||||||
|
{
|
||||||
|
// TODO:
|
||||||
|
auto reply = server->create_reply(this->task_id());
|
||||||
|
reply->send();
|
||||||
|
}
|
||||||
|
|
||||||
|
void bdGroup::getGroupCounts(service_server* server, byte_buffer* /*buffer*/) const
|
||||||
|
{
|
||||||
|
// TODO:
|
||||||
|
auto reply = server->create_reply(this->task_id());
|
||||||
|
reply->send();
|
||||||
|
}
|
||||||
|
}
|
16
src/client/game/demonware/services/bdGroup.hpp
Normal file
16
src/client/game/demonware/services/bdGroup.hpp
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
namespace demonware
|
||||||
|
{
|
||||||
|
class bdGroup final : public service
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
bdGroup();
|
||||||
|
|
||||||
|
private:
|
||||||
|
void setGroups(service_server* server, byte_buffer* buffer) const;
|
||||||
|
void setGroupsForEntity(service_server* server, byte_buffer* buffer) const;
|
||||||
|
void getEntityGroups(service_server* server, byte_buffer* buffer) const;
|
||||||
|
void getGroupCounts(service_server* server, byte_buffer* buffer) const;
|
||||||
|
};
|
||||||
|
}
|
@ -1,25 +0,0 @@
|
|||||||
#include <std_include.hpp>
|
|
||||||
#include "../services.hpp"
|
|
||||||
|
|
||||||
namespace demonware
|
|
||||||
{
|
|
||||||
bdGroups::bdGroups() : service(28, "bdGroup")
|
|
||||||
{
|
|
||||||
this->register_task(1, &bdGroups::set_groups);
|
|
||||||
this->register_task(4, &bdGroups::unk4);
|
|
||||||
}
|
|
||||||
|
|
||||||
void bdGroups::set_groups(service_server* server, byte_buffer* /*buffer*/) const
|
|
||||||
{
|
|
||||||
// TODO:
|
|
||||||
auto reply = server->create_reply(this->task_id());
|
|
||||||
reply->send();
|
|
||||||
}
|
|
||||||
|
|
||||||
void bdGroups::unk4(service_server* server, byte_buffer* /*buffer*/) const
|
|
||||||
{
|
|
||||||
// TODO:
|
|
||||||
auto reply = server->create_reply(this->task_id());
|
|
||||||
reply->send();
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,14 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
|
|
||||||
namespace demonware
|
|
||||||
{
|
|
||||||
class bdGroups final : public service
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
bdGroups();
|
|
||||||
|
|
||||||
private:
|
|
||||||
void set_groups(service_server* server, byte_buffer* buffer) const;
|
|
||||||
void unk4(service_server* server, byte_buffer* buffer) const;
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user