[][src]Crate genie_scx

A reader, writer, and converter for all versions of Age of Empires scenarios.

This crate aims to support every single scenario that exists. If a scenario file from any Age of Empires 1 or Age of Empires 2 version does not work, please upload it and file an issue!

Modules

convert

Automated scenario conversions.

Structs

DLCOptions
DecodeStringError

Failed to decode a string as WINDOWS-1252.

EncodeStringError

Failed to encode a string as WINDOWS-1252.

Map

Describes the terrain in a map.

ParseDLCPackageError

Could not parse a DLC package identifier because given number is an unknown DLC ID.

ParseDataSetError

Could not parse a data set because given number is an unknown data set ID.

ParseDiplomaticStanceError

Could not parse a diplomatic stance because given number is an unknown stance ID.

ParseStartingAgeError

Could not parse a starting age because given number refers to an unknown age.

SCXHeader
SCXVersion

The SCX Format version string. In practice, this does not really reflect the game version.

Scenario

A Scenario file.

ScenarioObject

An object placed in the scenario.

Tile

A map tile.

TribeScen

Embeddable scenario data. This includes all scenario settings, but not map data, triggers, and placed objects.

Trigger

A trigger, describing automatic interactive behaviours in a scenario.

TriggerCondition

A trigger condition, describing when a trigger can fire.

TriggerEffect

A trigger effect, describing the response when a trigger fires.

TriggerSystem

The trigger system maintains an ordered list of triggers.

UnitTypeID

An ID identifying a unit type.

VersionBundle

All the versions an SCX file uses in a single struct.

VictoryConditions
VictoryEntry
VictoryPointEntry

Enums

DLCPackage

An HD Edition DLC identifier.

DataSet

The data set used by a scenario, HD Edition only.

DiplomaticStance

A player's diplomatic stance toward another player.

Error

Error type for SCX methods, containing all types of errors that may occur while reading or writing scenario files.

StartingAge

The starting age.

StringKey

A key in a language file.

VictoryCondition

Type Definitions

Result

Result type for SCX methods.