载入中...
搜索中...
未找到
HotReload.h
浏览该文件的文档.
Definition Module.h:43
Path→reload dispatcher for soft hot reload. Driven from load.nut via pollWatch → tryReload; also used...
Definition HotReload.h:34
void setRemoteHotDir(std::string dir)
Definition HotReload.cpp:221
int watchTree(std::string root=".")
Recursively watch root and all subdirectories. Returns number of watches added.
Definition HotReload.cpp:155
std::string pollRemoteChange()
Definition HotReload.cpp:420
bool tryReload(std::string path)
Offer a (normalized) path to the registered reloaders; true if any reloaded.
Definition HotReload.cpp:136
HotReload()=default
Module_REG(HotReload)
bool startRemoteSync(std::string url, int pollMs=1000)
Definition HotReload.cpp:377
std::string remoteSyncStatus() const
Definition HotReload.cpp:415
void bind(std::string path, std::string kind="auto")
Pin a path to one reloader kind ("particle" / "tilemap" / "texture" / whatever a linked module regist...
Definition HotReload.cpp:125
static std::string normalizePath(std::string path)
Definition HotReload.cpp:116
Definition File.cpp:17