DungeonGraphNode.cs 518 B

123456789101112131415161718192021
  1. using System.Collections.Generic;
  2. namespace DunGen
  3. {
  4. public sealed class DungeonGraphNode : DungeonGraphObject
  5. {
  6. public List<DungeonGraphConnection> Connections = new List<DungeonGraphConnection>();
  7. public Tile Tile { get; private set; }
  8. public DungeonGraphNode(Tile tile)
  9. {
  10. Tile = tile;
  11. }
  12. internal void AddConnection(DungeonGraphConnection connection)
  13. {
  14. Connections.Add(connection);
  15. }
  16. }
  17. }