Skip to content

Commit

Permalink
added missing parameterless IEnumerator action registration.
Browse files Browse the repository at this point in the history
  • Loading branch information
McJones committed Jan 24, 2025
1 parent 530fc09 commit fdeaf66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Yarn Projects now allow choosing more specific cultures (for example 'pt-BR' and 'en-AU' rather than simply 'pt' and 'en') as their base language.
- `DialogueRunner.dialogueCompleteTask` now uses a completion source, rather than polling.
- `YarnNode` dropdowns no longer show individual node group members in the list.
- `IActionRegistration` now correctly supports commands without parameters.

### Removed

Expand Down
2 changes: 2 additions & 0 deletions Runtime/IActionRegistration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ public static class ActionRegistrationExtension
public static void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(this IActionRegistration registration, string commandName, System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, YarnTask> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
// GYB11 END

/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
public static void AddCommandHandler(this IActionRegistration registration, string commandName, System.Func<IEnumerator> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
public static void AddCommandHandler<T1>(this IActionRegistration registration, string commandName, System.Func<T1, IEnumerator> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
Expand Down

0 comments on commit fdeaf66

Please sign in to comment.