Exemple #1
0
 public void DisablePlantPhysics(Player player, bool announce)
 {
     if (null == _plantTask)
     {
         player.Message("&WAlready disabled on this world");
         return;
     }
     _plantTask.Deleted = true;
     _plantTask         = null;
     CheckIfToStopPhysics();
     plantPhysics = false;
     if (announce)
     {
         Server.Message("{0}&S disabled Plant Physics on {1}", player.ClassyName, ClassyName);
     }
 }
Exemple #2
0
 public void EnablePlantPhysics(Player player, bool announce)
 {
     if (null != _plantTask)
     {
         player.Message("&WAlready enabled on this world");
         return;
     }
     plantPhysics = true;
     CheckIfPhysicsStarted();
     _plantTask = new GrassTask(this);
     AddPhysicsTask(_plantTask, 0);
     if (announce)
     {
         Server.Message("{0}&S enabled Plant Physics on {1}", player.ClassyName, ClassyName);
     }
 }