1
0
mirror of https://github.com/ncblakely/GiantsTools synced 2024-07-01 02:01:45 +02:00
GiantsTools/Sdk/Include/MasterServer/PlayerInfoResponse.h

22 lines
425 B
C
Raw Normal View History

2020-09-22 07:30:26 +02:00
#pragma once
using njson = nlohmann::json;
struct PlayerInfoResponse
{
explicit PlayerInfoResponse(const njson& playerInfoResponse)
{
index = playerInfoResponse["index"];
name = playerInfoResponse["name"];
frags = playerInfoResponse["frags"];
deaths = playerInfoResponse["deaths"];
teamName = playerInfoResponse["teamName"];
}
int index;
std::string name;
int frags;
int deaths;
std::string teamName;
};