Files
WulaFallenEmpireRW/Source/WulaFallenEmpire/BuildingComp/WULA_SkyfallerCaller/WulaSkyfallerWorldComponent.cs
ProjectKoi-Kalo\Kalo 29e6be7bb0 ```
feat(WULA_SkyfallerCaller): 添加自动召唤功能并优化调用逻辑

新增自动召唤天空坠落物的功能,包括相关配置项和世界组件支持。
默认启用自动召唤,延迟时间为10秒(600 ticks),可通过配置调整。
增加控制自动召唤的开关按钮,提供玩家手动启停能力。
优化召唤逻辑以区分手动与自动调用,并正确应用各自的延迟时间。
引入 `WulaSkyfallerWorldComponent` 用于管理全局自动召唤状态。
```
2025-11-25 18:44:33 +08:00

21 lines
498 B
C#
Raw Permalink 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.
using RimWorld.Planet;
using Verse;
namespace WulaFallenEmpire
{
public class WulaSkyfallerWorldComponent : WorldComponent
{
// 默认为 true即自动召唤
public bool AutoCallSkyfaller = true;
public WulaSkyfallerWorldComponent(World world) : base(world)
{
}
public override void ExposeData()
{
base.ExposeData();
Scribe_Values.Look(ref AutoCallSkyfaller, "AutoCallSkyfaller", true);
}
}
}