123123
This commit is contained in:
@@ -3,22 +3,23 @@
|
||||
namespace ZelWiki.Engine.Library.Interfaces
|
||||
{
|
||||
/// <summary>
|
||||
/// Base function handler for standard, post-processing, scoped and processing-instruction functions.
|
||||
/// 处理函数.
|
||||
/// </summary>
|
||||
public interface IFunctionHandler
|
||||
{
|
||||
/// <summary>
|
||||
/// Returns a collection of function prototypes.
|
||||
/// 回调.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public FunctionPrototypeCollection Prototypes { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Called to handle function calls when proper prototypes are matched.
|
||||
/// 当匹配到合适的原型时,调用以处理函数调用
|
||||
/// </summary>
|
||||
/// <param name="state">Reference to the wiki state object</param>
|
||||
/// <param name="function">The parsed function call and all its parameters and their values.</param>
|
||||
/// <param name="scopeBody">For scope functions, this is the text that the function is designed to affect.</param>
|
||||
/// <param name="state"></param>
|
||||
/// <param name="function"></param>
|
||||
/// <param name="scopeBody"></param>
|
||||
/// <returns></returns>
|
||||
public HandlerResult Handle(IZelEngineState state, FunctionCall function, string? scopeBody = null);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user