-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8297508
commit 1c7bb1c
Showing
9 changed files
with
161 additions
and
39 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"FileVersion": 3, | ||
"Version": 1, | ||
"VersionName": "1.0", | ||
"FriendlyName": "DependencyInjector", | ||
"Description": "Dependency Injector Plugin", | ||
"Category": "Sherbert", | ||
"CreatedBy": "JDSherbert", | ||
"CreatedByURL": "https://github.com/JDSherbert", | ||
"DocsURL": "https://github.com/JDSherbert", | ||
"MarketplaceURL": "", | ||
"SupportURL": "mailto:[email protected]", | ||
"CanContainContent": true, | ||
"IsBetaVersion": false, | ||
"IsExperimentalVersion": false, | ||
"Installed": false, | ||
"Modules": [ | ||
{ | ||
"Name": "DependencyInjectorPlugin", | ||
"Type": "Runtime", | ||
"LoadingPhase": "Default" | ||
} | ||
] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 56 additions & 0 deletions
56
DependencyInjectorPlugin/Source/DependencyInjectorPlugin/DependencyInjectorPlugin.Build.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
// �2024 JDSherbert. All rights reserved. | ||
|
||
using UnrealBuildTool; | ||
|
||
public class DependencyInjectorPlugin : ModuleRules | ||
{ | ||
public DependencyInjectorPlugin(ReadOnlyTargetRules Target) : base(Target) | ||
{ | ||
PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs; | ||
|
||
PublicIncludePaths.AddRange( | ||
new string[] { | ||
// ... add public include paths required here ... | ||
} | ||
); | ||
|
||
|
||
PrivateIncludePaths.AddRange( | ||
new string[] { | ||
// ... add other private include paths required here ... | ||
} | ||
); | ||
|
||
|
||
PublicDependencyModuleNames.AddRange( | ||
new string[] | ||
{ | ||
"Core", | ||
// ... add other public dependencies that you statically link with here ... | ||
} | ||
); | ||
|
||
|
||
PrivateDependencyModuleNames.AddRange( | ||
new string[] | ||
{ | ||
"Projects", | ||
"InputCore", | ||
"CoreUObject", | ||
"Engine", | ||
"Slate", | ||
"SlateCore", | ||
// ... add private dependencies that you statically link with here ... | ||
} | ||
); | ||
|
||
|
||
DynamicallyLoadedModuleNames.AddRange( | ||
new string[] | ||
{ | ||
// ... add any modules that your module loads dynamically here ... | ||
} | ||
); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
...ndencyInjectorPlugin/Source/DependencyInjectorPlugin/Private/DependencyInjectorPlugin.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// ©2024 JDSherbert. All rights reserved. | ||
|
||
#include "DependencyInjectorPlugin.h" | ||
|
||
/* ------------------------------------------------------------ */ | ||
|
||
#define LOCTEXT_NAMESPACE "FDependencyInjectorPluginModule" | ||
|
||
/* ------------------------------------------------------------ */ | ||
|
||
void FDependencyInjectorPluginModule::StartupModule() | ||
{ | ||
// This code will execute after your module is loaded into memory; the exact timing is specified in the .uplugin file per-module | ||
} | ||
|
||
/* ------------------------------------------------------------ */ | ||
|
||
void FDependencyInjectorPluginModule::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. | ||
} | ||
|
||
/* ------------------------------------------------------------ */ | ||
|
||
#undef LOCTEXT_NAMESPACE | ||
|
||
/* ------------------------------------------------------------ */ | ||
|
||
IMPLEMENT_MODULE(FDependencyInjectorPluginModule, DependencyInjectorPlugin) | ||
|
||
/* ------------------------------------------------------------ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
DependencyInjectorPlugin/Source/DependencyInjectorPlugin/Public/DependencyInjectorPlugin.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// ©2024 JDSherbert. All rights reserved. | ||
|
||
#pragma once | ||
|
||
#include <Runtime/Core/Public/CoreMinimal.h> | ||
|
||
#include <Runtime/Core/Public/Modules/ModuleManager.h> | ||
|
||
/* ------------------------------------------------------------ */ | ||
|
||
class FDependencyInjectorPluginModule : public IModuleInterface | ||
{ | ||
|
||
public: | ||
|
||
/** IModuleInterface implementation */ | ||
virtual void StartupModule() override; | ||
virtual void ShutdownModule() override; | ||
|
||
}; | ||
|
||
/* ------------------------------------------------------------ */ |