pub struct PlayerLoadout { /* private fields */ }
Expand description
The car type, color, and other aspects of the player’s appearance. See https://github.com/RLBot/RLBot/wiki/Bot-Customization
Implementations§
Source§impl PlayerLoadout
impl PlayerLoadout
pub fn new() -> Self
pub fn team_color_id(self, team_color_id: i32) -> Self
pub fn custom_color_id(self, custom_color_id: i32) -> Self
pub fn car_id(self, car_id: i32) -> Self
pub fn decal_id(self, decal_id: i32) -> Self
pub fn wheels_id(self, wheels_id: i32) -> Self
pub fn boost_id(self, boost_id: i32) -> Self
pub fn antenna_id(self, antenna_id: i32) -> Self
pub fn hat_id(self, hat_id: i32) -> Self
pub fn paint_finish_id(self, paint_finish_id: i32) -> Self
pub fn custom_finish_id(self, custom_finish_id: i32) -> Self
pub fn engine_audio_id(self, engine_audio_id: i32) -> Self
pub fn trails_id(self, trails_id: i32) -> Self
pub fn goal_explosion_id(self, goal_explosion_id: i32) -> Self
pub fn loadout_paint(self, loadout_paint: LoadoutPaint) -> Self
Trait Implementations§
Source§impl Clone for PlayerLoadout
impl Clone for PlayerLoadout
Source§fn clone(&self) -> PlayerLoadout
fn clone(&self) -> PlayerLoadout
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for PlayerLoadout
impl Default for PlayerLoadout
Source§fn default() -> PlayerLoadout
fn default() -> PlayerLoadout
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PlayerLoadout
impl RefUnwindSafe for PlayerLoadout
impl Send for PlayerLoadout
impl Sync for PlayerLoadout
impl Unpin for PlayerLoadout
impl UnwindSafe for PlayerLoadout
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).Source§unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.