From 82962761d7db9872ff90e8ec3bbab36dfd62b830 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikael=20D=C3=BAi=20Bolinder?= Date: Sun, 20 Feb 2022 18:24:23 +0100 Subject: [PATCH] Typo correction --- .../LeagueClient/LeagueClientEvent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RiotGames.Client.CodeGeneration/LeagueClient/LeagueClientEvent.cs b/RiotGames.Client.CodeGeneration/LeagueClient/LeagueClientEvent.cs index fa1a71e..2931871 100644 --- a/RiotGames.Client.CodeGeneration/LeagueClient/LeagueClientEvent.cs +++ b/RiotGames.Client.CodeGeneration/LeagueClient/LeagueClientEvent.cs @@ -31,7 +31,7 @@ public static MemberDeclarationSyntax[] RmsEvent(string topic, string identifier .WithAccessorList(AccessorList(new SyntaxList(new[] { AccessorDeclaration(SyntaxKind.AddAccessorDeclaration, ParseStatement( - $"if ({privateEventIdentifier} == null) EventRouter.Subscribe(\"{topic}\", (RmsChangeType changeType, {typeName} args) => {privateEventIdentifier}?.Invoke(this, changeType, args)); {privateEventIdentifier} += value;") + $"if ({privateEventIdentifier} == null) EventRouter.Subscribe(\"{topic}\", (RmsEventType eventType, {typeName} args) => {privateEventIdentifier}?.Invoke(this, eventType, args)); {privateEventIdentifier} += value;") .ToBlock()), AccessorDeclaration(SyntaxKind.RemoveAccessorDeclaration, ParseStatement( $"{privateEventIdentifier} -= value; if ({privateEventIdentifier} == null) EventRouter.Unsubscribe(\"{topic}\"); ")