Beispiel #1
0
 private void CheckForBoosters()
 {
     if (LastTimeCheckedBoosters.AddMilliseconds(250) < DateTime.Now)
     {
         // TODO: Get boosters from mysql
         Booster.CalculateTotalBoost(this);
         LastTimeCheckedBoosters = DateTime.Now;
     }
 }
Beispiel #2
0
        private void CheckForBoosters()
        {
            if (LastTimeCheckedBoosters.AddMilliseconds(250) < DateTime.Now)
            {
                //var rangePlayers = Range.Entities.Where(x => x.Value is Player);
                //foreach (var rangePlayer in rangePlayers)
                //{
                //    var _rangePlayer = rangePlayer.Value as Player;
                //    if (_rangePlayer.Boosters.Count > 0)
                //    {

                //    }
                //}
                Booster.CalculateTotalBoost(this);
                LastTimeCheckedBoosters = DateTime.Now;
            }
        }