mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 14:26:04 +00:00
ServerboundChatSessionUpdatePacket
This commit is contained in:
parent
ff9cdd9a33
commit
efe4bd47b0
2 changed files with 17 additions and 19 deletions
|
@ -11,6 +11,8 @@ use std::{
|
|||
};
|
||||
use uuid::Uuid;
|
||||
|
||||
use super::serverbound_chat_session_update_packet::RemoteChatSessionData;
|
||||
|
||||
#[derive(Clone, Debug, ClientboundGamePacket)]
|
||||
pub struct ClientboundPlayerInfoUpdatePacket {
|
||||
pub actions: ActionEnumSet,
|
||||
|
@ -28,19 +30,6 @@ pub struct PlayerInfoEntry {
|
|||
pub chat_session: Option<RemoteChatSessionData>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq, McBuf)]
|
||||
pub struct RemoteChatSessionData {
|
||||
pub session_id: Uuid,
|
||||
pub profile_public_key: Option<ProfilePublicKeyData>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, McBuf, PartialEq, Eq)]
|
||||
pub struct ProfilePublicKeyData {
|
||||
pub expires_at: u64,
|
||||
pub key: Vec<u8>,
|
||||
pub key_signature: Vec<u8>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, McBuf)]
|
||||
pub struct AddPlayerAction {
|
||||
pub name: String,
|
||||
|
|
|
@ -1,12 +1,21 @@
|
|||
use azalea_buf::McBuf;
|
||||
use azalea_protocol_macros::ServerboundGamePacket;
|
||||
use uuid::Uuid;
|
||||
|
||||
#[derive(Clone, Debug, McBuf, ServerboundGamePacket)]
|
||||
pub struct ServerboundChatSessionUpdatePacket {
|
||||
// TODO: {'field': 'a.a', 'operation': 'write', 'type': 'uuid'}
|
||||
// TODO: {'field': 'a.b.b.toEpochMilli()', 'operation': 'write', 'type': 'long'}
|
||||
// TODO: {'field': 'a.b.c.getEncoded().length', 'operation': 'write', 'type': 'varint'}
|
||||
// TODO: {'field': 'a.b.c.getEncoded()', 'operation': 'write', 'type': 'byte[]'}
|
||||
// TODO: {'field': 'a.b.d.length', 'operation': 'write', 'type': 'varint'}
|
||||
// TODO: {'field': 'a.b.d', 'operation': 'write', 'type': 'byte[]'}
|
||||
pub chat_session: RemoteChatSessionData,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq, McBuf)]
|
||||
pub struct RemoteChatSessionData {
|
||||
pub session_id: Uuid,
|
||||
pub profile_public_key: Option<ProfilePublicKeyData>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, McBuf, PartialEq, Eq)]
|
||||
pub struct ProfilePublicKeyData {
|
||||
pub expires_at: u64,
|
||||
pub key: Vec<u8>,
|
||||
pub key_signature: Vec<u8>,
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue