aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/serverbound_chat_command_packet.rs
blob: 6371463b8c9c3d541a4450c731df50bf95e4e38f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use std::collections::HashMap;

use azalea_buf::McBuf;
use packet_macros::GamePacket;

#[derive(Clone, Debug, McBuf, GamePacket)]
pub struct ServerboundChatCommandPacket {
    pub command: String,
    // TODO: Choose a real timestamp type
    pub timestamp: u64,
    pub argument_signatures: ArgumentSignatures,
    pub signed_preview: bool,
}

#[derive(Clone, Debug, McBuf)]
pub struct ArgumentSignatures {
    pub salt: u64,
    pub signatures: HashMap<String, Vec<u8>>,
}