初次提交

This commit is contained in:
m0_75251201
2025-07-12 11:30:22 +08:00
commit 7700703099
1156 changed files with 21532 additions and 0 deletions

View File

@ -0,0 +1,24 @@
using System.Collections.Generic;
using System.Xml.Linq;
namespace Cosmobox.Def
{
public partial class DrawNode : Define
{
public string NodeName { get; set; }
public List<DrawNode> Children { get; set; } = [];
public override bool Init(XElement xmlDef)
{
base.Init(xmlDef);
NodeName = xmlDef.Element("NodeName")?.Value;
foreach (var childNode in xmlDef.Elements("DrawNode"))
{
DrawNode child = new DrawNode();
child.Init(childNode);
Children.Add(child);
}
return true;
}
}
}