summaryrefslogtreecommitdiff
path: root/NW4RTools/Util/OrderedDictionary.cs
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2011-02-13 16:22:11 +0100
committerTreeki <treeki@gmail.com>2011-02-13 16:22:11 +0100
commit7d7491feb41bc9724bf63bef545b996226406889 (patch)
tree21e4ca70d88a1fb8071d8882c3babc4f9fb6646f /NW4RTools/Util/OrderedDictionary.cs
parent426ad45876649595e2d4e9669ff1cf8c250fb163 (diff)
downloadnw4rtools-7d7491feb41bc9724bf63bef545b996226406889.tar.gz
nw4rtools-7d7491feb41bc9724bf63bef545b996226406889.zip
really messy code for materials/textures which KINDA works
Diffstat (limited to 'NW4RTools/Util/OrderedDictionary.cs')
-rw-r--r--NW4RTools/Util/OrderedDictionary.cs6
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&lt;TKey,TValue&gt;</see> collection with the specified key and value at the specified index.
/// </summary>