From e9d6b30e882ac41128883eee783c578fe2f2ee7b Mon Sep 17 00:00:00 2001 From: Cj <161484149+CJ-SPT@users.noreply.github.com> Date: Tue, 5 Nov 2024 14:22:28 -0500 Subject: [PATCH] Add ENomatchReason for events, and properly handle them. --- RecodeItLib/Enums/ENoMatchReason.cs | 2 ++ RecodeItLib/Remapper/ReCodeItRemapper.cs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/RecodeItLib/Enums/ENoMatchReason.cs b/RecodeItLib/Enums/ENoMatchReason.cs index 35df421..088b43e 100644 --- a/RecodeItLib/Enums/ENoMatchReason.cs +++ b/RecodeItLib/Enums/ENoMatchReason.cs @@ -26,4 +26,6 @@ public enum ENoMatchReason NestedTypeInclude, NestedTypeExclude, NestedTypeCount, + EventsInclude, + EventExclude } \ No newline at end of file diff --git a/RecodeItLib/Remapper/ReCodeItRemapper.cs b/RecodeItLib/Remapper/ReCodeItRemapper.cs index 32dab83..24b42f5 100644 --- a/RecodeItLib/Remapper/ReCodeItRemapper.cs +++ b/RecodeItLib/Remapper/ReCodeItRemapper.cs @@ -393,7 +393,7 @@ public class ReCodeItRemapper if (!types.Any()) { - AllTypesFilteredOutFor(mapping, ENoMatchReason.PropertiesInclude); + AllTypesFilteredOutFor(mapping, ENoMatchReason.EventsInclude); mapping.TypeCandidates.UnionWith(types); return false; } @@ -402,7 +402,7 @@ public class ReCodeItRemapper if (!types.Any()) { - AllTypesFilteredOutFor(mapping, ENoMatchReason.PropertiesExclude); + AllTypesFilteredOutFor(mapping, ENoMatchReason.EventExclude); mapping.TypeCandidates.UnionWith(types); return false; }