diff options
Diffstat (limited to 'azalea-protocol/src/packets/game/s_chat_session_update.rs')
| -rw-r--r-- | azalea-protocol/src/packets/game/s_chat_session_update.rs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/azalea-protocol/src/packets/game/s_chat_session_update.rs b/azalea-protocol/src/packets/game/s_chat_session_update.rs new file mode 100644 index 00000000..f3499983 --- /dev/null +++ b/azalea-protocol/src/packets/game/s_chat_session_update.rs @@ -0,0 +1,21 @@ +use azalea_buf::AzBuf; +use azalea_protocol_macros::ServerboundGamePacket; +use uuid::Uuid; + +#[derive(Clone, Debug, AzBuf, ServerboundGamePacket)] +pub struct ServerboundChatSessionUpdate { + pub chat_session: RemoteChatSessionData, +} + +#[derive(Clone, Debug, PartialEq, Eq, AzBuf)] +pub struct RemoteChatSessionData { + pub session_id: Uuid, + pub profile_public_key: ProfilePublicKeyData, +} + +#[derive(Clone, Debug, AzBuf, PartialEq, Eq)] +pub struct ProfilePublicKeyData { + pub expires_at: u64, + pub key: Vec<u8>, + pub key_signature: Vec<u8>, +} |
