A modded EditSaber for making beat saber maps.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

43 lines
1.2 KiB

// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "Http.h"
#include "MMServerRequest.generated.h"
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnResponse, const FString, response);
/**
* Download a file from a URL and save it locally.
*/
UCLASS(BlueprintType, Category = "MPServerRequest")
class MEDIOCREMAPASSISTANT2_API UMMServerRequest : public UObject
{
GENERATED_BODY()
public:
FHttpModule* Http;
UPROPERTY(BlueprintAssignable, Category = "MPServerRequest")
FOnResponse OnResponse;
UPROPERTY(BlueprintReadOnly, Category = "HTTP")
FString uploadFile;
UPROPERTY(BlueprintReadOnly, Category = "HTTP")
FString output;
UFUNCTION(BlueprintCallable, meta = (DisplayName = "getOutput"), Category = "MPServerRequest")
FString getOutput();
UMMServerRequest();
~UMMServerRequest();
UFUNCTION(BlueprintCallable, Meta = (DisplayName = "Create Requester"), Category = "HTTP")
static UMMServerRequest* MakeRequester();
UFUNCTION(BlueprintCallable, meta = (DisplayName = "SendSong"), Category = "MPServerRequest")
void SendSong();
private:
void OnResponseReceived(FHttpRequestPtr Request, FHttpResponsePtr Response, bool bWasSuccessful);
};