docs: add links to driver and team ID constants submodules in various struct fields

This commit is contained in:
Maciej Pędzich 2025-02-22 00:58:17 +01:00
parent ac9408f720
commit 5877627296
Signed by: maciejpedzich
GPG Key ID: CE4A303D84882F0D
2 changed files with 6 additions and 0 deletions

View File

@ -14,6 +14,8 @@ pub struct LobbyInfoData {
#[br(try_map(u8_to_bool))]
pub ai_controlled: bool,
/// Team's ID.
/// See [`team_id`](mod@crate::constants::team_id)
/// for possible values.
pub team_id: u8,
/// Driver's nationality.
pub nationality: Nationality,

View File

@ -14,10 +14,14 @@ pub struct ParticipantsData {
#[br(try_map(u8_to_bool))]
pub ai_controlled: bool,
/// Driver's ID.
/// See [`driver_id`](mod@crate::constants::driver_id)
/// for possible values.
pub driver_id: u8,
/// Unique ID for network players.
pub network_id: u8,
/// Team's ID.
/// See [`team_id`](mod@crate::constants::team_id)
/// for possible values.
pub team_id: u8,
/// Whether my team is being used.
#[br(try_map(u8_to_bool))]