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,34 +1,27 @@
using EggLink.DanhengServer.Database.Scene;
using EggLink.DanhengServer.Proto;
using EggLink.DanhengServer.Server.Packet;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EggLink.DanhengServer.GameServer.Server.Packet.Send.HeartDial
namespace EggLink.DanhengServer.GameServer.Server.Packet.Send.HeartDial;
public class PacketHeartDialScriptChangeScNotify : BasePacket
{
public class PacketHeartDialScriptChangeScNotify : BasePacket
public PacketHeartDialScriptChangeScNotify(HeartDialUnlockStatus status, HeartDialInfo? changedInfo = null) : base(
CmdIds.HeartDialScriptChangeScNotify)
{
public PacketHeartDialScriptChangeScNotify(HeartDialUnlockStatus status, HeartDialInfo? changedInfo = null) : base(CmdIds.HeartDialScriptChangeScNotify)
var proto = new HeartDialScriptChangeScNotify
{
var proto = new HeartDialScriptChangeScNotify
{
UnlockStatus = status,
};
UnlockStatus = status
};
if (changedInfo != null)
if (changedInfo != null)
proto.ChangedScriptInfoList.Add(new HeartDialScriptInfo
{
proto.ChangedScriptInfoList.Add(new HeartDialScriptInfo
{
ScriptId = (uint)changedInfo.ScriptId,
CurEmotionType = (HeartDialEmotionType)changedInfo.EmoType,
Step = (HeartDialStepType)changedInfo.StepType,
});
}
ScriptId = (uint)changedInfo.ScriptId,
CurEmotionType = (HeartDialEmotionType)changedInfo.EmoType,
Step = (HeartDialStepType)changedInfo.StepType
});
SetData(proto);
}
SetData(proto);
}
}
}