/// <summary> /// Called every ~5 seconds for Players /// </summary> public override void HeartBeat() { EnchantmentManager.HeartBeat(); VitalTick(); QueueNextHeartBeat(); }
/// <summary> /// Called every ~5 seconds for Players /// </summary> public override void HeartBeat() { NotifyLandblocks(); EnchantmentManager.HeartBeat(); VitalTick(); QueueNextHeartBeat(); }
/// <summary> /// Called every ~5 seconds for WorldObject base /// </summary> public virtual void HeartBeat() { Generator_HeartBeat(); EmoteManager.HeartBeat(); EnchantmentManager.HeartBeat(); SetProperty(PropertyFloat.HeartbeatTimestamp, Time.GetTimestamp()); }
/// <summary> /// Called every ~5 seconds for WorldObject base /// </summary> public virtual void Heartbeat(double currentUnixTime) { if (EnchantmentManager.HasEnchantments) { EnchantmentManager.HeartBeat(); } SetProperty(PropertyFloat.HeartbeatTimestamp, currentUnixTime); NextHeartbeatTime = currentUnixTime + CachedHeartbeatInterval; }
/// <summary> /// Called every ~5 seconds for WorldObject base /// </summary> public virtual void HeartBeat(double currentUnixTime) { Generator_HeartBeat(); EmoteManager.HeartBeat(); EnchantmentManager.HeartBeat(); cachedHeartbeatTimestamp = currentUnixTime; SetProperty(PropertyFloat.HeartbeatTimestamp, currentUnixTime); }
/// <summary> /// Called every ~5 seconds for WorldObject base /// </summary> public virtual void Heartbeat(double currentUnixTime) { if (EnchantmentManager.HasEnchantments) { EnchantmentManager.HeartBeat(CachedHeartbeatInterval); } if (RemainingLifespan != null) { RemainingLifespan -= (int)CachedHeartbeatInterval; if (RemainingLifespan <= 0) { DeleteObject(); } } SetProperty(PropertyFloat.HeartbeatTimestamp, currentUnixTime); NextHeartbeatTime = currentUnixTime + CachedHeartbeatInterval; }