Terraria v1.4.4.9
Terraria source code documentation
|
Public Member Functions | |
bool | TryGetName (int id, out string name) |
bool | TryGetId (string name, out int id) |
bool | ContainsName (string name) |
bool | ContainsId (int id) |
string | GetName (int id) |
int | GetId (string name) |
void | Add (string name, int id) |
void | Remove (string name) |
void | Remove (int id) |
Static Public Member Functions | |
static IdDictionary | Create (Type idClass, Type idType) |
static IdDictionary | Create< IdClass, IdType > () |
Public Attributes | |
readonly int | Count |
Properties | |
IEnumerable< string > | Names [get] |
Private Member Functions | |
IdDictionary (int count) | |
Private Attributes | |
readonly Dictionary< string, int > | _nameToId = new Dictionary<string, int>() |
Dictionary< int, string > | _idToName |
Definition at line 8 of file IdDictionary.cs.