class DebugScript
{
public:
+ DebugScript() : inp(), currentAction(), m_actions(), m_labels(), m_index(0) {}
+ virtual ~DebugScript() {}
void Load(const char *filename)
{
inp.open(filename);
AT_EnableLazyRendering,
AT_DisableLazyRendering,
AT_LoadSVG,
+ AT_Label,
+ AT_Goto,
+ AT_Debug,
AT_Quit
};
Real z;
int iz;
int loops;
- std::string filename;
- Action() : type(AT_WaitFrame), x(0), y(0), ix(0), iy(0), z(0), loops(0) {}
+ std::string textargs;
+ Action() : type(AT_WaitFrame), x(0), y(0), ix(0), iy(0), z(0), loops(0), textargs("") {}
};
std::ifstream inp;
Action currentAction;
-
+ std::vector<Action> m_actions;
+ std::map<std::string, int> m_labels;
+ unsigned m_index;
void ParseAction();
};