Skip to content

Commit 4f37c74

Browse files
committed
Added missing command parameter registrations.
Also bumped them up to 16 parameters because why not. Fixes YarnSpinnerTool/IssuesDiscussion#106
1 parent 96611a7 commit 4f37c74

File tree

4 files changed

+151
-98
lines changed

4 files changed

+151
-98
lines changed

Runtime/Commands/IActionRegistration.cs

Lines changed: 67 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,9 @@ public interface IActionRegistration
108108
/// </summary>
109109
public static class ActionRegistrationExtension
110110
{
111-
112-
111+
// These registrations for System.Action were generated by action-gyb.py
113112
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
114113
public static void AddCommandHandler(this IActionRegistration registration, string commandName, System.Action handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
115-
116-
// GYB11 START
117114
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
118115
public static void AddCommandHandler<T1>(this IActionRegistration registration, string commandName, System.Action<T1> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
119116
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
@@ -134,8 +131,22 @@ public static class ActionRegistrationExtension
134131
public static void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9>(this IActionRegistration registration, string commandName, System.Action<T1, T2, T3, T4, T5, T6, T7, T8, T9> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
135132
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
136133
public static void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(this IActionRegistration registration, string commandName, System.Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
137-
// GYB11 END
134+
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
135+
public static void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(this IActionRegistration registration, string commandName, System.Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
136+
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
137+
public static void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(this IActionRegistration registration, string commandName, System.Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
138+
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
139+
public static void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(this IActionRegistration registration, string commandName, System.Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
140+
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
141+
public static void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(this IActionRegistration registration, string commandName, System.Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
142+
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
143+
public static void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(this IActionRegistration registration, string commandName, System.Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
144+
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
145+
public static void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>(this IActionRegistration registration, string commandName, System.Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
138146

147+
// These registrations for System.Threading.Tasks.Task were generated by action-gyb.py
148+
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
149+
public static void AddCommandHandler(this IActionRegistration registration, string commandName, System.Func<System.Threading.Tasks.Task> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
139150
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
140151
public static void AddCommandHandler<T1>(this IActionRegistration registration, string commandName, System.Func<T1, System.Threading.Tasks.Task> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
141152
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
@@ -156,7 +167,20 @@ public static class ActionRegistrationExtension
156167
public static void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9>(this IActionRegistration registration, string commandName, System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, System.Threading.Tasks.Task> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
157168
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
158169
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, System.Threading.Tasks.Task> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
170+
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
171+
public static void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(this IActionRegistration registration, string commandName, System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, System.Threading.Tasks.Task> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
172+
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
173+
public static void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(this IActionRegistration registration, string commandName, System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, System.Threading.Tasks.Task> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
174+
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
175+
public static void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(this IActionRegistration registration, string commandName, System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, System.Threading.Tasks.Task> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
176+
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
177+
public static void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(this IActionRegistration registration, string commandName, System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, System.Threading.Tasks.Task> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
178+
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
179+
public static void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(this IActionRegistration registration, string commandName, System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, System.Threading.Tasks.Task> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
180+
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
181+
public static void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>(this IActionRegistration registration, string commandName, System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, System.Threading.Tasks.Task> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
159182

183+
// These registrations for YarnTask were generated by action-gyb.py
160184
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
161185
public static void AddCommandHandler(this IActionRegistration registration, string commandName, System.Func<YarnTask> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
162186
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
@@ -179,8 +203,20 @@ public static class ActionRegistrationExtension
179203
public static void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9>(this IActionRegistration registration, string commandName, System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, YarnTask> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
180204
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
181205
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);
182-
// GYB11 END
206+
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
207+
public static void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(this IActionRegistration registration, string commandName, System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, YarnTask> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
208+
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
209+
public static void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(this IActionRegistration registration, string commandName, System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, YarnTask> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
210+
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
211+
public static void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(this IActionRegistration registration, string commandName, System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, YarnTask> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
212+
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
213+
public static void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(this IActionRegistration registration, string commandName, System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, YarnTask> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
214+
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
215+
public static void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(this IActionRegistration registration, string commandName, System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, YarnTask> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
216+
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
217+
public static void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>(this IActionRegistration registration, string commandName, System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, YarnTask> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
183218

219+
// These registrations for IEnumerator were generated by action-gyb.py
184220
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
185221
public static void AddCommandHandler(this IActionRegistration registration, string commandName, System.Func<IEnumerator> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
186222
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
@@ -203,9 +239,20 @@ public static class ActionRegistrationExtension
203239
public static void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9>(this IActionRegistration registration, string commandName, System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, IEnumerator> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
204240
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
205241
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, IEnumerator> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
206-
// GYB11 END
207-
242+
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
243+
public static void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(this IActionRegistration registration, string commandName, System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, IEnumerator> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
244+
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
245+
public static void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(this IActionRegistration registration, string commandName, System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, IEnumerator> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
246+
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
247+
public static void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(this IActionRegistration registration, string commandName, System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, IEnumerator> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
248+
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
249+
public static void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(this IActionRegistration registration, string commandName, System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, IEnumerator> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
250+
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
251+
public static void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(this IActionRegistration registration, string commandName, System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, IEnumerator> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
252+
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
253+
public static void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>(this IActionRegistration registration, string commandName, System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, IEnumerator> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
208254

255+
// These registrations for Coroutine were generated by action-gyb.py
209256
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
210257
public static void AddCommandHandler(this IActionRegistration registration, string commandName, System.Func<Coroutine> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
211258
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
@@ -228,7 +275,18 @@ public static class ActionRegistrationExtension
228275
public static void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9>(this IActionRegistration registration, string commandName, System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, Coroutine> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
229276
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
230277
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, Coroutine> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
231-
// GYB11 END
278+
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
279+
public static void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(this IActionRegistration registration, string commandName, System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, Coroutine> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
280+
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
281+
public static void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(this IActionRegistration registration, string commandName, System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, Coroutine> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
282+
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
283+
public static void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(this IActionRegistration registration, string commandName, System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, Coroutine> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
284+
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
285+
public static void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(this IActionRegistration registration, string commandName, System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, Coroutine> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
286+
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
287+
public static void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(this IActionRegistration registration, string commandName, System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, Coroutine> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
288+
/// <inheritdoc cref="IActionRegistration.AddCommandHandler(string, Delegate)"/>
289+
public static void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>(this IActionRegistration registration, string commandName, System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, Coroutine> handler) => registration.AddCommandHandler(commandName, (Delegate)handler);
232290

233291

234292
/// <inheritdoc cref="IActionRegistration.AddFunction(string, Delegate)"/>

0 commit comments

Comments
 (0)