File tree Expand file tree Collapse file tree 3 files changed +7
-15
lines changed Expand file tree Collapse file tree 3 files changed +7
-15
lines changed Original file line number Diff line number Diff line change @@ -56,16 +56,6 @@ void UImmutableSubsystem::Deinitialize()
56
56
Super::Deinitialize ();
57
57
}
58
58
59
- template <class UserClass >
60
- #if (ENGINE_MAJOR_VERSION >= 5 && ENGINE_MINOR_VERSION >= 1)
61
- void UImmutableSubsystem::WhenReady (UserClass* Object, typename FImmutableSubsystemReadyDelegate::FDelegate::TMethodPtr<UserClass> Func)
62
- #else
63
- void UImmutableSubsystem::WhenReady (UserClass* Object, typename FImmutableSubsystemReadyDelegate::FDelegate::TUObjectMethodDelegate<UserClass>::FMethodPtr Func)
64
- #endif
65
- {
66
- OnReady.AddUObject (Object, Func);
67
- }
68
-
69
59
void UImmutableSubsystem::OnBridgeReady ()
70
60
{
71
61
// When the bridge is ready our subsystem is ready to be used by game code.
Original file line number Diff line number Diff line change 1
1
#pragma once
2
2
3
+ #include "ImmutableDataTypes.h"
3
4
4
5
#include "ImmutableRequests.generated.h"
5
6
@@ -48,7 +49,7 @@ struct IMMUTABLE_API FImxBatchNftTransferRequest
48
49
GENERATED_BODY ()
49
50
50
51
UPROPERTY ()
51
- TArray < FNftTransferDetails > nftTransferDetails ;
52
+ TArray < struct FNftTransferDetails > nftTransferDetails ;
52
53
53
54
FString ToJsonString () const ;
54
55
};
Original file line number Diff line number Diff line change @@ -31,16 +31,17 @@ class IMMUTABLE_API UImmutableSubsystem : public UGameInstanceSubsystem
31
31
32
32
bool IsReady () const { return bIsReady; }
33
33
34
- // FOnGameViewportTick& OnGameViewportTick() { return GameViewportTickEvent; }
35
-
36
34
// Execute a delegate when the subsystem is ready (i.e.: when the browser is
37
35
// running and the Immutable SDK game bridge has loaded).
38
36
template <class UserClass >
39
37
#if (ENGINE_MAJOR_VERSION >= 5 && ENGINE_MINOR_VERSION >= 1)
40
- void WhenReady (UserClass* Object, typename FImmutableSubsystemReadyDelegate::FDelegate::TMethodPtr<UserClass> Func);
38
+ void WhenReady (UserClass* Object, typename FImmutableSubsystemReadyDelegate::FDelegate::TMethodPtr<UserClass> Func)
41
39
#else
42
- void WhenReady (UserClass* Object, typename FImmutableSubsystemReadyDelegate::FDelegate::TUObjectMethodDelegate<UserClass>::FMethodPtr Func);
40
+ void WhenReady (UserClass* Object, typename FImmutableSubsystemReadyDelegate::FDelegate::TUObjectMethodDelegate<UserClass>::FMethodPtr Func)
43
41
#endif
42
+ {
43
+ OnReady.AddUObject (Object, Func);
44
+ }
44
45
45
46
private:
46
47
UPROPERTY ()
You can’t perform that action at this time.
0 commit comments