aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/s_chat_command_signed.rs
blob: 6dfac30931eec4a155d696efcf07283e12bc824a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use azalea_buf::AzBuf;
use azalea_crypto::signing::MessageSignature;
use azalea_protocol_macros::ServerboundGamePacket;

use super::s_chat::LastSeenMessagesUpdate;

#[derive(AzBuf, Clone, Debug, PartialEq, ServerboundGamePacket)]
pub struct ServerboundChatCommandSigned {
    pub command: String,
    pub timestamp: u64,
    pub salt: u64,
    pub argument_signatures: Vec<ArgumentSignature>,
    pub last_seen_messages: LastSeenMessagesUpdate,
}

#[derive(AzBuf, Clone, Debug, PartialEq)]
pub struct ArgumentSignature {
    pub name: String,
    pub signature: MessageSignature,
}