EnablePlantPhysics() публичный Метод

public EnablePlantPhysics ( Player player, bool announce ) : void
player Player
announce bool
Результат void
Пример #1
0
        public static void LoadSettings(XElement el, World world)
        {
            XAttribute temp;

            if ((temp = el.Attribute("plantPhysics")) != null)
            {
                bool isPhy;
                if (bool.TryParse(temp.Value, out isPhy))
                {
                    world.EnablePlantPhysics(Player.Console, false);
                }
            }
            if ((temp = el.Attribute("tntPhysics")) != null)
            {
                bool isPhy;
                if (bool.TryParse(temp.Value, out isPhy))
                {
                    world.EnableTNTPhysics(Player.Console, false);
                }
            }
            if ((temp = el.Attribute("waterPhysics")) != null)
            {
                bool isPhy;
                if (bool.TryParse(temp.Value, out isPhy))
                {
                    world.EnableWaterPhysics(Player.Console, false);
                }
            }
        }
Пример #2
0
 public static void LoadSettings(XElement el, World world)
 {
     XAttribute temp;
     if ((temp = el.Attribute("plantPhysics")) != null)
     {
         bool isPhy;
         if (bool.TryParse(temp.Value, out isPhy))
         {
             world.EnablePlantPhysics(Player.Console, false);
         }
     }
     if ((temp = el.Attribute("tntPhysics")) != null)
     {
         bool isPhy;
         if (bool.TryParse(temp.Value, out isPhy))
         {
             world.EnableTNTPhysics(Player.Console, false);
         }
     }
     if ((temp = el.Attribute("waterPhysics")) != null)
     {
         bool isPhy;
         if (bool.TryParse(temp.Value, out isPhy))
         {
             world.EnableWaterPhysics(Player.Console, false);
         }
     }
 }