Esempio n. 1
0
 public Check(int b, string extraInfo = "", MCGalaxy.Player placer = null)
 {
     this.b = b;
     time = 0;
     this.extraInfo = extraInfo;
     p = placer;
 }
Esempio n. 2
0
 public void AddCheck(int b, string extraInfo = "", bool overRide = false, MCGalaxy.Player Placer = null)
 {
     try
     {
         if (!ListCheck.Exists(Check => Check.b == b))
         {
             ListCheck.Add(new Check(b, extraInfo, Placer)); //Adds block to list to be updated
         }
         else
         {
             if (overRide)
             {
                 foreach (Check C2 in ListCheck)
                 {
                     if (C2.b == b)
                     {
                         C2.extraInfo = extraInfo; //Dont need to check physics here because if the list is active, then physics is active :)
                         return;
                     }
                 }
             }
         }
         if (!physicssate && physics > 0)
             StartPhysics();
     }
     catch
     {
         //s.Log("Warning-PhysicsCheck");
         //ListCheck.Add(new Check(b));    //Lousy back up plan
     }
 }