载入中...
搜索中...
未找到
PreparedFile.h
浏览该文件的文档.
1#pragma once
2
3#include <memory>
4#include <string>
5#include "common/Export.h"
6#include "common/Result.h"
7namespace ssq {
8class Class;
9}
10namespace eve::filesystem {
11class FileData;
18[[nodiscard]] EVENGINE_API_FOUNDATION Result<void> requestPreparedFile(const std::string& path);
24[[nodiscard]] EVENGINE_API_FOUNDATION Result<std::shared_ptr<const FileData>> readPreparedFile(const std::string& path,
25 size_t limit);
27void exposePreparedFileBindings(ssq::Class& cls);
28} // namespace eve::filesystem
HSQOBJECT cls
Definition ECS.cpp:21
#define EVENGINE_API_FOUNDATION
每个链接组(link group)各自的导出宏。
Definition Export.h:106
std::string path
Definition PlayHost.cpp:110
Move-only, checked operation results for the common layer.
int limit
Definition TreeMesh.cpp:164
void exposePreparedFileBindings(ssq::Class &cls)
Install game-thread script submission bindings; retains no class borrow.
Result< void > requestPreparedFile(const std::string &path)
Queue immutable file bytes in the canonical ResourceManager cache.
Result< std::shared_ptr< const FileData > > readPreparedFile(const std::string &path, size_t limit)
Join a queued read or synchronously read an immutable file snapshot.
EVEngine ECS 集成层:底层实现使用 sunxfancy/ECS.hpp https://github.com/sunxfancy/ECS.hpp
Definition ECS.h:14