Curios slots rendering !
This commit is contained in:
+6
-1
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user