Restore the stable legacy Unity project
This commit is contained in:
parent
56a156ee87
commit
7006a6b0dd
2070 changed files with 180490 additions and 169303 deletions
|
|
@ -1,7 +1,11 @@
|
|||
using System;
|
||||
using MessagePack;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
[MessagePackObject, JsonObject(MemberSerialization.OptIn)]
|
||||
public class EnumDictionary<E, T> where E : Enum
|
||||
{
|
||||
public T[] Values;
|
||||
[JsonProperty("values"), Key(0)] public T[] Values;
|
||||
|
||||
public EnumDictionary()
|
||||
{
|
||||
|
|
@ -9,4 +13,4 @@ public class EnumDictionary<E, T> where E : Enum
|
|||
}
|
||||
|
||||
public T this[E key] => Values[Convert.ToInt32(key)];
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue