예제 #1
0
파일: Player.cs 프로젝트: zarlant/ACE
        /// <summary>
        /// Called every ~5 seconds for Players
        /// </summary>
        public override void HeartBeat()
        {
            EnchantmentManager.HeartBeat();
            VitalTick();

            QueueNextHeartBeat();
        }
예제 #2
0
파일: Player.cs 프로젝트: Cloudxtreme/ACE-1
        /// <summary>
        /// Called every ~5 seconds for Players
        /// </summary>
        public override void HeartBeat()
        {
            NotifyLandblocks();

            EnchantmentManager.HeartBeat();
            VitalTick();

            QueueNextHeartBeat();
        }
예제 #3
0
        /// <summary>
        /// Called every ~5 seconds for WorldObject base
        /// </summary>
        public virtual void HeartBeat()
        {
            Generator_HeartBeat();

            EmoteManager.HeartBeat();

            EnchantmentManager.HeartBeat();

            SetProperty(PropertyFloat.HeartbeatTimestamp, Time.GetTimestamp());
        }
예제 #4
0
        /// <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;
        }
예제 #5
0
        /// <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);
        }
예제 #6
0
        /// <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;
        }