OpenXcom  1.0
Open-source clone of the original X-Com
Public Member Functions | List of all members
OpenXcom::RuleConverter Class Reference

Represents game-specific contents needed for save convertion and ID matching. More...

#include <RuleConverter.h>

Public Member Functions

 RuleConverter ()
 Creates a blank converter ruleset. More...
 
 ~RuleConverter ()
 Cleans up the converter ruleset.
 
void load (const YAML::Node &node)
 Loads the converter from YAML. More...
 
int getOffset (const std::string &id)
 Gets the offset for a specific attribute.
 
const std::vector< std::string > & getMarkers () const
 Gets the marker ID list.
 
const std::vector< std::string > & getCountries () const
 Gets the country ID list.
 
const std::vector< std::string > & getRegions () const
 Gets the region ID list.
 
const std::vector< std::string > & getFacilities () const
 Gets the facility ID list.
 
const std::vector< std::string > & getItems () const
 Gets the item ID list.
 
const std::vector< std::string > & getCrews () const
 Gets the UFO crew ID list.
 
const std::vector< std::string > & getCrafts () const
 Gets the craft ID list.
 
const std::vector< std::string > & getUfos () const
 Gets the UFO ID list.
 
const std::vector< std::string > & getCraftWeapons () const
 Gets the craft weapon ID list.
 
const std::vector< std::string > & getMissions () const
 Gets the alien mission ID list.
 
const std::vector< std::string > & getArmor () const
 Gets the armor ID list.
 
const std::vector< std::string > & getAlienRaces () const
 Gets the alien race ID list.
 
const std::vector< std::string > & getAlienRanks () const
 Gets the alien rank ID list.
 
const std::vector< std::string > & getResearch () const
 Gets the research ID list.
 
const std::vector< std::string > & getManufacture () const
 Gets the manufacture ID list.
 
const std::vector< std::string > & getUfopaedia () const
 Gets the ufopaedia ID list.
 

Detailed Description

Represents game-specific contents needed for save convertion and ID matching.

See also
SaveConverter

Constructor & Destructor Documentation

◆ RuleConverter()

OpenXcom::RuleConverter::RuleConverter ( )

Creates a blank converter ruleset.

Creates a blank ruleset for converter data.

Member Function Documentation

◆ load()

void OpenXcom::RuleConverter::load ( const YAML::Node &  node)

Loads the converter from YAML.

Loads the converter data from a YAML file.

Parameters
nodeYAML node.

The documentation for this class was generated from the following files: