Reimplemented getSongIntroduction and getFolder in InitialDataCheck
This commit is contained in:
parent
872f7ca93a
commit
57d05d64f7
@ -10,6 +10,7 @@ public static class JsonHelper
|
||||
var costumeData = new List<uint> { 0, 0, 0, 0, 0 };
|
||||
try
|
||||
{
|
||||
// logger.LogInformation(userData.CostumeData);
|
||||
costumeData = JsonSerializer.Deserialize<List<uint>>(userData.CostumeData);
|
||||
}
|
||||
catch (JsonException e)
|
||||
|
@ -31,7 +31,7 @@ public class InitialDataCheckController : BaseController<InitialDataCheckControl
|
||||
var uraReleaseBit =
|
||||
FlagCalculator.GetBitArrayFromIds(defaultSongWithUraList, songIdMax, Logger);
|
||||
|
||||
var verupNo1 = new uint[] { 2, 3, 4, 5, 6, 7, 8, 13, 15, 24, 25, 26, 27, 28, 29, 30, 31, 104 };
|
||||
var verupNo1 = new uint[] { 2, 3, 4, 5, 6, 7, 8, 13, 104 };
|
||||
var aryVerUp = verupNo1.Select(i => new InitialdatacheckResponse.VerupNoData1
|
||||
{
|
||||
MasterType = i,
|
||||
@ -58,18 +58,46 @@ public class InitialDataCheckController : BaseController<InitialDataCheckControl
|
||||
VerupNo = 1
|
||||
});
|
||||
}
|
||||
var verupNo2 = new uint[] { 11, 101, 102, 103, 105 };
|
||||
foreach (var i in verupNo2)
|
||||
var verUp2Type101 = new InitialdatacheckResponse.VerupNoData2
|
||||
{
|
||||
var verUp2 = new InitialdatacheckResponse.VerupNoData2
|
||||
{
|
||||
MasterType = i,
|
||||
MasterType = 101,
|
||||
};
|
||||
verUp2.AryInformationDatas.AddRange(danData);
|
||||
response.AryVerupNoData2s.Add(verUp2);
|
||||
}
|
||||
response.AryChassisFunctionIds = new uint[] {1,2,3};
|
||||
verUp2Type101.AryInformationDatas.AddRange(danData);
|
||||
response.AryVerupNoData2s.Add(verUp2Type101);
|
||||
|
||||
var eventFolderData = new List<InitialdatacheckResponse.VerupNoData2.InformationData>();
|
||||
foreach (var folderId in Constants.EVENT_FOLDER_IDS)
|
||||
{
|
||||
eventFolderData.Add(new InitialdatacheckResponse.VerupNoData2.InformationData
|
||||
{
|
||||
InfoId = (uint)folderId,
|
||||
VerupNo = 1
|
||||
});
|
||||
}
|
||||
var verUp2Type102 = new InitialdatacheckResponse.VerupNoData2
|
||||
{
|
||||
MasterType = 102,
|
||||
};
|
||||
verUp2Type102.AryInformationDatas.AddRange(eventFolderData);
|
||||
response.AryVerupNoData2s.Add(verUp2Type102);
|
||||
|
||||
var songIntroData = new List<InitialdatacheckResponse.VerupNoData2.InformationData>();
|
||||
var verUp2Type105 = new InitialdatacheckResponse.VerupNoData2
|
||||
{
|
||||
MasterType = 105,
|
||||
};
|
||||
for (var setId = 1; setId <= gameDataService.GetSongIntroDictionary().Count; setId++)
|
||||
{
|
||||
songIntroData.Add(new InitialdatacheckResponse.VerupNoData2.InformationData
|
||||
{
|
||||
InfoId = (uint)setId,
|
||||
VerupNo = 1
|
||||
});
|
||||
}
|
||||
verUp2Type105.AryInformationDatas.AddRange(songIntroData);
|
||||
response.AryVerupNoData2s.Add(verUp2Type105);
|
||||
|
||||
response.AryChassisFunctionIds = new uint[] {1,2,3};
|
||||
|
||||
return Ok(response);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user