Init enter game

This commit is contained in:
Naruse
2025-06-14 11:15:32 +08:00
commit 6a03b39f07
568 changed files with 92872 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
using KianaBH.KcpSharp;
using KianaBH.Proto;
using KianaBH.Data;
namespace KianaBH.GameServer.Server.Packet.Send.Chapter;
public class PacketChapterGroupGetDataRsp : BasePacket
{
public PacketChapterGroupGetDataRsp() : base(CmdIds.ChapterGroupGetDataRsp)
{
var proto = new ChapterGroupGetDataRsp
{
IsAll = true,
ChapterGroupList =
{
GameData.ChapterGroupConfigData.Select(x => new ChapterGroup
{
Id = (uint)x.Key,
SiteList =
{
x.Value.SiteList.Select(siteId => new ChapterGroupSite
{
ChapterId = (uint)siteId,
SiteId = (uint)siteId,
Status = ChapterGroupSiteStatus.Finished,
})
}
})
}
};
SetData(proto);
}
}