AdamsLair / duality

a 2D Game Development Framework
https://adamslair.github.io/duality
MIT License
1.41k stars 287 forks source link

Optimize folder structure part 2 #828

Open Barsonax opened 4 years ago

Barsonax commented 4 years ago

Summary

In #822 we already did some changes to the folder structure but in the end decided to keep duality itself in the root folder as that was simpler to do since changing the folder structure also impact how a duality game will be published. However it might still be worth to look into changing this after v4 is released.

As of #827 the currently used folder structure is like so:

[Project Folder]
|
+- [Project].sln
|
+- DualityEditor.exe
+- Data
+- Plugins
+- all the other project files and binaries
|
+- Import
|
+- Source
   +- Launchers
      +- GameLauncher
      +- GameEditor
   +- Plugins
      +- GamePlugin

Some optionally desired features:

To achieve these features I propose that we use this folder structure:

[Project Folder]
+- Source
   +- [Project].sln
   +- Launchers
      +- GameLauncher
      +- GameEditor
   +- Plugins
      +- GamePlugin
|
+- Data
|
+- Import
|
+- Duality
   +- net472
       +- Launcher
          +- Plugins
          +- DualityLauncher.exe
          +- all the other binaries
       +- Editor
          +- Plugins
          +- DualityEditor.exe
          +- DualityLauncher.exe
          +- all the other binaries
   +- someothertargetframework
       +- ...
   +- etc...

Obviously some logic has to be changed in duality to achieve this, especially the way we publish a duality game.