Demote Unity config MessagePack metadata
This commit is contained in:
parent
a9f10f5646
commit
64e596d92d
10 changed files with 84 additions and 106 deletions
|
|
@ -1,9 +1,7 @@
|
|||
using System;
|
||||
using MessagePack;
|
||||
[MessagePackObject]
|
||||
public class EnumDictionary<E, T> where E : Enum
|
||||
{
|
||||
[Key(0)] public T[] Values;
|
||||
public T[] Values;
|
||||
|
||||
public EnumDictionary()
|
||||
{
|
||||
|
|
@ -11,4 +9,4 @@ public class EnumDictionary<E, T> where E : Enum
|
|||
}
|
||||
|
||||
public T this[E key] => Values[Convert.ToInt32(key)];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue