本文整理汇总了C#中fCraft.World.EnableTNTPhysics方法的典型用法代码示例。如果您正苦于以下问题:C# World.EnableTNTPhysics方法的具体用法?C# World.EnableTNTPhysics怎么用?C# World.EnableTNTPhysics使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类fCraft.World
的用法示例。
在下文中一共展示了World.EnableTNTPhysics方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LoadSettings
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: Start
public static void Start( Player player )
{
Map map = MapGeneratorOld.GenerateEmpty( 64, 128, 16 );
map.Save( "maps/minefield.fcm" );
if ( _world != null ) {
WorldManager.RemoveWorld( _world );
}
WorldManager.AddWorld( Player.Console, "Minefield", map, true );
_map = map;
_world = WorldManager.FindWorldExact( "Minefield" );
SetUpRed();
SetUpMiddleWater();
SetUpGreen();
SetUpMines();
_map.Spawn = new Position( _map.Width / 2, 5, _ground + 3 ).ToVector3I().ToPlayerCoords();
_world.LoadMap();
_world.gameMode = GameMode.MineField;
_world.EnableTNTPhysics( Player.Console, false );
Server.Message( "{0}&S started a game of MineField on world Minefield!", player.ClassyName );
WorldManager.SaveWorldList();
Server.RequestGC();
}