From 58776272963822096ee34bc3a1a3ae64dde9ed80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20P=C4=99dzich?= Date: Sat, 22 Feb 2025 00:58:17 +0100 Subject: [PATCH] docs: add links to driver and team ID constants submodules in various struct fields --- src/packets/lobby.rs | 2 ++ src/packets/participants.rs | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/packets/lobby.rs b/src/packets/lobby.rs index 63d220c..07e42a1 100644 --- a/src/packets/lobby.rs +++ b/src/packets/lobby.rs @@ -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, diff --git a/src/packets/participants.rs b/src/packets/participants.rs index 561f8c2..772102f 100644 --- a/src/packets/participants.rs +++ b/src/packets/participants.rs @@ -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))]