Initial commit

This commit is contained in:
2026-06-02 18:57:47 -04:00
commit 59d26a915d
268 changed files with 41240 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
using System;
using UnityEngine.TestTools;
namespace BracerLib.Utility
{
[ExcludeFromCoverage]
public static class EnumUtility
{
public static T GetValue<T>(int index) where T : IConvertible => (T)Enum.ToObject(typeof(T), index);
public static T GetValue<T>(string value) where T : IConvertible => (T)Enum.Parse(typeof(T), value, true);
public static T[] GetValues<T>() where T : IConvertible => (T[])Enum.GetValues(typeof(T));
}
}