mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
Feature:Asynchronous Operation & Formatting Code
- Now the async operation is enabled! - Code formatted by Resharper plugin <3
This commit is contained in:
@@ -1,23 +1,20 @@
|
||||
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 { TutorialGuideList = { } };
|
||||
foreach (var data in player.TutorialGuideData?.Tutorials ?? [])
|
||||
{
|
||||
proto.TutorialGuideList.Add(new TutorialGuide()
|
||||
{
|
||||
Id = (uint)data.Key,
|
||||
Status = data.Value,
|
||||
});
|
||||
}
|
||||
namespace EggLink.DanhengServer.Server.Packet.Send.Tutorial;
|
||||
|
||||
SetData(proto);
|
||||
}
|
||||
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