From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/PTC/PtcG2C_SyncStepNotify.cs | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SyncStepNotify.cs (limited to 'Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SyncStepNotify.cs') diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SyncStepNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SyncStepNotify.cs new file mode 100644 index 00000000..38300284 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SyncStepNotify.cs @@ -0,0 +1,35 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_SyncStepNotify : Protocol + { + public StepSyncInfo Data = new StepSyncInfo(); + + public override uint GetProtoType() + { + return 37999u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data.StepFrame = 0u; + this.Data.StepFrameSpecified = false; + this.Data.DataList.Clear(); + Serializer.Merge(stream, this.Data); + } + + public override void Process() + { + Process_PtcG2C_SyncStepNotify.Process(this); + } + } +} -- cgit v1.1-26-g67d0