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,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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user