|
| bool | parse (const Common::String &line, ScriptParseContext &parseCtx, Command *&command) override |
| |
Public Member Functions inherited from MutationOfJB::SeqCommandParser |
| void | transition (ScriptParseContext &parseCtx, Command *oldCommand, Command *newCommand, CommandParser *newCommandParser) override |
| |
Public Member Functions inherited from MutationOfJB::CommandParser |
| virtual bool | parse (const Common::String &line, ScriptParseContext &parseCtx, Command *&command)=0 |
| |
| virtual void | transition (ScriptParseContext &parseCtx, Command *oldCommand, Command *newCommand, CommandParser *newCommandParser) |
| |
| virtual void | finish (ScriptParseContext &parseCtx) |
| |
|
Protected Member Functions inherited from MutationOfJB::ChangeCommandParser |
|
bool | parseValueString (const Common::String &valueString, bool changeEntity, uint8 &sceneId, uint8 &entityId, ChangeCommand::ChangeRegister ®, ChangeCommand::ChangeOperation &op, ChangeCommandValue &ccv) |
| |
|
int | parseInteger (const char *val, ChangeCommand::ChangeOperation &op) |
| |
◆ parse()
Parses the specified line and possibly returns a Command instance.
- Parameters
-
| line | Line to parse. |
| parseCtx | Parse context. |
| command | Output parameter for newly created command. |
- Returns
- True if the line has been successfully parsed by this parser, false otherwise.
- Note
- You may return true and set command to nullptr. That means the line has been successfully parsed, but no command is needed.
Implements MutationOfJB::CommandParser.
The documentation for this class was generated from the following file: