38 lines
964 B
C++
38 lines
964 B
C++
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
#pragma once
|
|
|
|
#include "Engine/LatentActionManager.h"
|
|
#include "Interfaces/IHttpRequest.h"
|
|
#include "Runtime/Online/HTTP/Public/HttpModule.h"
|
|
#include "Interfaces/IHttpResponse.h"
|
|
#include "Dom/JsonObject.h"
|
|
#include "Http.h"
|
|
#include "HttpModule.h"
|
|
#include "LatentActions.h"
|
|
#include "CoreMinimal.h"
|
|
#include "Engine/GameInstance.h"
|
|
#include "CppGameInstance.generated.h"
|
|
|
|
/**
|
|
*
|
|
*/
|
|
|
|
DECLARE_DYNAMIC_DELEGATE_OneParam(FHttpDelegate, FString, Content);
|
|
|
|
UCLASS()
|
|
class FORTIS_TAKTIKA_API UCppGameInstance : public UGameInstance
|
|
{
|
|
GENERATED_BODY()
|
|
private:
|
|
//FString HttpData;
|
|
//FHttpDelegate& Callback;
|
|
public:
|
|
//UFUNCTION(BlueprintCallable)
|
|
//void HttpGet(FString UrlAddress, const FHttpDelegate& Callback);
|
|
//void OnHttpRequestComplete(FHttpRequestPtr Request, FHttpResponsePtr Response, bool bWasSuccessful);
|
|
//UFUNCTION(BlueprintCallable)
|
|
//FString GetHttpData();
|
|
|
|
};
|