// Copyright Epic Games, Inc. All Rights Reserved. #pragma once #include "CoreMinimal.h" #include "Modules/ModuleManager.h" DECLARE_LOG_CATEGORY_EXTERN(LogTaptap, Display, All); #define TAPLOG(Verbosity, Format, ...) \ { \ UE_LOG(LogTaptap, Verbosity, Format, ##__VA_ARGS__); \ GEngine->AddOnScreenDebugMessage( \ -1,7,FColor::Green,FString::Printf(Format,##__VA_ARGS__)); \ } #define TAPLOG_D(Format, ...) \ { \ UE_LOG(LogTaptap, Display, Format, ##__VA_ARGS__); \ GEngine->AddOnScreenDebugMessage( \ -1,7,FColor::Green,FString::Printf(Format,##__VA_ARGS__)); \ } #define TAPLOG_W(Format, ...) \ { \ UE_LOG(LogTaptap, Warning, Format, ##__VA_ARGS__); \ GEngine->AddOnScreenDebugMessage( \ -1,7,FColor::Yellow,FString::Printf(Format,##__VA_ARGS__)); \ } #define TAPLOG_E(Format, ...) \ { \ UE_LOG(LogTaptap, Error, Format, ##__VA_ARGS__); \ GEngine->AddOnScreenDebugMessage( \ -1,7,FColor::Red,FString::Printf(Format,##__VA_ARGS__)); \ } class FTaptapModule : public IModuleInterface { public: /** IModuleInterface implementation */ virtual void StartupModule() override; virtual void ShutdownModule() override; };