MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / toJson

Method toJson

src/openrct2/network/NetworkUser.cpp:52–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 }
51
52 json_t User::toJson() const
53 {
54 json_t jsonData;
55 jsonData["hash"] = hash;
56 jsonData["name"] = name;
57
58 json_t jsonGroupId;
59 if (groupId.has_value())
60 {
61 jsonGroupId = *groupId;
62 }
63 jsonData["groupId"] = jsonGroupId;
64
65 return jsonData;
66 }
67
68 void UserManager::load()
69 {

Callers 2

SaveGroupsMethod · 0.45
saveMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected