ComponentTypeID GetComponentTypeID_Static()
std::function< void()> m_saveFn
std::string m_pendingFilePath
float m_periodicIntervalSec
void Init(std::function< void()> saveFn, float debounceSec=1.5f, float periodicIntervalSec=60.0f)
Set the timing parameters and an optional legacy save callback.
void Flush()
Block until any running async save finishes.
EditorAutosaveManager()=default
void LaunchAsyncWrite(std::string data, std::string path)
double m_debounceDeadline
void ScheduleSave(double nowSec)
Notify the manager that a change occurred (legacy overload).
std::function< std::string()> m_pendingSerializeFn
std::string m_pendingFallbackPrefix
void Tick(double nowSec)
Must be called once per frame to advance timers and launch saves.
std::future< void > m_future
< Provides AssetID and INVALID_ASSET_ID