commit efe97745b0e347b7f54ba127d9bfb01d8cb4e554 Author: Jamie Greunbaum Date: Wed Mar 15 00:25:56 2023 -0400 Created a plugin for placing bug report markers directly into the game. diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cfbcb6f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +Binaries/ +Intermediate/ diff --git a/Content/BP_BugLocationActor.uasset b/Content/BP_BugLocationActor.uasset new file mode 100644 index 0000000..c479cc9 Binary files /dev/null and b/Content/BP_BugLocationActor.uasset differ diff --git a/Content/BP_BugPlacerPawn.uasset b/Content/BP_BugPlacerPawn.uasset new file mode 100644 index 0000000..9f5bf36 Binary files /dev/null and b/Content/BP_BugPlacerPawn.uasset differ diff --git a/Content/IA_BugPlacerCamera.uasset b/Content/IA_BugPlacerCamera.uasset new file mode 100644 index 0000000..d5d3fe6 Binary files /dev/null and b/Content/IA_BugPlacerCamera.uasset differ diff --git a/Content/IA_BugPlacerSpeedDown.uasset b/Content/IA_BugPlacerSpeedDown.uasset new file mode 100644 index 0000000..5ea1d9c Binary files /dev/null and b/Content/IA_BugPlacerSpeedDown.uasset differ diff --git a/Content/IA_BugPlacerSpeedUp.uasset b/Content/IA_BugPlacerSpeedUp.uasset new file mode 100644 index 0000000..ed9903d Binary files /dev/null and b/Content/IA_BugPlacerSpeedUp.uasset differ diff --git a/Content/IA_ExitBugPlacing.uasset b/Content/IA_ExitBugPlacing.uasset new file mode 100644 index 0000000..e4819b9 Binary files /dev/null and b/Content/IA_ExitBugPlacing.uasset differ diff --git a/Content/IA_MoveBugPlacer.uasset b/Content/IA_MoveBugPlacer.uasset new file mode 100644 index 0000000..2d0a44f Binary files /dev/null and b/Content/IA_MoveBugPlacer.uasset differ diff --git a/Content/IA_PlaceBug.uasset b/Content/IA_PlaceBug.uasset new file mode 100644 index 0000000..97e34d6 Binary files /dev/null and b/Content/IA_PlaceBug.uasset differ diff --git a/Content/MC_BugPlacement.uasset b/Content/MC_BugPlacement.uasset new file mode 100644 index 0000000..83b7a9d Binary files /dev/null and b/Content/MC_BugPlacement.uasset differ diff --git a/Content/M_BuggieIcon.uasset b/Content/M_BuggieIcon.uasset new file mode 100644 index 0000000..60f9452 Binary files /dev/null and b/Content/M_BuggieIcon.uasset differ diff --git a/Content/T_Buggie_370x512.uasset b/Content/T_Buggie_370x512.uasset new file mode 100644 index 0000000..eeae6e5 Binary files /dev/null and b/Content/T_Buggie_370x512.uasset differ diff --git a/Source/Unrealzilla/Private/BugPlacerPawn.cpp b/Source/Unrealzilla/Private/BugPlacerPawn.cpp new file mode 100644 index 0000000..afdd33c Binary files /dev/null and b/Source/Unrealzilla/Private/BugPlacerPawn.cpp differ diff --git a/Source/Unrealzilla/Private/Unrealzilla.cpp b/Source/Unrealzilla/Private/Unrealzilla.cpp new file mode 100644 index 0000000..0493e75 --- /dev/null +++ b/Source/Unrealzilla/Private/Unrealzilla.cpp @@ -0,0 +1,46 @@ +/** + * Copyright ©2019 Batty Bovine Productions, LLC. All Rights Reserved. + **/ + + +#include "CoreMinimal.h" +#include "Engine.h" +#include "Modules/ModuleManager.h" + +#include "IUnrealzilla_Implementation.h" + + +DEFINE_LOG_CATEGORY(UnrealzillaLog); + +#define LOCTEXT_NAMESPACE "Unrealzilla" + + +class FUnrealzilla : public IUnrealzilla_Implementation +{ + /** IModuleInterface implementation */ + virtual void StartupModule() override; + virtual void ShutdownModule() override; + // End IModuleInterface implementation + +}; + +void FUnrealzilla::StartupModule() +{ + // This code will execute after your module is loaded into memory (but after global variables are initialized, of course.) + + // UE_LOG(UnrealzillaLog, Warning, TEXT("Unrealzilla: Log Started")); + +} + +void FUnrealzilla::ShutdownModule() +{ + // This function may be called during shutdown to clean up your module. For modules that support dynamic reloading, + // we call this function before unloading the module. + + // UE_LOG(UnrealzillaLog, Warning, TEXT("Unrealzilla: Log Ended")); + +} + +IMPLEMENT_MODULE(FUnrealzilla, Unrealzilla) + +#undef LOCTEXT_NAMESPACE diff --git a/Source/Unrealzilla/Private/UnrealzillaPrivatePCH.h b/Source/Unrealzilla/Private/UnrealzillaPrivatePCH.h new file mode 100644 index 0000000..c8ddd18 --- /dev/null +++ b/Source/Unrealzilla/Private/UnrealzillaPrivatePCH.h @@ -0,0 +1,12 @@ +/** + * Copyright ©2019 Batty Bovine Productions, LLC. All Rights Reserved. + **/ + + +#include "CoreUObject.h" +#include "Engine.h" +#include "ModuleManager.h" + +// You should place include statements to your module's private header files here. You only need to +// add includes for headers that are used in most of your module's source files though. +#include "IUnrealzilla_Implementation.h" diff --git a/Source/Unrealzilla/Public/BugPlacerPawn.h b/Source/Unrealzilla/Public/BugPlacerPawn.h new file mode 100644 index 0000000..badc529 Binary files /dev/null and b/Source/Unrealzilla/Public/BugPlacerPawn.h differ diff --git a/Source/Unrealzilla/Public/IUnrealzilla_Implementation.h b/Source/Unrealzilla/Public/IUnrealzilla_Implementation.h new file mode 100644 index 0000000..9856be9 --- /dev/null +++ b/Source/Unrealzilla/Public/IUnrealzilla_Implementation.h @@ -0,0 +1,45 @@ +/** + * Copyright ©2019 Batty Bovine Productions, LLC. All Rights Reserved. + **/ + + +#pragma once + +#include "CoreMinimal.h" +#include "Modules/ModuleInterface.h" +#include "Modules/ModuleManager.h" + + +DECLARE_LOG_CATEGORY_EXTERN(UnrealzillaLog, Log, All); + +/** + * The public interface to this module. In most cases, this interface is only public to sibling modules + * within this plugin. + */ +class IUnrealzilla_Implementation : public IModuleInterface +{ + +public: + + /** + * Singleton-like access to this module's interface. This is just for convenience! + * Beware of calling this during the shutdown phase, though. Your module might have been unloaded already. + * + * @return Returns singleton instance, loading the module on demand if needed + */ + static inline IUnrealzilla_Implementation& Get() + { + return FModuleManager::LoadModuleChecked("Unrealzilla"); + } + + /** + * Checks to see if this module is loaded and ready. It is only valid to call Get() if IsAvailable() returns true. + * + * @return True if the module is loaded and ready to use + */ + static inline bool IsAvailable() + { + return FModuleManager::Get().IsModuleLoaded("Unrealzilla"); + } +}; + diff --git a/Source/Unrealzilla/Unrealzilla.Build.cs b/Source/Unrealzilla/Unrealzilla.Build.cs new file mode 100644 index 0000000..1f1123b --- /dev/null +++ b/Source/Unrealzilla/Unrealzilla.Build.cs @@ -0,0 +1,45 @@ +/** + * Copyright ©2019 Batty Bovine Productions, LLC. All Rights Reserved. + **/ + + +using System.IO; + +namespace UnrealBuildTool.Rules +{ + public class Unrealzilla : ModuleRules + { + public Unrealzilla(ReadOnlyTargetRules Target) : base(Target) + { + bLegacyPublicIncludePaths = true; + PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs; + ShadowVariableWarningLevel = WarningLevel.Warning; + + PublicIncludePaths.Add(Path.Combine(ModuleDirectory, "Public")); + + PrivateIncludePaths.AddRange( + new string[] + { + "Unrealzilla/Private" + } + ); + + PublicDependencyModuleNames.AddRange( + new string[] + { + "Core", + "CoreUObject", + "Engine", + "InputCore", + } + ); + + PrivateDependencyModuleNames.AddRange( + new string[] + { + } + ); + } + } +} +/// \ No newline at end of file diff --git a/Unrealzilla.uplugin b/Unrealzilla.uplugin new file mode 100644 index 0000000..343927c --- /dev/null +++ b/Unrealzilla.uplugin @@ -0,0 +1,20 @@ +{ + "FileVersion": 3, + "Version": 1.0, + "VersionName": "1.0", + "FriendlyName": "Unrealzilla", + "Description": "A tool for adding bug reports in-game ", + "Category": "Menu", + "CreatedBy": "Batty Bovine Productions, LLC", + "CreatedByURL": "https://battybovine.com", + "EnabledByDefault": true, + "CanContainContent": true, + "IsBetaVersion": true, + "Modules": [ + { + "Name": "Unrealzilla", + "Type": "Runtime", + "LoadingPhase": "PreDefault" + } + ] +} \ No newline at end of file