Add Scene::validate(), meant to be overriden by each scene to perform self-validation.
diff --git a/src/scene.h b/src/scene.h
index 36b8f4e..d314d33 100644
--- a/src/scene.h
+++ b/src/scene.h
@@ -51,6 +51,12 @@
std::string description;
};
+ enum ValidationResult {
+ ValidationFailure,
+ ValidationSuccess,
+ ValidationUnknown
+ };
+
// load() and unload() handle option-independent configuration.
// It should be safe to call these only once per program execution,
// although you may choose to do so more times to better manage
@@ -82,6 +88,8 @@
return dummy_scene;
}
+ virtual ValidationResult validate() { return ValidationUnknown; }
+
protected:
Scene(Screen &pScreen, const std::string &name);
std::string construct_title(const std::string &title);