fix saving

This commit is contained in:
Mikhail Thompson
2024-06-26 22:04:31 +03:00
parent 7c6e57bd63
commit d5d6844c97
2 changed files with 4 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ namespace nksrv.LobbyServer.Msgs.Campaign
string resultingJson;
if (!user.MapJson.ContainsKey(req.MapId))
{
resultingJson = "{\"_mapID\":\"" + req.MapId + "\",\"_triggerDataList\":[],\"_interactionActionTriggerDataList\":[],\"_interactionObjectDataList\":[],\"_questObjectDataList\":[],\"_togglePortalDataList\":[],\"_squadDataList\":[{\"UniqueKey\":\"a365d3ab-2961-4eb8-940b-f68629957b48\",\"IsValid\":true,\"TeamType\":1,\"Number\":1,\"Position\":{\"x\":-14.899999618530274,\"y\":0.08333173394203186,\"z\":-3.2200000286102297}}]}";
resultingJson = "";
user.MapJson.Add(req.MapId, resultingJson);
}
else
@@ -34,6 +34,8 @@ namespace nksrv.LobbyServer.Msgs.Campaign
resultingJson = user.MapJson[req.MapId];
}
response.Json = resultingJson;
WriteData(response);
}

View File

@@ -14,7 +14,7 @@ namespace nksrv.LobbyServer.Msgs.Campaign
var response = new ResGetFieldTalkList();
Console.WriteLine($"todo save {req.MapId} with {req.Json}");
Console.WriteLine($"save {req.MapId} with {req.Json}");
if (!user.MapJson.ContainsKey(req.MapId))
{