mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-01-22 04:37:02 +00:00
18 lines
568 B
C
18 lines
568 B
C
|
#ifndef __JSONUTILS_H__
|
||
|
#define __JSONUTILS_H__
|
||
|
|
||
|
#include "json_fwd.hpp"
|
||
|
#include "PlayerContainer.h"
|
||
|
|
||
|
void to_json(nlohmann::json& data, const PlayerData& playerData);
|
||
|
void to_json(nlohmann::json& data, const PlayerContainer& playerContainer);
|
||
|
void to_json(nlohmann::json& data, const TeamContainer& teamData);
|
||
|
void to_json(nlohmann::json& data, const TeamData& teamData);
|
||
|
|
||
|
namespace JSONUtils {
|
||
|
// check required data for reqeust
|
||
|
std::string CheckRequiredData(const nlohmann::json& data, const std::vector<std::string>& requiredData);
|
||
|
}
|
||
|
|
||
|
#endif // __JSONUTILS_H__
|