help: show defined action chains
This commit is contained in:
@@ -88,9 +88,9 @@ extern size_t FooterStartY;
|
||||
|
||||
struct BaseAction
|
||||
{
|
||||
BaseAction(Type type_, const char *name_): m_type(type_), m_name(name_) { }
|
||||
BaseAction(Type type_, const char *name_): m_name(name_), m_type(type_) { }
|
||||
|
||||
const char *name() const { return m_name; }
|
||||
const std::string &name() const { return m_name; }
|
||||
Type type() const { return m_type; }
|
||||
|
||||
virtual bool canBeRun() { return true; }
|
||||
@@ -104,12 +104,14 @@ struct BaseAction
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
protected:
|
||||
std::string m_name;
|
||||
|
||||
private:
|
||||
virtual void run() = 0;
|
||||
|
||||
Type m_type;
|
||||
const char *m_name;
|
||||
};
|
||||
|
||||
BaseAction &get(Type at);
|
||||
|
||||
Reference in New Issue
Block a user