320cc7422c
- As verbs for the task they do - Suffixed with Task instead of Request, to avoid confusion with network stuff
28 lines
633 B
C++
28 lines
633 B
C++
#ifndef LOAD_ALL_BLOCKS_DATA_TASK_H
|
|
#define LOAD_ALL_BLOCKS_DATA_TASK_H
|
|
|
|
#include "../streams/voxel_stream.h"
|
|
#include "../util/tasks/threaded_task.h"
|
|
#include "streaming_dependency.h"
|
|
//#include <memory>
|
|
|
|
namespace zylann::voxel {
|
|
|
|
class LoadAllBlocksDataTask : public IThreadedTask {
|
|
public:
|
|
void run(ThreadedTaskContext ctx) override;
|
|
int get_priority() override;
|
|
bool is_cancelled() override;
|
|
void apply_result() override;
|
|
|
|
uint32_t volume_id;
|
|
std::shared_ptr<StreamingDependency> stream_dependency;
|
|
|
|
private:
|
|
VoxelStream::FullLoadingResult _result;
|
|
};
|
|
|
|
} // namespace zylann::voxel
|
|
|
|
#endif // LOAD_ALL_BLOCKS_DATA_TASK_H
|