godot_voxel/server/load_all_blocks_data_task.h
Marc Gilleron 320cc7422c Rename tasks:
- As verbs for the task they do
- Suffixed with Task instead of Request,
  to avoid confusion with network stuff
2022-02-06 13:45:51 +00:00

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