[][src]Struct genie_dat::ColorTable

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,
}

Player colour data.

Fields

id: i32base: 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]

impl Debug for ColorTable[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.