mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
update to 2.1
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
using EggLink.DanhengServer.Game.Player;
|
||||
using EggLink.DanhengServer.Proto;
|
||||
|
||||
namespace EggLink.DanhengServer.Server.Packet.Send.Tutorial
|
||||
{
|
||||
public class PacketGetTutorialGuideScRsp : BasePacket
|
||||
{
|
||||
public PacketGetTutorialGuideScRsp(PlayerInstance player) : base(CmdIds.GetTutorialGuideScRsp)
|
||||
{
|
||||
var proto = new GetTutorialGuideScRsp();
|
||||
|
||||
foreach (var data in player.TutorialGuideData?.Tutorials ?? [])
|
||||
{
|
||||
proto.TutorialGuideList.Add(new TutorialGuide()
|
||||
{
|
||||
Id = (uint)data.Key,
|
||||
Status = data.Value,
|
||||
});
|
||||
}
|
||||
|
||||
SetData(proto);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user