From 5421379b26d44455818adc5784342b5181124a6b Mon Sep 17 00:00:00 2001 From: Artem Dzhemesiuk Date: Sun, 7 Jan 2024 23:55:14 +0100 Subject: [PATCH] feat(client): entity getSyncInfo --- client/index.d.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/client/index.d.ts b/client/index.d.ts index cd2a07ff..2728117c 100644 --- a/client/index.d.ts +++ b/client/index.d.ts @@ -544,6 +544,20 @@ declare module "alt-client" { readonly uuid: string | null; } + export interface ISyncInfo { + readonly active: boolean; + readonly receivedTick: number; + readonly fullyReceivedTick: number; + readonly sendTick: number; + readonly ackedSendTick: number; + readonly propertyCount: number; + readonly componentCount: number; + /** + * 2D array of property update ticks grouped by component + */ + readonly propertyUpdateTicks: number[][]; + } + export class BaseObject extends shared.BaseObject { /** * Whether this entity was created clientside or serverside. (Clientside = false, Serverside = true). @@ -946,6 +960,8 @@ declare module "alt-client" { public getStreamSyncedMetaKeys(): readonly string[]; + public getSyncInfo(): ISyncInfo; + public frozen: boolean; }