1
0
mirror of synced 2024-11-15 02:47:35 +01:00

Fluctuate stats panel while playing

This commit is contained in:
TLH 2022-08-27 19:43:47 +09:00
parent d130dba7f2
commit c041549d3f

View File

@ -1,4 +1,6 @@
using TaikoLocalServer.Common;
using System.Collections;
using TaikoLocalServer.Common;
using TaikoLocalServer.Utils;
namespace TaikoLocalServer.Controllers;
@ -20,7 +22,15 @@ public class InitialDataCheckController : ControllerBase
{
logger.LogInformation("Initial data check request: {Request}", request.Stringify());
var musicAttributeManager = MusicAttributeManager.Instance;
var enabledArray = new byte[Constants.MUSIC_FLAG_ARRAY_SIZE];
var bitSet = new BitArray(Constants.MUSIC_ID_MAX);
foreach (var music in musicAttributeManager.Musics)
{
bitSet.Set((int)music, true);
}
bitSet.CopyTo(enabledArray, 0);
var response = new InitialdatacheckResponse
{
@ -30,6 +40,7 @@ public class InitialDataCheckController : ControllerBase
IsClose = false,
//SongIntroductionEndDatetime = (DateTime.Now + TimeSpan.FromDays(999)).ToString(Constants.DATE_TIME_FORMAT),
DefaultSongFlg = enabledArray,
AchievementSongBit = enabledArray,
AryShopFolderDatas =
{
new InitialdatacheckResponse.InformationData