(client) fix:修复定义链接不正确赋值的问题

This commit is contained in:
m0_75251201
2025-07-16 15:57:13 +08:00
parent ffeb65ba6b
commit 41c20a498d
35 changed files with 85 additions and 63 deletions

View File

@ -8,13 +8,15 @@ using System.Xml.Linq;
namespace Data
{
public abstract class Define
public class Define
{
public string defName;
public string description;
public string label;
public string packID;
public bool isReferene=false;
/// <summary>
/// 初始化方法,根据传入的 XML 元素 (<paramref name="xmlDef" />) 进行处理。
/// </summary>
@ -112,18 +114,5 @@ namespace Data
return string.Join(Environment.NewLine, text.Split('\n').Select(line => prefix + line));
}
}
public class DefineReference : Define
{
public Define def;
public string className;
public string fieldName;
public DefineReference(string className, string defName, string fieldName)
{
this.defName = defName;
this.className = className;
this.fieldName = fieldName;
}
}
}