mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 21:06:59 -04:00
command line interface can now execute scripts
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1053 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
+13
-3
@@ -10,19 +10,29 @@
|
||||
// ----------------------------------------------------------------------------- : Includes
|
||||
|
||||
#include <util/prec.hpp>
|
||||
#include <data/set.hpp>
|
||||
|
||||
// ----------------------------------------------------------------------------- : Command line interface
|
||||
|
||||
class CLISetInterface {
|
||||
class CLISetInterface : public SetView {
|
||||
public:
|
||||
CLISetInterface();
|
||||
~CLISetInterface();
|
||||
protected:
|
||||
void onAction(const Action&, bool) {}
|
||||
private:
|
||||
bool quiet;
|
||||
bool running;
|
||||
bool quiet; ///< Supress prompts and other non-vital stuff
|
||||
bool running; ///< Still running?
|
||||
|
||||
void run();
|
||||
void showWelcome();
|
||||
void showUsage();
|
||||
void handleCommand(const String& command);
|
||||
void showError(const String& error);
|
||||
|
||||
/// our own context, when no set is loaded
|
||||
Context& getContext();
|
||||
Context* our_context;
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------- : EOF
|
||||
|
||||
Reference in New Issue
Block a user