Newer
Older
DungeonShooting / DungeonShooting_Godot / src / framework / map / DungeonRoomInfo.cs
  1.  
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text.Json.Serialization;
  5.  
  6. /// <summary>
  7. /// 房间配置数据
  8. /// </summary>
  9. [Serializable]
  10. public class DungeonRoomInfo
  11. {
  12. /// <summary>
  13. /// 房间位置, 在tile坐标系中的位置, 不是坐标
  14. /// </summary>
  15. [JsonInclude]
  16. public SerializeVector2 Position;
  17. /// <summary>
  18. /// 房间大小, 在tile坐标系中占用的格子, 不是像素大小
  19. /// </summary>
  20. [JsonInclude]
  21. public SerializeVector2 Size;
  22. /// <summary>
  23. /// 房间连通门
  24. /// </summary>
  25. [JsonInclude]
  26. public List<DoorAreaInfo> DoorAreaInfos;
  27. }