mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 12:46: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 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user