This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2024-01-29 02:28:42 +08:00
parent 68c4d5e811
commit 01a4312761
73 changed files with 13939 additions and 42231 deletions

View File

@@ -1,4 +1,5 @@
using System.Threading.Tasks;
using System;
using System.Threading.Tasks;
using Cysharp.Threading.Tasks;
using Plugins.JNGame.Network;

View File

@@ -1,4 +1,6 @@
using Plugins.JNGame.Sync.Frame;
using Cysharp.Threading.Tasks;
using Plugins.JNGame.Sync.Frame;
using UnityEngine;
namespace Script.AppImpl
{
@@ -8,5 +10,18 @@ namespace Script.AppImpl
{
throw new System.NotImplementedException();
}
protected override async UniTask<JNFrameInfos> OnServerData(int start, int end)
{
var data = (await App.Api.GetByte($"/sync/frame?start={start}"));
if (data is { Length: > 0 })
{
return JNFrameInfos.Parser.ParseFrom(data);
}
else
{
return new JNFrameInfos();
}
}
}
}