You might have seen videos or read articles about how to structure your folders and organize your assets, the following is a step further you may want to consider.
Developing any application/game using a modular folder structure and partial classes can significantly impact the organization and maintainability of your project. Here we’ll delve into the pros and cons of such an approach, using a “SDK/Modules/Feature” structure and utilizing partial classes to enhance code organization.
Pros:
Clean Code Separation:
Adopting a modular structure, such as “SDK/Modules/Feature”, promotes clean code separation. By placing fundamental game elements like code dependencies, abstract classes for design patterns or generic managers within a “Core” feature to create a solid foundation, each other module focuses on its specific functionality, leading to a more organized codebase.