mirror of
http://47.107.252.169:3000/Roguelite-Game-Developing-Team/Gen_Hack-and-Slash-Roguelite.git
synced 2025-11-20 06:37:12 +08:00
17 lines
367 B
C#
17 lines
367 B
C#
|
|
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;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|