@@ -855,7 +855,7 @@ impl Lang for UnrealCpp<'_> {
855855 includes. insert ( format ! ( "ModuleBindings/Procedures/{procedure_pascal}.g.h" ) ) ;
856856 }
857857 // Collect includes for types used in delegates and contexts
858- // FSpacetimeDBIdentity is used in FOnConnectDelegate and context methods
858+ // FSpacetimeDBIdentity is used in F{module_prefix}OnConnectDelegate and context methods
859859 collect_includes_for_type (
860860 self . module_prefix ,
861861 module,
@@ -1296,13 +1296,13 @@ fn generate_delegates(output: &mut UnrealCppAutogen, module_prefix: &str) {
12961296 "// U{module_prefix}DbConnection without manual casting in user code."
12971297 ) ;
12981298 writeln ! ( output, "DECLARE_DYNAMIC_DELEGATE_ThreeParams(" ) ;
1299- writeln ! ( output, "\t FOnConnectDelegate ," ) ;
1299+ writeln ! ( output, "\t F{module_prefix}OnConnectDelegate ," ) ;
13001300 writeln ! ( output, "\t U{module_prefix}DbConnection*, Connection," ) ;
13011301 writeln ! ( output, "\t FSpacetimeDBIdentity, Identity," ) ;
13021302 writeln ! ( output, "\t const FString&, Token);" ) ;
13031303 writeln ! ( output) ;
13041304 writeln ! ( output, "DECLARE_DYNAMIC_DELEGATE_TwoParams(" ) ;
1305- writeln ! ( output, "\t FOnDisconnectDelegate ," ) ;
1305+ writeln ! ( output, "\t F{module_prefix}OnDisconnectDelegate ," ) ;
13061306 writeln ! ( output, "\t U{module_prefix}DbConnection*, Connection," ) ;
13071307 writeln ! ( output, "\t const FString&, Error);" ) ;
13081308 writeln ! ( output) ;
@@ -1924,11 +1924,11 @@ fn generate_context_structs(
19241924 writeln ! ( output, "}};" ) ;
19251925 writeln ! ( output) ;
19261926 writeln ! ( output, "DECLARE_DYNAMIC_DELEGATE_OneParam(" ) ;
1927- writeln ! ( output, "\t FOnSubscriptionApplied ," ) ;
1927+ writeln ! ( output, "\t F{module_prefix}OnSubscriptionApplied ," ) ;
19281928 writeln ! ( output, "\t F{module_prefix}SubscriptionEventContext, Context);" ) ;
19291929 writeln ! ( output) ;
19301930 writeln ! ( output, "DECLARE_DYNAMIC_DELEGATE_OneParam(" ) ;
1931- writeln ! ( output, "\t FOnSubscriptionError ," ) ;
1931+ writeln ! ( output, "\t F{module_prefix}OnSubscriptionError ," ) ;
19321932 writeln ! ( output, "\t F{module_prefix}ErrorContext, Context);" ) ;
19331933 writeln ! ( output) ;
19341934}
@@ -2823,13 +2823,13 @@ fn generate_subscription_builder_class(output: &mut UnrealCppAutogen, module_pre
28232823 writeln ! ( output, " UFUNCTION(BlueprintCallable, Category = \" SpacetimeDB\" )" ) ;
28242824 writeln ! (
28252825 output,
2826- " U{module_prefix}SubscriptionBuilder* OnApplied(FOnSubscriptionApplied Callback);"
2826+ " U{module_prefix}SubscriptionBuilder* OnApplied(F{module_prefix}OnSubscriptionApplied Callback);"
28272827 ) ;
28282828 writeln ! ( output) ;
28292829 writeln ! ( output, " UFUNCTION(BlueprintCallable, Category = \" SpacetimeDB\" )" ) ;
28302830 writeln ! (
28312831 output,
2832- " U{module_prefix}SubscriptionBuilder* OnError(FOnSubscriptionError Callback);"
2832+ " U{module_prefix}SubscriptionBuilder* OnError(F{module_prefix}OnSubscriptionError Callback);"
28332833 ) ;
28342834 writeln ! ( output) ;
28352835 writeln ! ( output, " UFUNCTION(BlueprintCallable, Category=\" SpacetimeDB\" )" ) ;
@@ -2860,8 +2860,8 @@ fn generate_subscription_builder_class(output: &mut UnrealCppAutogen, module_pre
28602860 output,
28612861 " // Delegates stored so Subscribe() can bind forwarding callbacks"
28622862 ) ;
2863- writeln ! ( output, " FOnSubscriptionApplied OnAppliedDelegateInternal;" ) ;
2864- writeln ! ( output, " FOnSubscriptionError OnErrorDelegateInternal;" ) ;
2863+ writeln ! ( output, " F{module_prefix}OnSubscriptionApplied OnAppliedDelegateInternal;" ) ;
2864+ writeln ! ( output, " F{module_prefix}OnSubscriptionError OnErrorDelegateInternal;" ) ;
28652865 writeln ! ( output, "}};" ) ;
28662866 writeln ! ( output) ;
28672867}
@@ -2895,8 +2895,8 @@ fn generate_subscription_handle_class(output: &mut UnrealCppAutogen, module_pref
28952895 output,
28962896 " // Delegates that expose subscription events with connection aware contexts"
28972897 ) ;
2898- writeln ! ( output, " FOnSubscriptionApplied OnAppliedDelegate;" ) ;
2899- writeln ! ( output, " FOnSubscriptionError OnErrorDelegate;" ) ;
2898+ writeln ! ( output, " F{module_prefix}OnSubscriptionApplied OnAppliedDelegate;" ) ;
2899+ writeln ! ( output, " F{module_prefix}OnSubscriptionError OnErrorDelegate;" ) ;
29002900 writeln ! ( output) ;
29012901 writeln ! ( output, " UFUNCTION()" ) ;
29022902 writeln ! (
@@ -2946,7 +2946,7 @@ fn generate_db_connection_builder_class(output: &mut UnrealCppAutogen, module_pr
29462946 writeln ! ( output, " UFUNCTION(BlueprintCallable, Category = \" SpacetimeDB\" )" ) ;
29472947 writeln ! (
29482948 output,
2949- " U{module_prefix}DbConnectionBuilder* OnConnect(FOnConnectDelegate Callback);"
2949+ " U{module_prefix}DbConnectionBuilder* OnConnect(F{module_prefix}OnConnectDelegate Callback);"
29502950 ) ;
29512951 writeln ! ( output, " UFUNCTION(BlueprintCallable, Category = \" SpacetimeDB\" )" ) ;
29522952 writeln ! (
@@ -2956,7 +2956,7 @@ fn generate_db_connection_builder_class(output: &mut UnrealCppAutogen, module_pr
29562956 writeln ! ( output, " UFUNCTION(BlueprintCallable, Category = \" SpacetimeDB\" )" ) ;
29572957 writeln ! (
29582958 output,
2959- " U{module_prefix}DbConnectionBuilder* OnDisconnect(FOnDisconnectDelegate Callback);"
2959+ " U{module_prefix}DbConnectionBuilder* OnDisconnect(F{module_prefix}OnDisconnectDelegate Callback);"
29602960 ) ;
29612961 writeln ! ( output, " UFUNCTION(BlueprintCallable, Category = \" SpacetimeDB\" )" ) ;
29622962 writeln ! ( output, " U{module_prefix}DbConnection* Build();" ) ;
@@ -2967,8 +2967,8 @@ fn generate_db_connection_builder_class(output: &mut UnrealCppAutogen, module_pr
29672967 output,
29682968 " // Stored delegates which will be forwarded when the connection events occur."
29692969 ) ;
2970- writeln ! ( output, " FOnConnectDelegate OnConnectDelegateInternal;" ) ;
2971- writeln ! ( output, " FOnDisconnectDelegate OnDisconnectDelegateInternal;" ) ;
2970+ writeln ! ( output, " F{module_prefix}OnConnectDelegate OnConnectDelegateInternal;" ) ;
2971+ writeln ! ( output, " F{module_prefix}OnDisconnectDelegate OnDisconnectDelegateInternal;" ) ;
29722972 writeln ! ( output, "}};" ) ;
29732973 writeln ! ( output) ;
29742974}
@@ -3012,8 +3012,8 @@ fn generate_db_connection_class(
30123012 output,
30133013 " // Delegates that allow users to bind with the concrete connection type."
30143014 ) ;
3015- writeln ! ( output, " FOnConnectDelegate OnConnectDelegate;" ) ;
3016- writeln ! ( output, " FOnDisconnectDelegate OnDisconnectDelegate;" ) ;
3015+ writeln ! ( output, " F{module_prefix}OnConnectDelegate OnConnectDelegate;" ) ;
3016+ writeln ! ( output, " F{module_prefix}OnDisconnectDelegate OnDisconnectDelegate;" ) ;
30173017 writeln ! ( output) ;
30183018 writeln ! ( output, " UFUNCTION(BlueprintCallable, Category=\" SpacetimeDB\" )" ) ;
30193019 writeln ! (
@@ -3488,15 +3488,15 @@ fn generate_client_implementation(
34883488 writeln ! ( output, "}}" ) ;
34893489 writeln ! (
34903490 output,
3491- "U{module_prefix}SubscriptionBuilder* U{module_prefix}SubscriptionBuilder::OnApplied(FOnSubscriptionApplied Callback)"
3491+ "U{module_prefix}SubscriptionBuilder* U{module_prefix}SubscriptionBuilder::OnApplied(F{module_prefix}OnSubscriptionApplied Callback)"
34923492 ) ;
34933493 writeln ! ( output, "{{" ) ;
34943494 writeln ! ( output, "\t OnAppliedDelegateInternal = Callback;" ) ;
34953495 writeln ! ( output, "\t return this;" ) ;
34963496 writeln ! ( output, "}}" ) ;
34973497 writeln ! (
34983498 output,
3499- "U{module_prefix}SubscriptionBuilder* U{module_prefix}SubscriptionBuilder::OnError(FOnSubscriptionError Callback)"
3499+ "U{module_prefix}SubscriptionBuilder* U{module_prefix}SubscriptionBuilder::OnError(F{module_prefix}OnSubscriptionError Callback)"
35003500 ) ;
35013501 writeln ! ( output, "{{" ) ;
35023502 writeln ! ( output, "\t OnErrorDelegateInternal = Callback;" ) ;
@@ -3620,7 +3620,7 @@ fn generate_client_implementation(
36203620 writeln ! ( output, "}}" ) ;
36213621 writeln ! (
36223622 output,
3623- "U{module_prefix}DbConnectionBuilder* U{module_prefix}DbConnectionBuilder::OnConnect(FOnConnectDelegate Callback)"
3623+ "U{module_prefix}DbConnectionBuilder* U{module_prefix}DbConnectionBuilder::OnConnect(F{module_prefix}OnConnectDelegate Callback)"
36243624 ) ;
36253625 writeln ! ( output, "{{" ) ;
36263626 writeln ! ( output, "\t OnConnectDelegateInternal = Callback;" ) ;
@@ -3638,7 +3638,7 @@ fn generate_client_implementation(
36383638 writeln ! ( output, "}}" ) ;
36393639 writeln ! (
36403640 output,
3641- "U{module_prefix}DbConnectionBuilder* U{module_prefix}DbConnectionBuilder::OnDisconnect(FOnDisconnectDelegate Callback)"
3641+ "U{module_prefix}DbConnectionBuilder* U{module_prefix}DbConnectionBuilder::OnDisconnect(F{module_prefix}OnDisconnectDelegate Callback)"
36423642 ) ;
36433643 writeln ! ( output, "{{" ) ;
36443644 writeln ! ( output, "\t OnDisconnectDelegateInternal = Callback;" ) ;
0 commit comments