mirror of
https://github.com/Theaninova/BeatLanguageMapper.git
synced 2026-01-20 08:53:02 +00:00
Mk2Rev1
various bugfixes and such. also bookmarks, temp song loaderm and undo overhaul with near complete multiplayer, but menu items disabled. i really wish i could split this into multiple commits, but i don't know how to work unreal.
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
|
||||
#include "ZipUtilityPrivatePCH.h"
|
||||
#include "WindowsFileUtilityFunctionLibrary.h"
|
||||
#include "ZipFileFunctionLibrary.h"
|
||||
#include "ZULambdaDelegate.h"
|
||||
|
||||
UZULambdaDelegate::UZULambdaDelegate()
|
||||
{
|
||||
OnDoneCallback = nullptr;
|
||||
OnProgressCallback = nullptr;
|
||||
}
|
||||
|
||||
void UZULambdaDelegate::SetOnDoneCallback(TFunction<void()> InOnDoneCallback)
|
||||
{
|
||||
OnDoneCallback = InOnDoneCallback;
|
||||
}
|
||||
|
||||
void UZULambdaDelegate::SetOnProgessCallback(TFunction<void(float)> InOnProgressCallback)
|
||||
{
|
||||
OnProgressCallback = InOnProgressCallback;
|
||||
}
|
||||
|
||||
void UZULambdaDelegate::OnProgress_Implementation(const FString& archive, float percentage, int32 bytes)
|
||||
{
|
||||
if (OnProgressCallback != nullptr)
|
||||
{
|
||||
OnProgressCallback(percentage);
|
||||
}
|
||||
}
|
||||
|
||||
void UZULambdaDelegate::OnDone_Implementation(const FString& archive, EZipUtilityCompletionState CompletionState)
|
||||
{
|
||||
if (OnDoneCallback != nullptr)
|
||||
{
|
||||
OnDoneCallback();
|
||||
}
|
||||
}
|
||||
|
||||
void UZULambdaDelegate::OnStartProcess_Implementation(const FString& archive, int32 bytes)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void UZULambdaDelegate::OnFileDone_Implementation(const FString& archive, const FString& file)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void UZULambdaDelegate::OnFileFound_Implementation(const FString& archive, const FString& file, int32 size)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user