Namespace: DeltaEngine.GameLogic.Tests
Assembly: DeltaEngine.GameLogic.Tests (in DeltaEngine.GameLogic.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.GameLogic.Tests (in DeltaEngine.GameLogic.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test, CloseAfterFirstFrame] public void TestGetAllTilesOfType() { var level = new MockLevel(new Size(2)); level.SetTile(new Vector2D(0, 0), LevelTileType.SpawnPoint); level.SetTile(new Vector2D(0, 1), LevelTileType.SpawnPoint); level.SetTile(new Vector2D(1, 0), LevelTileType.ExitPoint); Assert.AreEqual(2, level.GetAllTilesOfType(LevelTileType.SpawnPoint).Count); }
See Also