55 lines
1.5 KiB
C++
55 lines
1.5 KiB
C++
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
#pragma once
|
|
|
|
#include "ResComStatistics.h"
|
|
#include "ResComApartmentManager.h"
|
|
#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 "ResComGameInstance.generated.h"
|
|
|
|
/**
|
|
*
|
|
*/
|
|
|
|
DECLARE_DYNAMIC_DELEGATE_OneParam(FHttpDelegate, FString, Content);
|
|
|
|
UCLASS()
|
|
class FORTIS_TAKTIKA_API UResComGameInstance : public UGameInstance
|
|
{
|
|
GENERATED_BODY()
|
|
private:
|
|
UResComApartmentManager* apartmentManager;
|
|
UResComStatistics* statisticsManager;
|
|
//FString HttpData;
|
|
//FHttpDelegate& Callback;
|
|
protected:
|
|
//UFUNCTION(BlueprintCallable, Category = "ApartmentManager")
|
|
//void SetApartmentManager(UResComApartmentManager* manager);
|
|
public:
|
|
UResComGameInstance();
|
|
virtual void Init();
|
|
UFUNCTION(BlueprintCallable, Category = "ApartmentManager")
|
|
UResComApartmentManager* GetApartmentManager() const;
|
|
|
|
UFUNCTION(BlueprintCallable, Category = "StatisticsManager")
|
|
UResComStatistics* GetStatisticsManager() const;
|
|
|
|
|
|
|
|
//UFUNCTION(BlueprintCallable)
|
|
//void HttpGet(FString UrlAddress, const FHttpDelegate& Callback);
|
|
//void OnHttpRequestComplete(FHttpRequestPtr Request, FHttpResponsePtr Response, bool bWasSuccessful);
|
|
//UFUNCTION(BlueprintCallable)
|
|
//FString GetHttpData();
|
|
|
|
};
|