pub struct ColorTable {
pub id: i32,
pub base: PaletteIndex,
pub unit_outline_color: PaletteIndex,
pub unit_selection_colors: (PaletteIndex, PaletteIndex),
pub minimap_colors: (PaletteIndex, PaletteIndex, PaletteIndex),
pub statistics_text_color: i32,
}
Expand description
Player colour data.
Fields§
§id: i32
§base: PaletteIndex
Base palette index for this player colour.
unit_outline_color: PaletteIndex
The palette index to use for unit outlines when they are obscured by buildings or trees.
unit_selection_colors: (PaletteIndex, PaletteIndex)
§minimap_colors: (PaletteIndex, PaletteIndex, PaletteIndex)
Palette indices for this colour on the minimap.
statistics_text_color: i32
Color table to use for this player colour in the in-game statistics in the bottom right.
Implementations§
Trait Implementations§
Source§impl Clone for ColorTable
impl Clone for ColorTable
Source§fn clone(&self) -> ColorTable
fn clone(&self) -> ColorTable
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 moreAuto Trait Implementations§
impl Freeze for ColorTable
impl RefUnwindSafe for ColorTable
impl Send for ColorTable
impl Sync for ColorTable
impl Unpin for ColorTable
impl UnwindSafe for ColorTable
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