Files
WulaFallenEmpireRW/Source/WulaFallenEmpire/BuildingComp/WULA_BuildToPawn/CompProperties_BuildToPawn.cs
2026-02-27 17:32:08 +08:00

21 lines
659 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// CompProperties_BuildToPawn.cs
using RimWorld;
using Verse;
namespace WulaFallenEmpire
{
public class CompProperties_BuildToPawn : CompProperties
{
public PawnKindDef pawnKindDef; // 要生成的Pawn种类
public int spawnCount = 1; // 生成数量默认为1
public bool inheritFaction = true; // 是否继承建筑的派系
public bool destroyBuilding = false; // 是否销毁建筑
public bool initDrafted = false; // 是否生成时直接设为征召
public CompProperties_BuildToPawn()
{
this.compClass = typeof(CompBuildToPawn);
}
}
}