Open mdoradom opened 1 month ago
The base of the Resource Management is implemented. Few things that are missing:
After a lot of tears and pain I managed to refactor the Resource Management to cover all the Coffee Engine needs. The Templates are gone. A ResouceSaver and a CacheManager has been added and the ResouceImporter is no longer a static class but it is part of the ResouceLoader.
Even so, there are still some things to polish:
To better manage the Resources that are only owned by the Resource Manager are not removed. I'm in some ways to solve it.
I think we need to add UUID's to the Resource Manager to be able to serialize the meshes
Two new problems I have encountered today. Today I added that when the LoadDirectory is called generates all the .import files of the project. Then the Resource Loading uses the .import instead of the original file for loading.
I can't handle this anymore. I fucking hate the Resource Management, is unbearable. Is a rabbit hole of problems. Is the less satisfying thing I made in my entire life. Being executed with the Garrote Vil is better than this shit.
I embedded all the CoffeeEngine Shaders in the source code. Is missing the texture and the TextMesh.glb.
The .import system is working!!! When the .import is created the original file is no longer need it. With the Model does not work bc the Model is not in the cache.
Add to the LoadDirectory to eary test if the file has a .import? ...
The Resource Management Structure will consist in the next management structures:
Pseudocode: