zxl
/
CTT
forked from Cal/CTT
1
0
Fork 0
CTT/Unity/Assets/Model/Core/MultiMapComponent.cs

38 lines
743 B
C#
Raw Normal View History

2021-04-08 20:09:59 +08:00
/**
* MultiMap
*/
namespace ET
{
public class MultiMapComponent<T, K>: Entity
{
public MultiMap<T, K> MultiMap = new MultiMap<T, K>();
public override void Dispose()
{
if (this.IsDisposed)
{
return;
}
base.Dispose();
this.MultiMap.Clear();
}
} public class UnOrderMultiMapComponent<T, K>: Entity
{
public UnOrderMultiMap<T, K> MultiMap = new UnOrderMultiMap<T, K>();
public override void Dispose()
{
if (this.IsDisposed)
{
return;
}
base.Dispose();
this.MultiMap.Clear();
}
}
}