[−][src]Struct genie_dat::ColorTable
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
impl ColorTable
[src]
pub fn read_from<R: Read>(input: &mut R) -> Result<Self>
[src]
Read a colour table from an input stream.
pub fn write_to<W: Write>(&self, output: &mut W) -> Result<()>
[src]
Write this colour table to an output stream.
Trait Implementations
impl Clone for ColorTable
[src]
fn clone(&self) -> ColorTable
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ColorTable
[src]
Auto Trait Implementations
impl RefUnwindSafe for ColorTable
impl Send for ColorTable
impl Sync for ColorTable
impl Unpin for ColorTable
impl UnwindSafe for ColorTable
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,