diff --git a/Serein.Script/ScriptInvokeContext.cs b/Serein.Script/ScriptInvokeContext.cs
index ce98d2d..667278b 100644
--- a/Serein.Script/ScriptInvokeContext.cs
+++ b/Serein.Script/ScriptInvokeContext.cs
@@ -4,10 +4,21 @@ namespace Serein.Script
{
public class ScriptInvokeContext : IScriptInvokeContext
{
+ ///
+ /// 脚本使用流程上下文
+ ///
+ ///
public ScriptInvokeContext(IDynamicContext dynamicContext)
{
FlowContext = dynamicContext;
}
+
+ ///
+ /// 不使用流程上下文
+ ///
+ public ScriptInvokeContext()
+ {
+ }
public IDynamicContext FlowContext{ get; }
diff --git a/Serein.Script/SereinScript.cs b/Serein.Script/SereinScript.cs
index d5283c4..dd8dbe2 100644
--- a/Serein.Script/SereinScript.cs
+++ b/Serein.Script/SereinScript.cs
@@ -1,4 +1,5 @@
using Serein.Library;
+using Serein.Library.Api;
using Serein.Script.Node;
using Serein.Script.Node.FlowControl;
using System;
@@ -15,6 +16,9 @@ namespace Serein.Script
public class SereinScript
{
+
+
+
///
/// 类型分析
///
@@ -24,6 +28,21 @@ namespace Serein.Script
private ProgramNode? programNode;
+
+ public static Task