Rebornbuddy
Loading...
Searching...
No Matches
ff14bot.Behavior.SucceedLogger Class Reference

A composite node that logs a message and returns success status. More...

Inheritance diagram for ff14bot.Behavior.SucceedLogger:

Public Member Functions

 SucceedLogger (ValueRetriever< string > data, LogLevel level)
 Creates a new SucceedLogger that logs the specified message at the given log level.
 SucceedLogger (ValueRetriever< string > data)
 Creates a new SucceedLogger that logs the specified message at normal log level.

Protected Member Functions

override IEnumerable< RunStatus > Execute (object context)
 Executes this node, logging the message and returning success.

Detailed Description

A composite node that logs a message and returns success status.

Constructor & Destructor Documentation

◆ SucceedLogger() [1/2]

ff14bot.Behavior.SucceedLogger.SucceedLogger ( ValueRetriever< string > data,
LogLevel level )

Creates a new SucceedLogger that logs the specified message at the given log level.

Parameters
dataThe message to log
levelThe log level to use

◆ SucceedLogger() [2/2]

ff14bot.Behavior.SucceedLogger.SucceedLogger ( ValueRetriever< string > data)

Creates a new SucceedLogger that logs the specified message at normal log level.

Parameters
dataThe message to log

Member Function Documentation

◆ Execute()

override IEnumerable< RunStatus > ff14bot.Behavior.SucceedLogger.Execute ( object context)
protected

Executes this node, logging the message and returning success.

Parameters
contextThe context to execute with
Returns
Always returns RunStatus.Success