room positioning and door generator

This commit is contained in:
Marco 2025-04-11 18:39:39 +02:00
commit 5bfffc22ad
19 changed files with 571 additions and 17 deletions

View file

@ -1,4 +1,5 @@
using Godot;
using Cirno.Scripts.Enums;
using Godot;
using Godot.Collections;
namespace Cirno.Scripts.Resources.Roguelite;
@ -7,8 +8,11 @@ namespace Cirno.Scripts.Resources.Roguelite;
public partial class RogueliteRoomResource : Resource
{
[Export] public StringName RoomName { get; set; }
[Export] public RoomType Type { get; set; } = RoomType.Regular;
[Export] public StringName ScenePath { get; set; }
[Export] public Vector2 Size { get; set; } = new(20, 10);
[Export] public Vector2I Size { get; set; } = new(1, 1);
[Export] public Array<Vector2I> DoorGridPositions { get; set; } = [];
[Export] public Array<EnemyResource> SpawnableEnemies { get; set; }
}