aboutsummaryrefslogtreecommitdiff
path: root/webAO/client.ts
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2026-02-11 12:28:49 +0100
committerGitHub <noreply@github.com>2026-02-11 12:28:49 +0100
commit8e7af5b93009c987a4c0c3fef014cf7b64463e03 (patch)
tree04b0c383ca35962dc3054ec7ace34bb64f019622 /webAO/client.ts
parent726d89ce8605d27be1c14bba59f81cfd6254ccb3 (diff)
parent5bb35a981e2f35df7fbf126faa8655ee3b3ca142 (diff)
Merge pull request #293 from OmniTroid/better-charloading
Better charloading
Diffstat (limited to 'webAO/client.ts')
-rw-r--r--webAO/client.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/webAO/client.ts b/webAO/client.ts
index b7a15a4..05a40c9 100644
--- a/webAO/client.ts
+++ b/webAO/client.ts
@@ -150,6 +150,8 @@ class Client extends EventEmitter {
connect: () => void;
loadResources: () => void;
isLowMemory: () => void;
+ /** Maps player ID to player data */
+ playerlist: Map<number, { charId: number; charName: string; showName: string; name: string; area: number }>;
charicon_extensions: string[];
emote_extensions: string[];
emotions_extensions: string[];
@@ -211,6 +213,7 @@ class Client extends EventEmitter {
this.temp_packet = "";
loadResources;
isLowMemory;
+ this.playerlist = new Map();
this.charicon_extensions = [".png", ".webp"];
this.emote_extensions = [".gif", ".png", ".apng", ".webp", ".webp.static"];
this.emotions_extensions = [".png", ".webp"];