This repository has been archived on 2025-04-18. You can view files and clone it, but cannot push or open issues or pull requests.
TjgL 0108c69639 Added FMOD integration
Signed-off-by: TjgL <lithmoneo@gmail.com>
2025-02-22 14:19:53 +01:00

31 lines
605 B
C++

// Copyright (c), Firelight Technologies Pty, Ltd. 2012-2025.
#pragma once
#include "Containers/UnrealString.h"
#include "Misc/DateTime.h"
#include "Delegates/Delegate.h"
class FFMODBankUpdateNotifier
{
public:
FFMODBankUpdateNotifier();
void SetFilePath(const FString &InPath);
void Update(float DeltaTime);
void EnableUpdate(bool bEnable);
FSimpleMulticastDelegate BanksUpdatedEvent;
private:
void Refresh();
FDateTime MostRecentFileTime();
bool bUpdateEnabled;
FString FilePath;
FDateTime NextRefreshTime;
FDateTime FileTime;
float Countdown;
};