Exemple #1
0
 public HackOrder(int from, int to, int endTime, int variable, int conditional, int iterator, int json, int _class, int breakpoint, int type, int knowledge, int ingenyous, int coffe, string newIp)
 {
     From        = from;
     To          = to;
     StartTime   = DateTime.Now;
     EndTime     = StartTime.AddSeconds(endTime);
     ReturnTime  = EndTime.AddSeconds(endTime);
     Variable    = variable;
     Conditional = conditional;
     Iterator    = iterator;
     Json        = json;
     Class       = _class;
     BreakPoint  = breakpoint;
     Type        = type;
     Knowledge   = knowledge;
     Ingenyous   = ingenyous;
     Coffee      = coffe;
     IsReturn    = false;
     NewIp       = newIp;
 }
Exemple #2
0
        public void ApplyJson(JToken buffJson)
        {
            Name = buffJson["n"].Value <string>();
            Id   = buffJson["id"].Value <int>();
            if (buffJson["c"] != null)
            {
                Stacks = buffJson["c"].Value <int>();
            }

            if (buffJson["e"] != null)
            {
                var expires   = buffJson["e"].Value <int>();
                var tickCount = Environment.TickCount;
                var timeLeft  = expires - tickCount;
                EndTime = DateTime.Now.AddMilliseconds(timeLeft);
            }
            if (buffJson["d"] != null)
            {
                StartTime = EndTime.AddSeconds(buffJson["d"].Value <int>() * -1);
            }
        }