Automation/Scripts/Script.cs
(开头部分) 16KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Text.RegularExpressions;
namespace ComLib.Automation
{
/// <summary>
/// Represents a script containing commands that can be executed.
/// </summary>
public abstract class Script
{
private DateTime _started;
private DateTime _ended;
private ScriptResult _result;
/// <summary>
/// List of registered functions
/// </summary>
protected IDictionary<string, Func<IList<string>,object>> _functions;
/// <summary>
/// Structure for storing variables.
/// </summary>
protected Scope _scope = new Scope();
/// <summary>
/// Default initialization.
/// </summary>
public Script()
{
Init();
}
/// <summary>
/// Initialize with assembly list.
/// </summary>
/// <param name="assemblies">Delimited list of assemblies.</param>
public Script(string assemblies)
{
Assemblies = assemblies;
Init();
}
/// <summary>
/// The command service for loading the commands.
/// </summary>
protected CommandService _cmdService;
/// <summary>
/// The List of command results.
后面还有 373 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
