From 086a34226329b1c3dfb2876127d5243fab1a4ce6 Mon Sep 17 00:00:00 2001 From: ben_singer Date: Sat, 16 Nov 2024 19:16:18 +0000 Subject: [PATCH] Refactor of Logic directory --- NetAF.Examples/Program.cs | 1 + NetAF.Tests/Logic/Game_Tests.cs | 1 + NetAF.Tests/TestGameConfiguration.cs | 1 + NetAF/Logic/AssetGenerator.cs | 1 + NetAF/Logic/{ => Callbacks}/GameCreationCallback.cs | 2 +- NetAF/Logic/{ => Callbacks}/GameSetupCallback.cs | 2 +- NetAF/Logic/{ => Callbacks}/OverworldCreationCallback.cs | 2 +- NetAF/Logic/{ => Callbacks}/PlayerCreationCallback.cs | 2 +- NetAF/Logic/{ => Configuration}/ConsoleGameConfiguration.cs | 2 +- NetAF/Logic/{ => Configuration}/IGameConfiguration.cs | 2 +- NetAF/Logic/Game.cs | 2 ++ docs/docfx/docs/getting-started.md | 1 + 12 files changed, 13 insertions(+), 6 deletions(-) rename NetAF/Logic/{ => Callbacks}/GameCreationCallback.cs (85%) rename NetAF/Logic/{ => Callbacks}/GameSetupCallback.cs (85%) rename NetAF/Logic/{ => Callbacks}/OverworldCreationCallback.cs (88%) rename NetAF/Logic/{ => Callbacks}/PlayerCreationCallback.cs (88%) rename NetAF/Logic/{ => Configuration}/ConsoleGameConfiguration.cs (98%) rename NetAF/Logic/{ => Configuration}/IGameConfiguration.cs (97%) diff --git a/NetAF.Examples/Program.cs b/NetAF.Examples/Program.cs index 9f5eb754..c2372e29 100644 --- a/NetAF.Examples/Program.cs +++ b/NetAF.Examples/Program.cs @@ -13,6 +13,7 @@ using NetAF.Examples.Assets.Regions.Zelda.Rooms; using NetAF.Extensions; using NetAF.Logic; +using NetAF.Logic.Configuration; namespace NetAF.Examples { diff --git a/NetAF.Tests/Logic/Game_Tests.cs b/NetAF.Tests/Logic/Game_Tests.cs index 2e4585a6..ca7bb3ab 100644 --- a/NetAF.Tests/Logic/Game_Tests.cs +++ b/NetAF.Tests/Logic/Game_Tests.cs @@ -7,6 +7,7 @@ using NetAF.Utilities; using Microsoft.VisualStudio.TestTools.UnitTesting; using NetAF.Logic.Modes; +using NetAF.Logic.Configuration; namespace NetAF.Tests.Logic { diff --git a/NetAF.Tests/TestGameConfiguration.cs b/NetAF.Tests/TestGameConfiguration.cs index 5d7f6f62..150c9cef 100644 --- a/NetAF.Tests/TestGameConfiguration.cs +++ b/NetAF.Tests/TestGameConfiguration.cs @@ -2,6 +2,7 @@ using NetAF.Assets; using NetAF.Interpretation; using NetAF.Logic; +using NetAF.Logic.Configuration; using NetAF.Rendering; using NetAF.Rendering.FrameBuilders; diff --git a/NetAF/Logic/AssetGenerator.cs b/NetAF/Logic/AssetGenerator.cs index 0e28f190..984e21a9 100644 --- a/NetAF/Logic/AssetGenerator.cs +++ b/NetAF/Logic/AssetGenerator.cs @@ -1,5 +1,6 @@ using NetAF.Assets.Characters; using NetAF.Assets.Locations; +using NetAF.Logic.Callbacks; using NetAF.Utilities; namespace NetAF.Logic diff --git a/NetAF/Logic/GameCreationCallback.cs b/NetAF/Logic/Callbacks/GameCreationCallback.cs similarity index 85% rename from NetAF/Logic/GameCreationCallback.cs rename to NetAF/Logic/Callbacks/GameCreationCallback.cs index 7bb8526e..f9c38630 100644 --- a/NetAF/Logic/GameCreationCallback.cs +++ b/NetAF/Logic/Callbacks/GameCreationCallback.cs @@ -1,4 +1,4 @@ -namespace NetAF.Logic +namespace NetAF.Logic.Callbacks { /// /// Represents the callback used for Game creation. diff --git a/NetAF/Logic/GameSetupCallback.cs b/NetAF/Logic/Callbacks/GameSetupCallback.cs similarity index 85% rename from NetAF/Logic/GameSetupCallback.cs rename to NetAF/Logic/Callbacks/GameSetupCallback.cs index 7097907b..0c05d3b6 100644 --- a/NetAF/Logic/GameSetupCallback.cs +++ b/NetAF/Logic/Callbacks/GameSetupCallback.cs @@ -1,4 +1,4 @@ -namespace NetAF.Logic +namespace NetAF.Logic.Callbacks { /// /// Represents the callback used for Game setup. diff --git a/NetAF/Logic/OverworldCreationCallback.cs b/NetAF/Logic/Callbacks/OverworldCreationCallback.cs similarity index 88% rename from NetAF/Logic/OverworldCreationCallback.cs rename to NetAF/Logic/Callbacks/OverworldCreationCallback.cs index a1104559..dae65975 100644 --- a/NetAF/Logic/OverworldCreationCallback.cs +++ b/NetAF/Logic/Callbacks/OverworldCreationCallback.cs @@ -1,6 +1,6 @@ using NetAF.Assets.Locations; -namespace NetAF.Logic +namespace NetAF.Logic.Callbacks { /// /// Represents a callback for Overworld creation. diff --git a/NetAF/Logic/PlayerCreationCallback.cs b/NetAF/Logic/Callbacks/PlayerCreationCallback.cs similarity index 88% rename from NetAF/Logic/PlayerCreationCallback.cs rename to NetAF/Logic/Callbacks/PlayerCreationCallback.cs index 008ca83b..ba0f50c0 100644 --- a/NetAF/Logic/PlayerCreationCallback.cs +++ b/NetAF/Logic/Callbacks/PlayerCreationCallback.cs @@ -1,6 +1,6 @@ using NetAF.Assets.Characters; -namespace NetAF.Logic +namespace NetAF.Logic.Callbacks { /// /// Represents a callback for Player creation. diff --git a/NetAF/Logic/ConsoleGameConfiguration.cs b/NetAF/Logic/Configuration/ConsoleGameConfiguration.cs similarity index 98% rename from NetAF/Logic/ConsoleGameConfiguration.cs rename to NetAF/Logic/Configuration/ConsoleGameConfiguration.cs index 177f9a14..4ecf7ace 100644 --- a/NetAF/Logic/ConsoleGameConfiguration.cs +++ b/NetAF/Logic/Configuration/ConsoleGameConfiguration.cs @@ -4,7 +4,7 @@ using NetAF.Rendering.FrameBuilders; using NetAF.Rendering; -namespace NetAF.Logic +namespace NetAF.Logic.Configuration { /// /// Represents a configuration for a console game. diff --git a/NetAF/Logic/IGameConfiguration.cs b/NetAF/Logic/Configuration/IGameConfiguration.cs similarity index 97% rename from NetAF/Logic/IGameConfiguration.cs rename to NetAF/Logic/Configuration/IGameConfiguration.cs index ef64fd72..4e5b3d26 100644 --- a/NetAF/Logic/IGameConfiguration.cs +++ b/NetAF/Logic/Configuration/IGameConfiguration.cs @@ -4,7 +4,7 @@ using NetAF.Rendering; using NetAF.Rendering.FrameBuilders; -namespace NetAF.Logic +namespace NetAF.Logic.Configuration { /// /// Represents a configuration for a game. diff --git a/NetAF/Logic/Game.cs b/NetAF/Logic/Game.cs index c831a27f..1a45fc09 100644 --- a/NetAF/Logic/Game.cs +++ b/NetAF/Logic/Game.cs @@ -9,6 +9,8 @@ using NetAF.Extensions; using NetAF.Interpretation; using NetAF.Logic.Arrangement; +using NetAF.Logic.Callbacks; +using NetAF.Logic.Configuration; using NetAF.Logic.Modes; using NetAF.Serialization; using NetAF.Utilities; diff --git a/docs/docfx/docs/getting-started.md b/docs/docfx/docs/getting-started.md index f69caf60..4df7cd18 100644 --- a/docs/docfx/docs/getting-started.md +++ b/docs/docfx/docs/getting-started.md @@ -163,6 +163,7 @@ using NetAF.Assets; using NetAF.Assets.Characters; using NetAF.Assets.Locations; using NetAF.Logic; +using NetAF.Logic.Coniguration; using NetAF.Utilities; namespace NetAF.GettingStarted