Skip to content

Commit

Permalink
tweak: Collect methods from other mods as well
Browse files Browse the repository at this point in the history
  • Loading branch information
psyGamer committed Dec 16, 2024
1 parent 7c3bcc7 commit ef435fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CelesteTAS-EverestInterop/Source/Utils/AttributeUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.Linq;
using System.Reflection;
using Celeste.Mod;
using Celeste.Mod.Helpers;
using TAS.Module;

namespace TAS.Utils;
Expand All @@ -12,7 +13,7 @@ public static class AttributeUtils {

/// Gathers all static, parameterless methods with attribute T
public static void CollectMethods<T>() where T : Attribute {
attributeMethods[typeof(T)] = typeof(CelesteTasModule).Assembly
attributeMethods[typeof(T)] = FakeAssembly.GetFakeEntryAssembly()
.GetTypesSafe()
.SelectMany(type => type
.GetMethods(BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic)
Expand Down

0 comments on commit ef435fc

Please sign in to comment.