Add Load method to editor classes and update corresponding headers

This commit is contained in:
scawful
2025-03-08 10:07:18 -05:00
parent 9919677e43
commit 412e617ce7
22 changed files with 95 additions and 45 deletions

View File

@@ -23,6 +23,10 @@ using ImGui::Text;
void SpriteEditor::Initialize() {}
absl::Status SpriteEditor::Load() {
return absl::OkStatus();
}
absl::Status SpriteEditor::Update() {
if (rom()->is_loaded() && !sheets_loaded_) {
// Load the values for current_sheets_ array

View File

@@ -38,6 +38,7 @@ class SpriteEditor : public SharedRom, public Editor {
SpriteEditor() { type_ = EditorType::kSprite; }
void Initialize() override;
absl::Status Load() override;
absl::Status Update() override;
absl::Status Undo() override { return absl::UnimplementedError("Undo"); }
absl::Status Redo() override { return absl::UnimplementedError("Redo"); }