aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2024-11-28 20:33:39 +0000
committermat <git@matdoes.dev>2024-11-28 20:33:39 +0000
commitf364ad6b210f93f53b6ee8f73c259622e9f37421 (patch)
tree4ed81d4d3929b543253d72f411d1a7cab6967c74 /azalea-protocol/src/packets/game
parentae5c0ea8e5e1ac9571b78281c26b7d63d110f5e5 (diff)
downloadazalea-drasl-f364ad6b210f93f53b6ee8f73c259622e9f37421.tar.xz
switch some packet structs to unit structs
Diffstat (limited to 'azalea-protocol/src/packets/game')
-rw-r--r--azalea-protocol/src/packets/game/c_chunk_batch_start.rs2
-rw-r--r--azalea-protocol/src/packets/game/c_player_chat.rs10
-rwxr-xr-xazalea-protocol/src/packets/game/c_player_combat_enter.rs2
-rw-r--r--azalea-protocol/src/packets/game/c_start_configuration.rs2
-rw-r--r--azalea-protocol/src/packets/game/s_client_tick_end.rs2
-rw-r--r--azalea-protocol/src/packets/game/s_configuration_acknowledged.rs2
6 files changed, 5 insertions, 15 deletions
diff --git a/azalea-protocol/src/packets/game/c_chunk_batch_start.rs b/azalea-protocol/src/packets/game/c_chunk_batch_start.rs
index 8b0555dc..b5cd1ba2 100644
--- a/azalea-protocol/src/packets/game/c_chunk_batch_start.rs
+++ b/azalea-protocol/src/packets/game/c_chunk_batch_start.rs
@@ -2,4 +2,4 @@ use azalea_buf::AzBuf;
use azalea_protocol_macros::ClientboundGamePacket;
#[derive(Clone, Debug, AzBuf, ClientboundGamePacket)]
-pub struct ClientboundChunkBatchStart {}
+pub struct ClientboundChunkBatchStart;
diff --git a/azalea-protocol/src/packets/game/c_player_chat.rs b/azalea-protocol/src/packets/game/c_player_chat.rs
index 0e9960f2..3628fa95 100644
--- a/azalea-protocol/src/packets/game/c_player_chat.rs
+++ b/azalea-protocol/src/packets/game/c_player_chat.rs
@@ -88,16 +88,6 @@ pub struct MessageSignatureCache {
pub entries: Vec<Option<MessageSignature>>,
}
-// impl MessageSignatureCache {
-// pub fn unpacker(&self) -> impl Fn(u32) -> Option<SignedMessageBody> {
-
-// }
-// }
-
-// impl PackedSignedMessageBody {
-// pub fn unpack(&self, unpacker: impl Fn(u32) -> Option<SignedMessageBody>)
-// {} }
-
impl ClientboundPlayerChat {
/// Returns the content of the message. If you want to get the FormattedText
/// for the whole message including the sender part, use
diff --git a/azalea-protocol/src/packets/game/c_player_combat_enter.rs b/azalea-protocol/src/packets/game/c_player_combat_enter.rs
index 8c344b49..ee58e277 100755
--- a/azalea-protocol/src/packets/game/c_player_combat_enter.rs
+++ b/azalea-protocol/src/packets/game/c_player_combat_enter.rs
@@ -3,4 +3,4 @@ use azalea_protocol_macros::ClientboundGamePacket;
/// Unused in vanilla.
#[derive(Clone, Debug, AzBuf, ClientboundGamePacket)]
-pub struct ClientboundPlayerCombatEnter {}
+pub struct ClientboundPlayerCombatEnter;
diff --git a/azalea-protocol/src/packets/game/c_start_configuration.rs b/azalea-protocol/src/packets/game/c_start_configuration.rs
index 6955b70d..d1c60d5e 100644
--- a/azalea-protocol/src/packets/game/c_start_configuration.rs
+++ b/azalea-protocol/src/packets/game/c_start_configuration.rs
@@ -2,4 +2,4 @@ use azalea_buf::AzBuf;
use azalea_protocol_macros::ClientboundGamePacket;
#[derive(Clone, Debug, AzBuf, ClientboundGamePacket)]
-pub struct ClientboundStartConfiguration {}
+pub struct ClientboundStartConfiguration;
diff --git a/azalea-protocol/src/packets/game/s_client_tick_end.rs b/azalea-protocol/src/packets/game/s_client_tick_end.rs
index d8d93049..221525ec 100644
--- a/azalea-protocol/src/packets/game/s_client_tick_end.rs
+++ b/azalea-protocol/src/packets/game/s_client_tick_end.rs
@@ -2,4 +2,4 @@ use azalea_buf::AzBuf;
use azalea_protocol_macros::ServerboundGamePacket;
#[derive(Clone, Debug, AzBuf, ServerboundGamePacket)]
-pub struct ServerboundClientTickEnd {}
+pub struct ServerboundClientTickEnd;
diff --git a/azalea-protocol/src/packets/game/s_configuration_acknowledged.rs b/azalea-protocol/src/packets/game/s_configuration_acknowledged.rs
index 58e27abb..3e137494 100644
--- a/azalea-protocol/src/packets/game/s_configuration_acknowledged.rs
+++ b/azalea-protocol/src/packets/game/s_configuration_acknowledged.rs
@@ -2,4 +2,4 @@ use azalea_buf::AzBuf;
use azalea_protocol_macros::ServerboundGamePacket;
#[derive(Clone, Debug, AzBuf, ServerboundGamePacket)]
-pub struct ServerboundConfigurationAcknowledged {}
+pub struct ServerboundConfigurationAcknowledged;