C# Class TagTool.Common.TagCacheMap.VersionMap

Mostra file Open project: TheGuardians/TagTool

Public Methods

Method Description
Add ( int globalIndex, int versionedIndex ) : void

Adds a mapping between a global tag index and a versioned tag index.

GetGlobalTagIndex ( int tag ) : int

Converts a tag to a global tag index which can be used to look up the tag in another version.

GetVersionedTagIndex ( int globalIndex ) : int

Converts a global tag index to a tag index for this version.

Method Details

Add() public method

Adds a mapping between a global tag index and a versioned tag index.
public Add ( int globalIndex, int versionedIndex ) : void
globalIndex int The global tag index.
versionedIndex int The tag's index in this version.
return void

GetGlobalTagIndex() public method

Converts a tag to a global tag index which can be used to look up the tag in another version.
public GetGlobalTagIndex ( int tag ) : int
tag int The index of the tag for this version.
return int

GetVersionedTagIndex() public method

Converts a global tag index to a tag index for this version.
public GetVersionedTagIndex ( int globalIndex ) : int
globalIndex int The global tag index returned by for this version.
return int