mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 06:16:04 +00:00
update docs for TabList to mention how it works as a resource
This commit is contained in:
parent
228489dded
commit
022771b71b
1 changed files with 7 additions and 0 deletions
|
@ -100,6 +100,13 @@ pub struct PermissionLevel(pub u8);
|
|||
/// println!("- {} ({}ms)", player_info.profile.name, player_info.latency);
|
||||
/// }
|
||||
/// # }
|
||||
/// ```
|
||||
///
|
||||
/// For convenience, `TabList` is also a resource in the ECS.
|
||||
/// It's set to be the same as the tab list for the last client whose tab list
|
||||
/// was updated.
|
||||
/// This means you should avoid using `TabList` as a resource unless you know
|
||||
/// all of your clients will have the same tab list.
|
||||
#[derive(Component, Resource, Clone, Debug, Deref, DerefMut, Default)]
|
||||
pub struct TabList(HashMap<Uuid, PlayerInfo>);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue