cirnogodot/Scripts/Actors/3D/LaserConfig.cs

25 lines
657 B
C#
Raw Normal View History

2026-01-02 16:06:26 +01:00
using Godot;
namespace Cirno.Scripts.Actors._3D;
[GlobalClass]
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;
}