Method | Description | |
---|---|---|
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, |
Loads a stringID cache from a string_ids.dat file.
|
Method | Description | |
---|---|---|
Load ( Stream stream ) : void |
Loads the cache from a stream.
|
public Add ( string str ) : StringID | ||
str | string | The string to add. |
return | StringID |
public GetString ( StringID stringId ) : string | ||
stringId | StringID | The stringID. |
return | string |
public GetStringID ( int strIndex ) : StringID | ||
strIndex | int | The string list index to convert. |
return | StringID |
public GetStringID ( string str ) : StringID | ||
str | string | The string to search for. |
return | StringID |
public Save ( Stream stream ) : void | ||
stream | Stream | The stream to write to. |
return | void |
public StringIDCache ( Stream stream, |
||
stream | Stream | The stream to read from. |
resolver | The stringID resolver to use. | |
return | System |