public EnableWaterPhysics ( |
||
player | ||
announce | bool | |
Результат | void |
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); } } }
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); } } }