-
How do you iterate over all FormKeys (FormIDs) within a mod or other object? |
Beta Was this translation helpful? Give feedback.
Answered by
Noggog
Jan 21, 2021
Replies: 1 comment
-
Mod objects or Major Records contain a foreach (var formLink in state.PatchMod.ContainedFormLinks)
{
// Print entries like
// 0123456:Skyrim.esm -> IArmorGetter
System.Console.WriteLine($"{formLink.FormKey} -> ({formLink.Type})");
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Noggog
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Mod objects or Major Records contain a
ContainedFormLinks
property, which returns an enumerable of all the FormKeys they contain.