C# 클래스 TagTool.Cache.StringIDCache

A file containing a cache of all of the stringID strings.
파일 보기 프로젝트 열기: TheGuardians/TagTool 1 사용 예제들

공개 메소드들

메소드 설명
Add ( string str ) : StringID

Adds a string to the cache.

GetString ( StringID stringId ) : string

Gets the string corresponding to a stringID.

GetStringID ( int strIndex ) : StringID

Gets the stringID corresponding to a string list index.

GetStringID ( string str ) : StringID

Gets the stringID corresponding to a string in the list.

Save ( Stream stream ) : void

Saves the string data back to the file.

StringIDCache ( Stream stream, StringIDResolverBase resolver ) : System

Loads a stringID cache from a string_ids.dat file.

비공개 메소드들

메소드 설명
Load ( Stream stream ) : void

Loads the cache from a stream.

메소드 상세

Add() 공개 메소드

Adds a string to the cache.
public Add ( string str ) : StringID
str string The string to add.
리턴 StringID

GetString() 공개 메소드

Gets the string corresponding to a stringID.
public GetString ( StringID stringId ) : string
stringId StringID The stringID.
리턴 string

GetStringID() 공개 메소드

Gets the stringID corresponding to a string list index.
public GetStringID ( int strIndex ) : StringID
strIndex int The string list index to convert.
리턴 StringID

GetStringID() 공개 메소드

Gets the stringID corresponding to a string in the list.
public GetStringID ( string str ) : StringID
str string The string to search for.
리턴 StringID

Save() 공개 메소드

Saves the string data back to the file.
public Save ( Stream stream ) : void
stream Stream The stream to write to.
리턴 void

StringIDCache() 공개 메소드

Loads a stringID cache from a string_ids.dat file.
public StringIDCache ( Stream stream, StringIDResolverBase resolver ) : System
stream Stream The stream to read from.
resolver StringIDResolverBase The stringID resolver to use.
리턴 System