diff options
| author | mat <git@matdoes.dev> | 2025-10-12 23:01:54 +0300 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-10-12 23:01:54 +0300 |
| commit | ee2575794e91b9457a74a95daf1dcc707058cd58 (patch) | |
| tree | df725850ef18ded5ce3f6552e17095d0f704ae84 /azalea-world/src/container.rs | |
| parent | 1a1402954b07cd77615d0afc026c73b008787f51 (diff) | |
| download | azalea-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.rs | 11 |
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"))] |
