I’ve been playing around with Godot a bit to get a feel for how other people tackle some issues, and I found one feature that I think we need for Urho3D: Path URLs.
It would look something like:
“res://models/box.mdl” - Looks in the resource folders or packages for “models/box.mdl”
“usr://settings.cfg” - Looks in the user writable directory
"app://settings.template.cfg" - Looks in the application root directory
Additionally, the ResourceRouter class could be changed appropriately. A ResourceRouter could be tied to a specific URL type and “res”, “usr”/“user”, and “app” would all be default ResourceRouters provided out-of-the-box.
Understandably this is a bit of work. So before I go about implementing this, I wanted to get other’s opinions on this idea.
The purpose of this is to allow greater flexibility. Plug-n-play ResourceRouters would allow people to share their own schemes. Additionally it allows us the benefit of storing file locations in scripts and data. Currently a file path in the editor can only point to a resource, it’s not easy to point to a game save location or a path for logs without building the path in C++ or in a script.