36 public virtual void Update(
float dt) {
37 bool areSupernaturalCreaturesEnabled =
m_subsystemGameInfo.WorldSettings.AreSupernaturalCreaturesEnabled;
41 if (!areSupernaturalCreaturesEnabled
52 else if (areSupernaturalCreaturesEnabled
81 float value = valuesDictionary.GetValue<
float>(
"Probability");
96 m_componentSpawn.DespawnDuration = 3f;
114 modLoader.OnDespawned(entity, componentSpawn);
121 m_particleSystem.Stopped =
true;
override void Load(ValuesDictionary valuesDictionary, IdToEntityMap idToEntityMap)
virtual void ShapeshiftTo(string entityTemplateName)
string m_dayEntityTemplateName
SubsystemAudio m_subsystemAudio
ComponentHealth m_componentHealth
string m_spawnEntityTemplateName
ComponentBody m_componentBody
ShapeshiftParticleSystem m_particleSystem
SubsystemParticles m_subsystemParticles
string m_nightEntityTemplateName
ComponentSpawn m_componentSpawn
SubsystemGameInfo m_subsystemGameInfo
virtual void ComponentSpawn_Despawned(ComponentSpawn componentSpawn)
SubsystemSky m_subsystemSky
virtual void Update(float dt)
static Entity CreateEntity(Project project, SpawnEntityData spawnEntityData, bool throwIfNotFound)
static ValuesDictionary FindEntityValuesDictionary(string entityTemplateName, bool throwIfNotFound)
ValuesDictionary ValuesDictionary
Component FindComponent(Type type, string name, bool throwOnError)
static void HookAction(string HookName, Func< ModLoader, bool > action)
执行Hook