aboutsummaryrefslogtreecommitdiff
path: root/azalea-world/src/container.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/container.rs
parent1a1402954b07cd77615d0afc026c73b008787f51 (diff)
downloadazalea-drasl-ee2575794e91b9457a74a95daf1dcc707058cd58.tar.xz
upgrade deps and clean up lots of doc comments
Diffstat (limited to 'azalea-world/src/container.rs')
-rw-r--r--azalea-world/src/container.rs11
1 files changed, 7 insertions, 4 deletions
diff --git a/azalea-world/src/container.rs b/azalea-world/src/container.rs
index bb8ade70..279f3061 100644
--- a/azalea-world/src/container.rs
+++ b/azalea-world/src/container.rs
@@ -13,8 +13,10 @@ use tracing::{debug, error};
use crate::{ChunkStorage, Instance};
-/// A container of [`Instance`]s (aka worlds). Instances are stored as a Weak
-/// pointer here, so if no clients are using an instance it will be forgotten.
+/// A container of [`Instance`]s (aka worlds).
+///
+/// Instances are stored as a Weak pointer here, so if no clients are using an
+/// instance it will be forgotten.
#[derive(Default, Resource)]
pub struct InstanceContainer {
// We just refer to the chunks here and don't include entities because there's not that many
@@ -85,8 +87,9 @@ impl InstanceContainer {
}
}
-/// The name of the [`Instance`](crate::Instance) (world) the entity is
-/// in. If two entities share the same instance name, we assume they're in the
+/// The name of the [`Instance`] (aka world/dimension) that the entity is in.
+///
+/// If two entities share the same instance name, we assume they're in the
/// same instance.
#[derive(Component, Clone, Debug, PartialEq, Deref, DerefMut)]
#[doc(alias("worldname", "world name"))]