```
feat(WULA_SkyfallerCaller): 添加自动召唤功能并优化调用逻辑 新增自动召唤天空坠落物的功能,包括相关配置项和世界组件支持。 默认启用自动召唤,延迟时间为10秒(600 ticks),可通过配置调整。 增加控制自动召唤的开关按钮,提供玩家手动启停能力。 优化召唤逻辑以区分手动与自动调用,并正确应用各自的延迟时间。 引入 `WulaSkyfallerWorldComponent` 用于管理全局自动召唤状态。 ```
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user