1#ifndef YAZE_APP_EDITOR_OVERWORLD_PROJECT_GRAPHICS_IMPORT_COMMAND_H_
2#define YAZE_APP_EDITOR_OVERWORLD_PROJECT_GRAPHICS_IMPORT_COMMAND_H_
9#include "absl/status/status.h"
10#include "absl/status/statusor.h"
16class ProjectGraphicsSource;
22 std::function<absl::StatusOr<std::vector<uint8_t>>()>
read;
23 std::function<absl::Status(
const std::vector<uint8_t>&)>
replace;
41 std::unique_ptr<UndoAction> prepared_definitions,
43 std::string description =
"Import project graphics");
49 std::shared_ptr<ProjectGraphicsSource> source,
52 std::unique_ptr<UndoAction> prepared_definitions,
54 std::string description =
"Import project graphics");
Editors are the view controllers for the application.
std::function< absl::Status()> ProjectGraphicsImportRefresh
std::function< absl::StatusOr< std::string >(const ProjectGraphicsSource &)> ProjectGraphicsImportResourceResolver
absl::StatusOr< std::unique_ptr< UndoAction > > CreateProjectGraphicsImportAction(ProjectGraphicsImportResourceCallbacks resource, const ProjectGraphicsImportPlan &plan, std::unique_ptr< UndoAction > prepared_definitions, const zelda3::GameData *owner, ProjectGraphicsImportRefresh refresh, std::string description)
std::function< absl::StatusOr< std::vector< uint8_t > >()> read
std::function< absl::Status(const std::vector< uint8_t > &) replace)