新增了脚本节点对于集合对象[]下标/key取值的语法支持。修复了加载项目文件时无法加载脚本节点变量名称的问题

This commit is contained in:
fengjiayi
2025-03-15 14:02:12 +08:00
parent 1e09675ef1
commit d8f4a5a2c2
6 changed files with 147 additions and 30 deletions

View File

@@ -11,9 +11,11 @@ namespace Serein.Script.Node
/// </summary>
public class CollectionIndexNode : ASTNode
{
public ASTNode TargetValue { get; }
public ASTNode IndexValue { get; }
public CollectionIndexNode(ASTNode indexValue)
public CollectionIndexNode(ASTNode collectionValue,ASTNode indexValue)
{
this.TargetValue = collectionValue;
this.IndexValue = indexValue;
}
}