diff --git a/AxibugEmuOnline.Client/Assets/Plugins/AxiReplay/NetReplay.cs b/AxibugEmuOnline.Client/Assets/Plugins/AxiReplay/NetReplay.cs
index ec674320..e5c98b0b 100644
--- a/AxibugEmuOnline.Client/Assets/Plugins/AxiReplay/NetReplay.cs
+++ b/AxibugEmuOnline.Client/Assets/Plugins/AxiReplay/NetReplay.cs
@@ -10,14 +10,23 @@ namespace AxiReplay
ReplayStep mNextReplay;
ReplayStep mCurrReplay;
int byFrameIdx = 0;
+ ///
+ /// 服务器远端当前帧
+ ///
+ public int remoteFrameIdx { get; private set; }
+ ///
+ /// 当前帧和服务器帧相差数量
+ ///
+ public int remoteFrameDiff => remoteFrameIdx - mCurrPlayFrame;
public NetReplay()
{
mQueueReplay = new Queue();
}
- public void InData(ReplayStep inputData)
+ public void InData(ReplayStep inputData,int ServerFrameIdx)
{
mQueueReplay.Enqueue(inputData);
MaxInFrame = inputData.FrameStartID;
+ remoteFrameIdx = ServerFrameIdx;
}
public bool NextFrame(out ReplayStep data, out int FrameDiff)
{