2026-01-02 16:06:26 +01:00
|
|
|
|
using Godot;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Cirno.Scripts.Actors._3D;
|
|
|
|
|
|
|
|
|
|
|
|
[GlobalClass]
|
2026-01-31 10:23:10 +01:00
|
|
|
|
[Tool]
|
2026-01-02 16:06:26 +01:00
|
|
|
|
public partial class LaserConfig : Resource
|
|
|
|
|
|
{
|
|
|
|
|
|
[Export] public float MaxLength = 50f;
|
|
|
|
|
|
|
|
|
|
|
|
[Export] public float WarningRadius = 0.05f;
|
|
|
|
|
|
[Export] public float DamageRadius = 0.3f;
|
|
|
|
|
|
|
|
|
|
|
|
[Export] public float WarningDuration = 0.5f;
|
|
|
|
|
|
[Export] public float ExpansionDelay = 0.0f;
|
|
|
|
|
|
[Export] public float ExpansionDuration = 0.2f;
|
|
|
|
|
|
|
|
|
|
|
|
// If < 0 → infinite
|
|
|
|
|
|
[Export] public float ActiveDuration = 1.0f;
|
|
|
|
|
|
|
|
|
|
|
|
[Export(PropertyHint.Layers3DPhysics)]
|
|
|
|
|
|
public uint GeometryLayer = 1 << 0;
|
|
|
|
|
|
|
|
|
|
|
|
[Export(PropertyHint.Layers3DPhysics)]
|
|
|
|
|
|
public uint Damagelayer = 2 << 0;
|
|
|
|
|
|
}
|