Skip to main content

Module building_reference

Module building_reference 

Source
Expand description

Building reference data structure for BMD files.

This module defines the BuildingReference structure which provides a reference to a building in the battlefield building list by its index.

§Supported Versions

  • Version 1: Current format

§Usage

use rpfm_lib::files::bmd::common::building_reference::BuildingReference;
use rpfm_lib::files::Decodeable;

let reference = BuildingReference::decode(&mut reader, &None)?;
println!("Building index: {}", reference.building_index());

Structs§

BuildingReference
Reference to a building by its index in the building list.