Newer
Older
DungeonShooting / DungeonShooting_Godot / src / framework / generate / RoomInfo.cs

using System.Collections.Generic;
using Godot;

/// <summary>
/// 房间的数据描述
/// </summary>
public class RoomInfo
{
    public RoomInfo(int id)
    {
        Id = id;
    }

    public int Id;
    
    /// <summary>
    /// 房间大小
    /// </summary>
    public Vector2 Size;

    /// <summary>
    /// 房间位置
    /// </summary>
    public Vector2 Position;
    
    /// <summary>
    /// 门
    /// </summary>
    public List<RoomDoorInfo> Doors = new List<RoomDoorInfo>();

    /// <summary>
    /// 下一个房间
    /// </summary>
    public List<RoomInfo> Next = new List<RoomInfo>();
    
    /// <summary>
    /// 上一个房间
    /// </summary>
    public RoomInfo Prev;
}