Skip to content

Commit a5d92b8

Browse files
committed
Add SetUpdateField
1 parent dae355b commit a5d92b8

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

WowPacketParser/Misc/MapUpdateField.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,7 @@
22

33
namespace WowPacketParser.Misc
44
{
5-
public class MapUpdateField<TKey, TValue> where TKey : notnull
5+
public class MapUpdateField<TKey, TValue> : Dictionary<TKey, TValue> where TKey : notnull
66
{
7-
private readonly Dictionary<TKey, TValue> _values = new();
8-
9-
public TValue this[TKey index]
10-
{
11-
get => _values[index];
12-
set => _values[index] = value;
13-
}
147
}
158
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
using System.Collections.Generic;
2+
3+
namespace WowPacketParser.Misc
4+
{
5+
public class SetUpdateField<TValue> : HashSet<TValue>
6+
{
7+
}
8+
}

0 commit comments

Comments
 (0)