pub struct AreMap {
pub map_res_x: i32,
pub north_axis: i32,
pub map_zoom: i32,
pub map_point_1_x: f32,
pub map_point_1_y: f32,
pub map_point_2_x: f32,
pub map_point_2_y: f32,
pub world_point_1_x: f32,
pub world_point_1_y: f32,
pub world_point_2_x: f32,
pub world_point_2_y: f32,
}Expand description
Typed view over the ARE Map nested struct.
Fields§
§map_res_x: i32Horizontal map resolution (MapResX).
north_axis: i32Map north-axis selection (NorthAxis).
map_zoom: i32Map zoom level (MapZoom).
map_point_1_x: f32UI map point 1, X component (MapPt1X).
map_point_1_y: f32UI map point 1, Y component (MapPt1Y).
map_point_2_x: f32UI map point 2, X component (MapPt2X).
map_point_2_y: f32UI map point 2, Y component (MapPt2Y).
world_point_1_x: f32World point 1, X component (WorldPt1X).
world_point_1_y: f32World point 1, Y component (WorldPt1Y).
world_point_2_x: f32World point 2, X component (WorldPt2X).
world_point_2_y: f32World point 2, Y component (WorldPt2Y).
Implementations§
Source§impl AreMap
impl AreMap
Sourcepub const PARTS: &'static [&'static [Field]]
pub const PARTS: &'static [&'static [Field]]
This type’s schema in parts, which is what a container holding it references.
Own fields first, then one part per flattened child in the order they are declared.
Sourcepub fn read_declared(root: &GffStruct) -> Self
pub fn read_declared(root: &GffStruct) -> Self
Reads every declared field off root.
Absent fields take the entry’s own answer, so a fallback is derived from the declaration rather than restated beside it.
A field declaring a hand-written read is left at that answer for the view to overwrite.
Sourcepub fn write_declared(&self, root: &mut GffStruct)
pub fn write_declared(&self, root: &mut GffStruct)
Writes every declared field onto root, leaving out the ones
their entry says the engine’s own writer leaves out.
A field declaring a hand-written write is not touched here.
Sourcepub fn write_element(&self, structure: &mut GffStruct)
pub fn write_element(&self, structure: &mut GffStruct)
Writes one element of a list of this type.