mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 12:46:03 +08:00
23 lines
672 B
C#
23 lines
672 B
C#
using EggLink.DanhengServer.Game.Player;
|
|
using EggLink.DanhengServer.Proto;
|
|
|
|
namespace EggLink.DanhengServer.Server.Packet.Send.Tutorial
|
|
{
|
|
public class PacketGetTutorialScRsp : BasePacket
|
|
{
|
|
public PacketGetTutorialScRsp(PlayerInstance player) : base(CmdIds.GetTutorialScRsp)
|
|
{
|
|
var proto = new GetTutorialScRsp();
|
|
foreach (var item in player.TutorialData!.Tutorials)
|
|
{
|
|
proto.TutorialList.Add(new Proto.Tutorial()
|
|
{
|
|
Id = (uint)item.Key,
|
|
Status = item.Value,
|
|
});
|
|
}
|
|
SetData(proto);
|
|
}
|
|
}
|
|
}
|