-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
41 changed files
with
165 additions
and
951 deletions.
There are no files selected for viewing
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
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 @@ | ||
using System; | ||
using System.IO; | ||
using Constants; | ||
using Microsoft.Extensions.Configuration; | ||
|
||
namespace GameDesktop.Builders; | ||
|
||
internal static class ConfigurationBuilder | ||
{ | ||
private static string BasePath => Directory.GetParent(AppContext.BaseDirectory)!.FullName; | ||
|
||
private static string InEnvironment => | ||
Environment.GetEnvironmentVariable(EnvironmentNames.DotNetEnvironment) ?? "Production"; | ||
|
||
public static IConfigurationRoot Create() => | ||
new Microsoft.Extensions.Configuration.ConfigurationBuilder() | ||
.SetBasePath(BasePath) | ||
.AddJsonFile($"{AppVariables.SettingsFileName}.json", optional: false, reloadOnChange: true) | ||
.AddJsonFile($"{AppVariables.SettingsFileName}.{InEnvironment}.json", optional: true) | ||
.AddEnvironmentVariables() | ||
.Build(); | ||
} |
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
4 changes: 2 additions & 2 deletions
4
src/Apps/GameDesktop/Factories/UIFactory.cs → src/Apps/GameDesktop/Builders/UIBuilder.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
27 changes: 0 additions & 27 deletions
27
src/Apps/GameDesktop/CompositionRoots/DebugFeatures/DebugRootFeatureCompositionRoot.cs
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
src/Apps/GameDesktop/CompositionRoots/Entities/PlayerEntityCompositionRoot.cs
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
src/Apps/GameDesktop/CompositionRoots/Entities/RockEntityCompositionRoot.cs
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
src/Apps/GameDesktop/CompositionRoots/Entities/StaticEntityCompositionRoot.cs
This file was deleted.
Oops, something went wrong.
36 changes: 0 additions & 36 deletions
36
src/Apps/GameDesktop/CompositionRoots/Features/CameraFeatureCompositionRoot.cs
This file was deleted.
Oops, something went wrong.
46 changes: 0 additions & 46 deletions
46
src/Apps/GameDesktop/CompositionRoots/Features/InputFeatureCompositionRoot.cs
This file was deleted.
Oops, something went wrong.
74 changes: 0 additions & 74 deletions
74
src/Apps/GameDesktop/CompositionRoots/Features/MovementFeatureCompositionRoot.cs
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
src/Apps/GameDesktop/CompositionRoots/Features/WorldInitializeFeatureCompositionRoot.cs
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.