Files
DanhengServer-OpenSource/GameServer/Server/Packet/Recv/Music/HandlerMusicRhythmDataCsReq.cs
letheriver2007 e7bf7fcebd Fix music system
2024-10-07 23:08:09 +08:00

21 lines
832 B
C#

using EggLink.DanhengServer.GameServer.Server.Packet.Send.Music;
using EggLink.DanhengServer.Kcp;
namespace EggLink.DanhengServer.GameServer.Server.Packet.Recv.Music;
[Opcode(CmdIds.MusicRhythmDataCsReq)]
public class HandlerMusicRhythmDataCsReq : Handler
{
public override async Task OnHandle(Connection connection, byte[] header, byte[] data)
{
await connection.SendPacket(new PacketMusicRhythmDataScRsp());
// Unlock max difficulty level
await connection.SendPacket(CmdIds.MusicRhythmMaxDifficultyLevelsUnlockNotify);
// Unknwon fields
await connection.SendPacket(new PacketMusicRhythmUnlockSongNotify());
await connection.SendPacket(new PacketMusicRhythmUnlockSongSfxScNotify());
await connection.SendPacket(new PacketMusicRhythmUnlockTrackScNotify());
}
}