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}\"); ")