1
0
mirror of https://github.com/ncblakely/GiantsTools synced 2024-12-23 07:47:22 +01:00
GiantsTools/Sdk/Include/Network/Public/PlayerInfoResponse.h
2021-01-23 15:40:09 -08:00

22 lines
425 B
C++

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