Feature:Asynchronous Operation & Formatting Code

- Now the async operation is enabled!
- Code formatted by Resharper plugin <3
This commit is contained in:
Somebody
2024-07-22 17:12:03 +08:00
parent e983375620
commit 87d228eb79
793 changed files with 34764 additions and 40190 deletions

View File

@@ -1,23 +1,20 @@
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() { TutorialList = { } };
namespace EggLink.DanhengServer.Server.Packet.Send.Tutorial;
foreach (var item in player.TutorialData!.Tutorials)
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
{
proto.TutorialList.Add(new Proto.Tutorial()
{
Id = (uint)item.Key,
Status = item.Value,
});
}
SetData(proto);
}
Id = (uint)item.Key,
Status = item.Value
});
SetData(proto);
}
}
}