|
Rebornbuddy
|
A composite node that logs a message and returns failure status. More...
Public Member Functions | |
| FailLogger (ValueRetriever< string > data, LogLevel level) | |
| Creates a new FailLogger that logs the specified message at the given log level. | |
| FailLogger (ValueRetriever< string > data) | |
| Initializes a new instance of the FailLogger class with the specified data retriever. | |
Protected Member Functions | |
| override IEnumerable< RunStatus > | Execute (object context) |
| Executes this node, logging the message and returning failure. | |
A composite node that logs a message and returns failure status.
| ff14bot.Behavior.FailLogger.FailLogger | ( | ValueRetriever< string > | data, |
| LogLevel | level ) |
Creates a new FailLogger that logs the specified message at the given log level.
| data | The message to log |
| level | The log level to use |
| ff14bot.Behavior.FailLogger.FailLogger | ( | ValueRetriever< string > | data | ) |
Initializes a new instance of the FailLogger class with the specified data retriever.
| data | A function that retrieves the message to be logged when the node fails. |
This constructor sets the default log level to LogLevel.Normal.
|
protected |
Executes this node, logging the message and returning failure.
| context | The context to execute with |