Curios slots rendering !

This commit is contained in:
2026-10-01 17:57:22 -03:00
parent ea9f3f61bb
commit f2c3cb8135
39 changed files with 1032 additions and 226 deletions
+6 -1
View File
@@ -7,7 +7,7 @@ export const AIR_ID = "bworld:air";
// bump when a client and server of different versions can't play together.
// the server rejects a different version before the client downloads anything
export const PROTOCOL_VERSION = 16;
export const PROTOCOL_VERSION = 17;
export interface PlayerInfo {
id: string;
@@ -21,6 +21,8 @@ export interface PlayerInfo {
skin?: string;
// the skin is for the model with 3 pixel wide arms
slim?: boolean;
// what they're wearing that shows, see player_worn
worn?: ItemData[];
}
// an entity that isn't a player, as the server first sends it. players have their own messages. items on the
@@ -156,6 +158,9 @@ export type ServerMessage =
| { type: "player_move"; id: string; x: number; y: number; z: number; yaw: number; pitch: number }
// a player changed their skin, including the one receiving it. without skin it's back to the default
| { type: "player_skin"; id: string; skin?: string; slim?: boolean }
// what a player wears that shows changed, to everyone including them: the items whose json has worn, see
// ctx's player.set_worn. also sent to a player right after join, for what they wear themselves
| { type: "player_worn"; id: string; worn: ItemData[] }
| { type: "add_entity"; entity: EntityInfo }
| {
type: "move_entity";