diff options
author | Treeki <treeki@gmail.com> | 2011-02-13 16:22:11 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2011-02-13 16:22:11 +0100 |
commit | 7d7491feb41bc9724bf63bef545b996226406889 (patch) | |
tree | 21e4ca70d88a1fb8071d8882c3babc4f9fb6646f /NW4RTools/Util/OrderedDictionary.cs | |
parent | 426ad45876649595e2d4e9669ff1cf8c250fb163 (diff) | |
download | nw4rtools-7d7491feb41bc9724bf63bef545b996226406889.tar.gz nw4rtools-7d7491feb41bc9724bf63bef545b996226406889.zip |
really messy code for materials/textures which KINDA works
Diffstat (limited to '')
-rw-r--r-- | NW4RTools/Util/OrderedDictionary.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/NW4RTools/Util/OrderedDictionary.cs b/NW4RTools/Util/OrderedDictionary.cs index 3dd4fb4..98e523a 100644 --- a/NW4RTools/Util/OrderedDictionary.cs +++ b/NW4RTools/Util/OrderedDictionary.cs @@ -162,11 +162,15 @@ namespace NW4RTools.Util return List.GetEnumerator();
}
- IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey,TValue>>.GetEnumerator()
+ IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()
{
return List.GetEnumerator();
}
+ public TKey GetKeyForIndex(int index) {
+ return List[index].Key;
+ }
+
/// <summary>
/// Inserts a new entry into the <see cref="OrderedDictionary{TKey,TValue}">OrderedDictionary<TKey,TValue></see> collection with the specified key and value at the specified index.
/// </summary>
|