Newer
Older
DungeonShooting / DungeonShooting_Godot / src / framework / generate / RoomInfo.cs
@小李xl 小李xl on 3 Jan 2023 582 bytes 房间连通功能, 开发中...
  1.  
  2. using System.Collections.Generic;
  3. using Godot;
  4.  
  5. /// <summary>
  6. /// 房间的数据描述
  7. /// </summary>
  8. public class RoomInfo
  9. {
  10. public RoomInfo(int id)
  11. {
  12. Id = id;
  13. }
  14.  
  15. public int Id;
  16. /// <summary>
  17. /// 房间大小
  18. /// </summary>
  19. public Vector2 Size;
  20.  
  21. /// <summary>
  22. /// 房间位置
  23. /// </summary>
  24. public Vector2 Position;
  25. /// <summary>
  26. /// 门
  27. /// </summary>
  28. public List<RoomDoor> Doors = new List<RoomDoor>();
  29.  
  30. public List<RoomInfo> Next = new List<RoomInfo>();
  31. public RoomInfo Prev;
  32. }