New maps and chests

This commit is contained in:
Marco 2025-04-29 12:12:47 +02:00
commit 26a0f51168
28 changed files with 645 additions and 233 deletions

View file

@ -0,0 +1,31 @@
using Godot;
namespace Cirno.Scripts.Actors;
[Tool]
public partial class ChestMarker : FeatureMarker
{
private Texture2D _markerTexture;
[Export]
public Texture2D MarkerTexture
{
get => _markerTexture;
set
{
_markerTexture = value;
if (Engine.IsEditorHint())
{
QueueRedraw();
}
}
}
public override void _Draw()
{
if (!Engine.IsEditorHint()) return;
if (MarkerTexture is null) return;
DrawTexture(MarkerTexture, -new Vector2(MarkerTexture.GetWidth() / 2f, MarkerTexture.GetHeight() / 2f));
}
}

View file

@ -0,0 +1 @@
uid://umyqgyxjiaig

View file

@ -0,0 +1,12 @@
using Godot;
namespace Cirno.Scripts.Actors;
[Tool]
public partial class FeatureMarker : Marker2D
{
[Export] public bool OverrideChance { get; set; } = false;
[Export(PropertyHint.None, "suffix:%")]
public double SpawnChance { get; set; } = 15d;
}

View file

@ -0,0 +1 @@
uid://cutqpv1k3bt2h