Skip to content

Commit

Permalink
c# codegen: fix RemoteReducers ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
Centril committed Oct 23, 2024
1 parent 2287ae0 commit 33e815c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/cli/src/subcommands/generate/csharp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ pub fn autogen_csharp_globals(ctx: &GenCtx, items: &[GenItem], namespace: &str)
indented_block(&mut output, |output| {
writeln!(
output,
"internal RemoteReducers(DbConnection conn) : base(conn) {{ this.SetCallReducerFlags = SetReducerFlags; }}"
"internal RemoteReducers(DbConnection conn, SetReducerFlags SetReducerFlags) : base(conn) {{ this.SetCallReducerFlags = SetReducerFlags; }}"
);
writeln!(output, "internal readonly SetReducerFlags SetCallReducerFlags;");

Expand Down
2 changes: 1 addition & 1 deletion crates/cli/tests/snapshots/codegen__codegen_csharp.snap
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ namespace SpacetimeDB

public sealed class RemoteReducers : RemoteBase<DbConnection>
{
internal RemoteReducers(DbConnection conn) : base(conn) { this.SetCallReducerFlags = SetReducerFlags; }
internal RemoteReducers(DbConnection conn, SetReducerFlags SetReducerFlags) : base(conn) { this.SetCallReducerFlags = SetReducerFlags; }
internal readonly SetReducerFlags SetCallReducerFlags;
public delegate void AddPlayerHandler(EventContext ctx, string name);
public event AddPlayerHandler? OnAddPlayer;
Expand Down

0 comments on commit 33e815c

Please sign in to comment.