Newer
Older
DungeonShooting / DungeonShooting_Godot / src / framework / generate / RoomInfo.cs
@小李xl 小李xl on 2 Jan 2023 687 bytes 房间连通功能, 开发中

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<RoomDoor> Doors;

    /// <summary>
    /// 房间生成时所处方向: 0上, 1右, 2下, 3左
    /// </summary>
    public int Direction;
    
    public List<RoomInfo> Next = new List<RoomInfo>();
    
    public RoomInfo Prev;
}