2024-12-20 23:39:29 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Serein.Script.Node
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 动态类型定义
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class ClassTypeDefinitionNode : ASTNode
|
|
|
|
|
|
{
|
2024-12-21 20:47:31 +08:00
|
|
|
|
public bool IsOverlay { get; set; }
|
2024-12-20 23:39:29 +08:00
|
|
|
|
public string ClassName { get; }
|
|
|
|
|
|
public Dictionary<string, Type> Fields { get; }
|
|
|
|
|
|
|
2024-12-21 20:47:31 +08:00
|
|
|
|
public ClassTypeDefinitionNode(Dictionary<string, Type> fields, string className, bool isOverlay)
|
2024-12-20 23:39:29 +08:00
|
|
|
|
{
|
|
|
|
|
|
this.Fields = fields;
|
|
|
|
|
|
this.ClassName = className;
|
2024-12-21 20:47:31 +08:00
|
|
|
|
IsOverlay = isOverlay;
|
2024-12-20 23:39:29 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|