Demote Unity config MessagePack metadata

This commit is contained in:
Meta Vens 2026-06-13 11:14:38 +01:00
commit 64e596d92d
10 changed files with 84 additions and 106 deletions

View file

@ -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)];
}
}