aboutsummaryrefslogtreecommitdiff
path: root/azalea-world/src/world.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-10-12 23:01:54 +0300
committermat <git@matdoes.dev>2025-10-12 23:01:54 +0300
commitee2575794e91b9457a74a95daf1dcc707058cd58 (patch)
treedf725850ef18ded5ce3f6552e17095d0f704ae84 /azalea-world/src/world.rs
parent1a1402954b07cd77615d0afc026c73b008787f51 (diff)
downloadazalea-drasl-ee2575794e91b9457a74a95daf1dcc707058cd58.tar.xz
upgrade deps and clean up lots of doc comments
Diffstat (limited to 'azalea-world/src/world.rs')
-rw-r--r--azalea-world/src/world.rs11
1 files changed, 6 insertions, 5 deletions
diff --git a/azalea-world/src/world.rs b/azalea-world/src/world.rs
index 082ba7bc..969b7d36 100644
--- a/azalea-world/src/world.rs
+++ b/azalea-world/src/world.rs
@@ -119,11 +119,10 @@ impl From<u32> for MinecraftEntityId {
/// world.
#[derive(Debug, Default)]
pub struct PartialEntityInfos {
- // note: using MinecraftEntityId for entity ids is acceptable here since
- // there's no chance of collisions here
- /// The entity id of the player that owns this partial world. This will
- /// make `RelativeEntityUpdate` pretend this entity doesn't exist so
- /// it doesn't get modified from outside sources.
+ /// The entity ID of the player that owns this partial world.
+ ///
+ /// This will make `RelativeEntityUpdate` pretend this entity doesn't exist
+ /// so it doesn't get modified from outside sources.
pub owner_entity: Option<Entity>,
/// A counter for each entity that tracks how many updates we've observed
/// for it.
@@ -131,6 +130,8 @@ pub struct PartialEntityInfos {
/// This is used for shared worlds (i.e. swarms), to make sure we don't
/// update entities twice on accident.
pub updates_received: IntMap<MinecraftEntityId, u32>,
+ // ^ note: using MinecraftEntityId for entity ids is acceptable here since
+ // there's no chance of collisions
}
impl PartialEntityInfos {