Skip to content

Commit

Permalink
[cpp-ue4] Support UE5 version of FTickerObjectBase (#13304)
Browse files Browse the repository at this point in the history
Co-authored-by: nullbus <nullbus@nm-fc.com>
  • Loading branch information
nullbus and nullbus committed Aug 29, 2022
1 parent 97b3859 commit 9b9d320
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include "Dom/JsonObject.h"
#include "HttpRetrySystem.h"
#include "Containers/Ticker.h"
#include "Runtime/Launch/Resources/Version.h"

{{#cppNamespaceDeclarations}}
namespace {{this}}
Expand All @@ -16,7 +17,13 @@ namespace {{this}}
typedef TSharedRef<TJsonWriter<>> JsonWriter;
using namespace FHttpRetrySystem;

struct {{dllapi}} HttpRetryManager : public FManager, public FTickerObjectBase
struct {{dllapi}} HttpRetryManager
: public FManager
#if ENGINE_MAJOR_VERSION <= 4
, public FTickerObjectBase
#else
, public FTSTickerObjectBase
#endif
{
using FManager::FManager;
Expand Down
9 changes: 8 additions & 1 deletion samples/client/petstore/cpp-ue4/Public/OpenAPIBaseModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,21 @@
#include "Dom/JsonObject.h"
#include "HttpRetrySystem.h"
#include "Containers/Ticker.h"
#include "Runtime/Launch/Resources/Version.h"

namespace OpenAPI
{

typedef TSharedRef<TJsonWriter<>> JsonWriter;
using namespace FHttpRetrySystem;

struct OPENAPI_API HttpRetryManager : public FManager, public FTickerObjectBase
struct OPENAPI_API HttpRetryManager
: public FManager
#if ENGINE_MAJOR_VERSION <= 4
, public FTickerObjectBase
#else
, public FTSTickerObjectBase
#endif
{
using FManager::FManager;

Expand Down

0 comments on commit 9b9d320

Please sign in to comment.