Resource/Archive/Filesystem change notification for sync
Posted: Mon Sep 29, 2014 6:44 pm
Hey.
So I'm wondering if it makes sense to have some kind of "isInSyncWithOrigin" for resources, or even a "filesystemChangeListener" pattern.
I would use this to know when a resource object is out of sync with the filesystem and chose to selectively refresh and reload objects built from these resources.
I think this would help me simplify my edit/test cycles for custom resources like behaviour scripts and certain type of resource that needs a lot of tweaking.
Looking at it from a more general viewpoint I think it would allow for a clear game / editor separation by having filesystem changes trigger events in Ogre.
Somebody here have similar thoughts with their Ogre projects?
So I'm wondering if it makes sense to have some kind of "isInSyncWithOrigin" for resources, or even a "filesystemChangeListener" pattern.
I would use this to know when a resource object is out of sync with the filesystem and chose to selectively refresh and reload objects built from these resources.
I think this would help me simplify my edit/test cycles for custom resources like behaviour scripts and certain type of resource that needs a lot of tweaking.
Looking at it from a more general viewpoint I think it would allow for a clear game / editor separation by having filesystem changes trigger events in Ogre.
Somebody here have similar thoughts with their Ogre projects?