mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Started to implement RTS advanced options
This commit is contained in:
@@ -116,12 +116,13 @@ void Server::handle_get(http_request request)
|
||||
else if (URI.compare(BULLSEYE_URI) == 0)
|
||||
answer[L"bullseyes"] = bullseyes;
|
||||
else if (URI.compare(MISSION_URI) == 0) {
|
||||
mission[L"RTSOptions"] = json::value::object();
|
||||
if (password.compare(gameMasterPassword) == 0)
|
||||
mission[L"visibilityMode"] = json::value(L"Game master");
|
||||
mission[L"RTSOptions"][L"commandMode"] = json::value(L"Game master");
|
||||
else if (password.compare(blueCommanderPassword) == 0)
|
||||
mission[L"visibilityMode"] = json::value(L"Blue commander");
|
||||
mission[L"RTSOptions"][L"commandMode"] = json::value(L"Blue commander");
|
||||
else if (password.compare(redCommanderPassword) == 0)
|
||||
mission[L"visibilityMode"] = json::value(L"Red commander");
|
||||
mission[L"RTSOptions"][L"commandMode"] = json::value(L"Red commander");
|
||||
answer[L"mission"] = mission;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user