C# Class TagTool.Cache.StringIDResolverBase

Base class for an object which converts stringID values to and from string list indices.
Exibir arquivo Open project: TheGuardians/TagTool Class Usage Examples

Public Methods

Method Description
GetMaxSetStringIndex ( ) : int

Gets the index of the last string which belongs to a set.

GetMinSetStringIndex ( ) : int

Gets the index of the first string which belongs to a set.

GetSetOffsets ( ) : int[]

Gets the beginning offset for each set.

IndexToStringID ( int index ) : StringID

Converts a string list index to a stringID value.

StringIDToIndex ( StringID stringId ) : int

Converts a stringID value to a string list index.

Method Details

GetMaxSetStringIndex() public abstract method

Gets the index of the last string which belongs to a set.
public abstract GetMaxSetStringIndex ( ) : int
return int

GetMinSetStringIndex() public abstract method

Gets the index of the first string which belongs to a set.
public abstract GetMinSetStringIndex ( ) : int
return int

GetSetOffsets() public abstract method

Gets the beginning offset for each set.
public abstract GetSetOffsets ( ) : int[]
return int[]

IndexToStringID() public method

Converts a string list index to a stringID value.
public IndexToStringID ( int index ) : StringID
index int The index.
return StringID

StringIDToIndex() public method

Converts a stringID value to a string list index.
public StringIDToIndex ( StringID stringId ) : int
stringId StringID The stringID.
return int