refactor: consolidate engine architecture contracts

This commit is contained in:
西风逍遥游 committed 2026-08-27 12:54:48 +08:00
1 parent 4e8deb1180
commit a8b8e83128
677 files changed
+79854 -9670

No files matched your search

+9
View File
@@ -97,6 +97,15 @@ public:
return isModelPath(eve::ResourceManager::pathOfKey(normPath));
}
/**
* @brief Participate in the canonical cache reload protocol.
* @return `false`; ResourceManager reloads the owned CPU ModelData and
* keeps its identity stable for existing holders.
*/
eve::Result<bool> reload(const std::string &) override {
return eve::Result<bool>::success(false);
}
eve::Resource *load(const std::string &key) override {
const std::string path = eve::ResourceManager::pathOfKey(key);
if (!isModelPath(path)) return nullptr;