Expand description
Grass placement list for BMD vegetation files.
This module defines the grass placement data structure used in BMD vegetation files. Grass data is stored as a compressed binary blob that defines grass coverage areas and density across the battle map.
§Structure
GrassList: Container for grass placement data
§Supported Versions
- Version 4: Current format used in Total War: Warhammer III
§Implementation Notes
The grass placement data is stored as a raw byte array. The internal format is not fully documented but represents compressed grass coverage information.
§Examples
ⓘ
use rpfm_lib::files::bmd_vegetation::grass_list::*;
// Decode a grass list from binary data
let grass_list = GrassList::decode(&mut data, &extra_data)?;
// Access the raw grass data
println!("Grass data size: {} bytes", grass_list.grass_list().len());Structs§
- Grass
Item - The position of a grass patch. Stored as f16.
- Grass
Item Vector - The positions of one type of grass.
- Grass
List - Grass placement data for a battle map: groups of grass positions, by grass type.