Struct vault::Map
[−]
[src]
pub struct Map { pub file: String, pub name: String, pub description: String, pub description_long: String, pub width: u32, pub height: u32, pub players: u32, }
This type represents a Company of Heroes 2 map as presented in a CoH2 replay file.
Fields
file: String
Internal Relic map file path
name: String
Locale string representation of map name
description: String
Locale string representation of map description
description_long: String
If applicable, alternate text map description
width: u32
Map width in game units
height: u32
Map height in game units
players: u32
Number of players supported by the map
Methods
impl Map
[src]
fn new() -> Map
Constructs a new Map
with empty initial data.
fn with_data(
file: String,
name: String,
description: String,
description_long: String,
width: u32,
height: u32,
players: u32
) -> Map
file: String,
name: String,
description: String,
description_long: String,
width: u32,
height: u32,
players: u32
) -> Map
Constructs a new Map
initialized with the data given.