add: Scene

This commit is contained in:
h z
2025-02-05 15:01:43 +00:00
parent 3b62b0a348
commit c47c2088cf
6 changed files with 66 additions and 0 deletions

18
src/Utils.cs Normal file
View File

@@ -0,0 +1,18 @@
using System.Reflection;
namespace Hangman.SDK;
public static class Utils
{
public static IEnumerable<Type> GetLoadableTypes(Assembly assembly)
{
try
{
return assembly.GetTypes();
}
catch (ReflectionTypeLoadException e)
{
return e.Types.Where(t => t != null);
}
}
}