blob: 9ae0b79fa917d05d89c8a5c899f8996afbbdb1bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
use std::collections::HashMap;
use packet_macros::{GamePacket, McBuf};
#[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>>,
}
|