Skip to main content

Module grass_list

Module grass_list 

Source
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§

GrassItem
The position of a grass patch. Stored as f16.
GrassItemVector
The positions of one type of grass.
GrassList
Grass placement data for a battle map: groups of grass positions, by grass type.