]> git.localhorst.tv Git - blank.git/blobdiff - src/shared/ProgressState.hpp
moved common stated to shared dir
[blank.git] / src / shared / ProgressState.hpp
diff --git a/src/shared/ProgressState.hpp b/src/shared/ProgressState.hpp
new file mode 100644 (file)
index 0000000..8bfea0e
--- /dev/null
@@ -0,0 +1,32 @@
+#ifndef BLANK_SHARED_PROGRESSSTATE_HPP_
+#define BLANK_SHARED_PROGRESSSTATE_HPP_
+
+#include "../app/State.hpp"
+
+#include "../ui/Progress.hpp"
+
+
+namespace blank {
+
+class Environment;
+
+class ProgressState
+: public State {
+
+public:
+       ProgressState(Environment &env, const char *tpl);
+
+       void SetProgress(int value, int total);
+
+       void Handle(const SDL_Event &) override;
+       void Render(Viewport &) override;
+
+private:
+       Environment &env;
+       Progress progress;
+
+};
+
+}
+
+#endif