Namespace: DeltaEngine.GameLogic
Assembly: DeltaEngine.GameLogic (in DeltaEngine.GameLogic.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.GameLogic.Tests.LevelTests
1 unit tests call DeltaEngine.GameLogic.Level.GetAllTilesOfType(DeltaEngine.GameLogic.LevelTileType)
Assembly: DeltaEngine.GameLogic (in DeltaEngine.GameLogic.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Parameters
- tileType
- Type: DeltaEngine.GameLogic LevelTileType
Return Value
Type: List Vector2DRemarks
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