Skip to content

Commit

Permalink
Reorder ComponentId
Browse files Browse the repository at this point in the history
For consistency with `WriteCtx`.
  • Loading branch information
Shatur committed Nov 5, 2024
1 parent c0911f4 commit 531910f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/core/ctx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 531910f

Please sign in to comment.