(client) feat:实现健康状态定义,实现事件定义

This commit is contained in:
m0_75251201
2025-08-27 22:39:34 +08:00
parent f4ce4fcf1f
commit 9713ad9129
22 changed files with 313 additions and 32 deletions

View File

@ -0,0 +1,17 @@
using System;
using System.Xml.Linq;
namespace Data
{
public class HediffCompDef:Define
{
public Type compClass;
public override bool Init(XElement xmlDef)
{
base.Init(xmlDef);
var name = xmlDef.Attribute("class")?.Value??"";
compClass=Type.GetType(name);
return true;
}
}
}