aoe_djin/dat/color.rs
1#[derive(Protocol, Debug, Clone, PartialEq, Eq)]
2pub struct ColorTable {
3 pub size: u16,
4 #[protocol(length_prefix(elements(size)))]
5 pub colors: Vec<Color>,
6}
7
8/// Player colour data.
9#[derive(Protocol, Debug, Clone, PartialEq, Eq)]
10pub struct Color {
11 pub id: i32,
12 /// Base palette index for this player colour.
13 pub base: i32,
14 /// The palette index to use for unit outlines when they are obscured by buildings or trees.
15 pub unit_outline_color: i32,
16 pub unit_selection_colors: (i32, i32),
17 /// Palette indices for this colour on the minimap.
18 pub minimap_colors: (i32, i32, i32),
19 /// Color table to use for this player colour in the in-game statistics in the bottom right.
20 pub statistics_text_color: i32,
21}