mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
26 lines
664 B
C#
26 lines
664 B
C#
using Godot;
|
|
|
|
namespace Cirno.Scripts.Actors._3D;
|
|
|
|
[GlobalClass]
|
|
[Tool]
|
|
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;
|
|
}
|