@@ -688,7 +688,7 @@ impl Lang for UnrealCpp<'_> {
688688 }
689689
690690 // Collect includes for types used in delegates and contexts
691- // FSpacetimeDBIdentity is used in FOnConnectDelegate and context methods
691+ // FSpacetimeDBIdentity is used in F{module_prefix}OnConnectDelegate and context methods
692692 collect_includes_for_type (
693693 self . module_prefix ,
694694 module,
@@ -1097,13 +1097,13 @@ fn generate_delegates(output: &mut UnrealCppAutogen, module_prefix: &str) {
10971097 "// U{module_prefix}DbConnection without manual casting in user code."
10981098 ) ;
10991099 writeln ! ( output, "DECLARE_DYNAMIC_DELEGATE_ThreeParams(" ) ;
1100- writeln ! ( output, "\t FOnConnectDelegate ," ) ;
1100+ writeln ! ( output, "\t F{module_prefix}OnConnectDelegate ," ) ;
11011101 writeln ! ( output, "\t U{module_prefix}DbConnection*, Connection," ) ;
11021102 writeln ! ( output, "\t FSpacetimeDBIdentity, Identity," ) ;
11031103 writeln ! ( output, "\t const FString&, Token);" ) ;
11041104 writeln ! ( output) ;
11051105 writeln ! ( output, "DECLARE_DYNAMIC_DELEGATE_TwoParams(" ) ;
1106- writeln ! ( output, "\t FOnDisconnectDelegate ," ) ;
1106+ writeln ! ( output, "\t F{module_prefix}OnDisconnectDelegate ," ) ;
11071107 writeln ! ( output, "\t U{module_prefix}DbConnection*, Connection," ) ;
11081108 writeln ! ( output, "\t const FString&, Error);" ) ;
11091109 writeln ! ( output) ;
@@ -1943,11 +1943,11 @@ fn generate_context_structs(
19431943 writeln ! ( output, "}};" ) ;
19441944 writeln ! ( output) ;
19451945 writeln ! ( output, "DECLARE_DYNAMIC_DELEGATE_OneParam(" ) ;
1946- writeln ! ( output, "\t FOnSubscriptionApplied ," ) ;
1946+ writeln ! ( output, "\t F{module_prefix}OnSubscriptionApplied ," ) ;
19471947 writeln ! ( output, "\t F{module_prefix}SubscriptionEventContext, Context);" ) ;
19481948 writeln ! ( output) ;
19491949 writeln ! ( output, "DECLARE_DYNAMIC_DELEGATE_OneParam(" ) ;
1950- writeln ! ( output, "\t FOnSubscriptionError ," ) ;
1950+ writeln ! ( output, "\t F{module_prefix}OnSubscriptionError ," ) ;
19511951 writeln ! ( output, "\t F{module_prefix}ErrorContext, Context);" ) ;
19521952 writeln ! ( output) ;
19531953}
@@ -2199,13 +2199,13 @@ fn generate_subscription_builder_class(output: &mut UnrealCppAutogen, module_pre
21992199 writeln ! ( output, " UFUNCTION(BlueprintCallable, Category = \" SpacetimeDB\" )" ) ;
22002200 writeln ! (
22012201 output,
2202- " U{module_prefix}SubscriptionBuilder* OnApplied(FOnSubscriptionApplied Callback);"
2202+ " U{module_prefix}SubscriptionBuilder* OnApplied(F{module_prefix}OnSubscriptionApplied Callback);"
22032203 ) ;
22042204 writeln ! ( output) ;
22052205 writeln ! ( output, " UFUNCTION(BlueprintCallable, Category = \" SpacetimeDB\" )" ) ;
22062206 writeln ! (
22072207 output,
2208- " U{module_prefix}SubscriptionBuilder* OnError(FOnSubscriptionError Callback);"
2208+ " U{module_prefix}SubscriptionBuilder* OnError(F{module_prefix}OnSubscriptionError Callback);"
22092209 ) ;
22102210 writeln ! ( output) ;
22112211 writeln ! ( output, " UFUNCTION(BlueprintCallable, Category=\" SpacetimeDB\" )" ) ;
@@ -2236,8 +2236,8 @@ fn generate_subscription_builder_class(output: &mut UnrealCppAutogen, module_pre
22362236 output,
22372237 " // Delegates stored so Subscribe() can bind forwarding callbacks"
22382238 ) ;
2239- writeln ! ( output, " FOnSubscriptionApplied OnAppliedDelegateInternal;" ) ;
2240- writeln ! ( output, " FOnSubscriptionError OnErrorDelegateInternal;" ) ;
2239+ writeln ! ( output, " F{module_prefix}OnSubscriptionApplied OnAppliedDelegateInternal;" ) ;
2240+ writeln ! ( output, " F{module_prefix}OnSubscriptionError OnErrorDelegateInternal;" ) ;
22412241 writeln ! ( output, "}};" ) ;
22422242 writeln ! ( output) ;
22432243}
@@ -2271,8 +2271,8 @@ fn generate_subscription_handle_class(output: &mut UnrealCppAutogen, module_pref
22712271 output,
22722272 " // Delegates that expose subscription events with connection aware contexts"
22732273 ) ;
2274- writeln ! ( output, " FOnSubscriptionApplied OnAppliedDelegate;" ) ;
2275- writeln ! ( output, " FOnSubscriptionError OnErrorDelegate;" ) ;
2274+ writeln ! ( output, " F{module_prefix}OnSubscriptionApplied OnAppliedDelegate;" ) ;
2275+ writeln ! ( output, " F{module_prefix}OnSubscriptionError OnErrorDelegate;" ) ;
22762276 writeln ! ( output) ;
22772277 writeln ! ( output, " UFUNCTION()" ) ;
22782278 writeln ! (
@@ -2322,7 +2322,7 @@ fn generate_db_connection_builder_class(output: &mut UnrealCppAutogen, module_pr
23222322 writeln ! ( output, " UFUNCTION(BlueprintCallable, Category = \" SpacetimeDB\" )" ) ;
23232323 writeln ! (
23242324 output,
2325- " U{module_prefix}DbConnectionBuilder* OnConnect(FOnConnectDelegate Callback);"
2325+ " U{module_prefix}DbConnectionBuilder* OnConnect(F{module_prefix}OnConnectDelegate Callback);"
23262326 ) ;
23272327 writeln ! ( output, " UFUNCTION(BlueprintCallable, Category = \" SpacetimeDB\" )" ) ;
23282328 writeln ! (
@@ -2332,7 +2332,7 @@ fn generate_db_connection_builder_class(output: &mut UnrealCppAutogen, module_pr
23322332 writeln ! ( output, " UFUNCTION(BlueprintCallable, Category = \" SpacetimeDB\" )" ) ;
23332333 writeln ! (
23342334 output,
2335- " U{module_prefix}DbConnectionBuilder* OnDisconnect(FOnDisconnectDelegate Callback);"
2335+ " U{module_prefix}DbConnectionBuilder* OnDisconnect(F{module_prefix}OnDisconnectDelegate Callback);"
23362336 ) ;
23372337 writeln ! ( output, " UFUNCTION(BlueprintCallable, Category = \" SpacetimeDB\" )" ) ;
23382338 writeln ! ( output, " U{module_prefix}DbConnection* Build();" ) ;
@@ -2343,8 +2343,8 @@ fn generate_db_connection_builder_class(output: &mut UnrealCppAutogen, module_pr
23432343 output,
23442344 " // Stored delegates which will be forwarded when the connection events occur."
23452345 ) ;
2346- writeln ! ( output, " FOnConnectDelegate OnConnectDelegateInternal;" ) ;
2347- writeln ! ( output, " FOnDisconnectDelegate OnDisconnectDelegateInternal;" ) ;
2346+ writeln ! ( output, " F{module_prefix}OnConnectDelegate OnConnectDelegateInternal;" ) ;
2347+ writeln ! ( output, " F{module_prefix}OnDisconnectDelegate OnDisconnectDelegateInternal;" ) ;
23482348 writeln ! ( output, "}};" ) ;
23492349 writeln ! ( output) ;
23502350}
@@ -2385,8 +2385,8 @@ fn generate_db_connection_class(
23852385 output,
23862386 " // Delegates that allow users to bind with the concrete connection type."
23872387 ) ;
2388- writeln ! ( output, " FOnConnectDelegate OnConnectDelegate;" ) ;
2389- writeln ! ( output, " FOnDisconnectDelegate OnDisconnectDelegate;" ) ;
2388+ writeln ! ( output, " F{module_prefix}OnConnectDelegate OnConnectDelegate;" ) ;
2389+ writeln ! ( output, " F{module_prefix}OnDisconnectDelegate OnDisconnectDelegate;" ) ;
23902390 writeln ! ( output) ;
23912391 writeln ! ( output, " UFUNCTION(BlueprintCallable, Category=\" SpacetimeDB\" )" ) ;
23922392 writeln ! (
@@ -2902,15 +2902,15 @@ fn generate_client_implementation(
29022902 writeln ! ( output, "}}" ) ;
29032903 writeln ! (
29042904 output,
2905- "U{module_prefix}SubscriptionBuilder* U{module_prefix}SubscriptionBuilder::OnApplied(FOnSubscriptionApplied Callback)"
2905+ "U{module_prefix}SubscriptionBuilder* U{module_prefix}SubscriptionBuilder::OnApplied(F{module_prefix}OnSubscriptionApplied Callback)"
29062906 ) ;
29072907 writeln ! ( output, "{{" ) ;
29082908 writeln ! ( output, "\t OnAppliedDelegateInternal = Callback;" ) ;
29092909 writeln ! ( output, "\t return this;" ) ;
29102910 writeln ! ( output, "}}" ) ;
29112911 writeln ! (
29122912 output,
2913- "U{module_prefix}SubscriptionBuilder* U{module_prefix}SubscriptionBuilder::OnError(FOnSubscriptionError Callback)"
2913+ "U{module_prefix}SubscriptionBuilder* U{module_prefix}SubscriptionBuilder::OnError(F{module_prefix}OnSubscriptionError Callback)"
29142914 ) ;
29152915 writeln ! ( output, "{{" ) ;
29162916 writeln ! ( output, "\t OnErrorDelegateInternal = Callback;" ) ;
@@ -3034,7 +3034,7 @@ fn generate_client_implementation(
30343034 writeln ! ( output, "}}" ) ;
30353035 writeln ! (
30363036 output,
3037- "U{module_prefix}DbConnectionBuilder* U{module_prefix}DbConnectionBuilder::OnConnect(FOnConnectDelegate Callback)"
3037+ "U{module_prefix}DbConnectionBuilder* U{module_prefix}DbConnectionBuilder::OnConnect(F{module_prefix}OnConnectDelegate Callback)"
30383038 ) ;
30393039 writeln ! ( output, "{{" ) ;
30403040 writeln ! ( output, "\t OnConnectDelegateInternal = Callback;" ) ;
@@ -3052,7 +3052,7 @@ fn generate_client_implementation(
30523052 writeln ! ( output, "}}" ) ;
30533053 writeln ! (
30543054 output,
3055- "U{module_prefix}DbConnectionBuilder* U{module_prefix}DbConnectionBuilder::OnDisconnect(FOnDisconnectDelegate Callback)"
3055+ "U{module_prefix}DbConnectionBuilder* U{module_prefix}DbConnectionBuilder::OnDisconnect(F{module_prefix}OnDisconnectDelegate Callback)"
30563056 ) ;
30573057 writeln ! ( output, "{{" ) ;
30583058 writeln ! ( output, "\t OnDisconnectDelegateInternal = Callback;" ) ;
0 commit comments