mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
24 lines
847 B
C#
24 lines
847 B
C#
using EggLink.DanhengServer.GameServer.Game.GridFight.Component;
|
|
using EggLink.DanhengServer.Proto;
|
|
|
|
namespace EggLink.DanhengServer.GameServer.Game.GridFight.Sync;
|
|
|
|
public class GridFightLevelSyncData(GridFightSrc src, GridFightLevelComponent level) : BaseGridFightSyncData(src)
|
|
{
|
|
public override GridFightSyncData ToProto()
|
|
{
|
|
return new GridFightSyncData
|
|
{
|
|
LevelSyncInfo = new GridFightLevelSyncInfo
|
|
{
|
|
SectionId = level.CurrentSection.SectionId,
|
|
ChapterId = level.CurrentSection.ChapterId,
|
|
GridFightLayerInfo = new GridFightLayerInfo
|
|
{
|
|
RouteInfo = level.CurrentSection.ToRouteInfo(),
|
|
RouteIsPending = level.CurrentSection.Excel.IsAugment == 1
|
|
}
|
|
}
|
|
};
|
|
}
|
|
} |