This commit is contained in:
CortexCore
2024-03-31 23:31:00 +08:00
parent e179d2eb53
commit b7b89ee71a
641 changed files with 31286 additions and 22134 deletions

View File

@@ -14,6 +14,7 @@ namespace BITKit
[SerializeReference,SubclassSelector] private IProvider pingOutput;
[SerializeReference,SubclassSelector] private IProvider resolutionOutput;
[SerializeReference,SubclassSelector] private IProvider frameRateOutput;
[SerializeReference, SubclassSelector] private INetClient clientPing;
private readonly DeltaTimer timer = new();
private Ping ping;
[Header(Constant.Header.InternalVariables)]
@@ -28,7 +29,12 @@ namespace BITKit
if (fpsInterval.AllowUpdate)
fpsOutput.Set((string)timer);
if (pingOutput is not null)
if (clientPing is not null)
{
pingOutput.Set(clientPing.Ping.ToString());
}
else if (pingOutput is not null)
{
switch (ping)
{