Auxilium_Server.Program.AwardPoints C# (CSharp) Метод

AwardPoints() статический приватный Метод

static private AwardPoints ( Client c ) : void
c Auxilium_Server.Classes.Client
Результат void
        static void AwardPoints(Client c)
        {
            if ((DateTime.Now - c.Value.LastAction).TotalMinutes >= 3)
            {
                c.Value.Idle = true;
            }

            //2812000 at 4.65 points per second should require about 1 week of active time to max rank.
            double Points = (DateTime.Now - c.Value.LastPayout).TotalSeconds * 4.65;
            c.Value.LastPayout = DateTime.Now;

            if (c.Value.Idle)
            {
                if (c.Value.Rank < 29)
                    c.Value.AddPoints((int)(Points * 1.0));
            }
            else
            {
                c.Value.AddPoints((int)Points);
            }
        }