C# Class TagTool.Common.TagVersionMap

A lookup table which can be used to find a tag's equivalents in different game versions.
Afficher le fichier Open project: TheGuardians/TagTool Class Usage Examples

Méthodes publiques

Méthode Description
Add ( DefinitionSet version1, int index1, DefinitionSet version2, int index2 ) : void

Connects a tag index to a tag in another version.

ParseTagVersionMap ( TextReader reader ) : TagVersionMap

Parses a map from a CSV.

Translate ( DefinitionSet version1, int index1, DefinitionSet version2 ) : int

Translates a tag index between two versions.

WriteCsv ( TextWriter writer ) : void

Writes the map out to a CSV.

Method Details

Add() public méthode

Connects a tag index to a tag in another version.
public Add ( DefinitionSet version1, int index1, DefinitionSet version2, int index2 ) : void
version1 DefinitionSet The first version.
index1 int The tag index in the first version.
version2 DefinitionSet The second version.
index2 int The tag index in the second version.
Résultat void

ParseTagVersionMap() public static méthode

Parses a map from a CSV.
public static ParseTagVersionMap ( TextReader reader ) : TagVersionMap
reader System.IO.TextReader The reader to read from.
Résultat TagVersionMap

Translate() public méthode

Translates a tag index between two versions.
public Translate ( DefinitionSet version1, int index1, DefinitionSet version2 ) : int
version1 DefinitionSet The version of the index to translate.
index1 int The tag index.
version2 DefinitionSet The version to get the equivalent tag index in.
Résultat int

WriteCsv() public méthode

Writes the map out to a CSV.
public WriteCsv ( TextWriter writer ) : void
writer System.IO.TextWriter The writer to write to.
Résultat void