Skip to main content

build_ceo

Function build_ceo 

Source
pub fn build_ceo(
    pack: &mut Pack,
    schema: &Option<Schema>,
    akit_root: &Path,
    bob_exe: &Path,
) -> Result<()>
Expand description

Builds ceo_data.ccd in the Assembly Kit from the CEO tables of a pack, running BOB.

The CEO tables under the pack’s ceo_db/ folder are exported to the Assembly Kit’s raw_data/db as XML, and BOB is run to build the file. The previous ceo_data.ccd is backed up, and the original XML files and BOB config are restored afterwards.

§Arguments

  • pack - Pack with the CEO tables.
  • schema - Schema to decode the tables.
  • akit_root - Root folder of the Assembly Kit.
  • bob_exe - Path of BOB’s executable.

§Errors

Fails if required tables are missing, if exporting them fails, or if BOB doesn’t produce ceo_data.ccd.