From 37f0a32fd51070164ea64c9ea67ab41b6511a28d Mon Sep 17 00:00:00 2001 From: Hennadii Chernyshchyk Date: Tue, 5 Nov 2024 21:10:26 +0200 Subject: [PATCH] Reorder `ComponentId` For consistency with `WriteCtx`. --- src/core/ctx.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/core/ctx.rs b/src/core/ctx.rs index 6935904c..c518392d 100644 --- a/src/core/ctx.rs +++ b/src/core/ctx.rs @@ -5,11 +5,11 @@ use super::{replicon_tick::RepliconTick, server_entity_map::ServerEntityMap, Rep /// Replication context for serialization function. #[non_exhaustive] pub struct SerializeCtx { - /// Current tick. - pub server_tick: RepliconTick, - /// ID of the serializing component. pub component_id: ComponentId, + + /// Current tick. + pub server_tick: RepliconTick, } /// Replication context for writing and deserialization. @@ -65,11 +65,11 @@ pub struct RemoveCtx<'a, 'w, 's> { /// A queue to perform structural changes to the [`World`]. pub commands: &'a mut Commands<'w, 's>, - /// Tick for the currently processing message. - pub message_tick: RepliconTick, - /// ID of the removing component. pub component_id: ComponentId, + + /// Tick for the currently processing message. + pub message_tick: RepliconTick, } /// Replication context for despawn.