コード例 #1
0
        public void TestRandomRoomsGenSize()
        {
            var map = new ArrayMap <bool>(40, 40);

            Generators.RandomRoomsGenerator.Generate(map, 30, 4, 6, 10);

            Console.WriteLine(map.ToString(b => b ? "." : "#"));
        }
コード例 #2
0
ファイル: FleeMap.cs プロジェクト: HorriganFrank/GoRogue
 /// <summary>
 /// Returns the flee-map values represented as a 2D grid-style string.
 /// </summary>
 /// <returns>A string representing the flee map values.</returns>
 public override string ToString() =>
 _goalMap.ToString(val => val.HasValue ? val.Value.ToString() : "null");