Improve networking

This commit is contained in:
2026-09-25 00:08:01 -03:00
parent 6458bc0440
commit 2a2ccae9ce
18 changed files with 600 additions and 162 deletions
+11 -1
View File
@@ -20,15 +20,25 @@ export interface ModData {
ores: OreJson[];
}
// a mod as the server lists it to clients, in load order. paths are relative to the site root
// a mod as the server lists it to clients, in load order. paths are relative to the server's root
export interface ModListing {
id: string;
name: string;
version: string;
// short hash of everything public, the folder it's served from
hash: string;
data: string;
client?: string;
worldgen?: string;
// sha-256 in hex of each file, clients check these before using them
sha256: { data: string; client?: string; worldgen?: string };
}
// the texture atlas with every mod's textures, built by the server
export interface AtlasListing {
png: string;
json: string;
sha256: { png: string; json: string };
}
export class RecipeBook {