File tree 2 files changed +10
-4
lines changed
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -72,12 +72,17 @@ void UImmutableSubsystem::ManageBridgeDelegateQueue()
72
72
#if USING_BLUI_CEF
73
73
OnReady.Broadcast (ImtblBlui->GetJSConnector ());
74
74
#else
75
- OnReady .Broadcast (BrowserWidget->GetJSConnector ());
75
+ MulticastDelegate_OnReady .Broadcast (BrowserWidget->GetJSConnector ());
76
76
#endif
77
- OnReady .Clear ();
77
+ MulticastDelegate_OnReady .Clear ();
78
78
}
79
79
}
80
80
81
+ FImmutableSubsystemReadyDelegate* UImmutableSubsystem::OnReady ()
82
+ {
83
+ return &MulticastDelegate_OnReady;
84
+ }
85
+
81
86
void UImmutableSubsystem::SetupGameBridge ()
82
87
{
83
88
if (bHasSetupGameBridge)
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ class IMMUTABLE_API UImmutableSubsystem : public UGameInstanceSubsystem
31
31
}
32
32
33
33
bool IsReady () const { return bIsReady; }
34
+ FImmutableSubsystemReadyDelegate* OnReady ();
34
35
35
36
// Execute a delegate when the subsystem is ready (i.e.: when the browser is
36
37
// running and the Immutable SDK game bridge has loaded).
@@ -41,7 +42,7 @@ class IMMUTABLE_API UImmutableSubsystem : public UGameInstanceSubsystem
41
42
void WhenReady (UserClass* Object, typename FImmutableSubsystemReadyDelegate::FDelegate::TUObjectMethodDelegate<UserClass>::FMethodPtr Func)
42
43
#endif
43
44
{
44
- OnReady .AddUObject (Object, Func);
45
+ MulticastDelegate_OnReady .AddUObject (Object, Func);
45
46
}
46
47
47
48
private:
@@ -63,7 +64,7 @@ class IMMUTABLE_API UImmutableSubsystem : public UGameInstanceSubsystem
63
64
64
65
bool bHasSetupGameBridge = false ;
65
66
bool bIsReady = false ;
66
- FImmutableSubsystemReadyDelegate OnReady ;
67
+ FImmutableSubsystemReadyDelegate MulticastDelegate_OnReady ;
67
68
68
69
FDelegateHandle WorldTickHandle;
69
70
FDelegateHandle ViewportCreatedHandle;
You can’t perform that action at this time.
0 commit comments