diff --git a/Source/USharp/Private/USharpLatentAction.cpp b/Source/USharp/Private/USharpLatentAction.cpp new file mode 100644 index 0000000..3a07780 --- /dev/null +++ b/Source/USharp/Private/USharpLatentAction.cpp @@ -0,0 +1,6 @@ +#include "USharpLatentAction.h" + +ManagedLatentCallbackDel UUSharpAsyncActionBaseCallback = nullptr; +ManagedLatentCallbackDel UUSharpOnlineBlueprintCallProxyBaseCallback = nullptr; +ManagedLatentCallbackDel UUSharpGameplayTaskCallback = nullptr; + diff --git a/Source/USharp/Private/USharpLatentAction.h b/Source/USharp/Private/USharpLatentAction.h index ede15e2..a2c7ecd 100644 --- a/Source/USharp/Private/USharpLatentAction.h +++ b/Source/USharp/Private/USharpLatentAction.h @@ -38,9 +38,9 @@ enum class ManagedLatentCallbackType : int32 }; typedef void(CSCONV *ManagedLatentCallbackDel)(ManagedLatentCallbackType CallbackType, const void* ThisPtr, const void* Data); -ManagedLatentCallbackDel UUSharpAsyncActionBaseCallback = nullptr; -ManagedLatentCallbackDel UUSharpOnlineBlueprintCallProxyBaseCallback = nullptr; -ManagedLatentCallbackDel UUSharpGameplayTaskCallback = nullptr; +extern ManagedLatentCallbackDel UUSharpAsyncActionBaseCallback; +extern ManagedLatentCallbackDel UUSharpOnlineBlueprintCallProxyBaseCallback; +extern ManagedLatentCallbackDel UUSharpGameplayTaskCallback; class FUSharpLatentAction : public FPendingLatentAction {