mirror of
https://github.com/EpinelPS/EpinelPS.git
synced 2025-12-12 15:04:36 +01:00
fix saving
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user