57 lines
993 B
C#
57 lines
993 B
C#
using Godot;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Rokojori
|
|
{
|
|
[Tool]
|
|
[GlobalClass, Icon("res://addons/rokojori_action_library/Icons/Flash.svg") ]
|
|
public partial class FlashPreset:Resource
|
|
{
|
|
|
|
[Export]
|
|
public GradientGenerator colorGradient;
|
|
|
|
[Export]
|
|
public Curve opacityCurve;
|
|
|
|
[Export]
|
|
public Duration duration;
|
|
|
|
[Export]
|
|
public FlashType flashType;
|
|
|
|
public enum PositionMode
|
|
{
|
|
World_Origin,
|
|
Origin_Of_First,
|
|
Center_Of_All,
|
|
Position_Offset
|
|
}
|
|
|
|
[ExportGroup("Light", "light")]
|
|
[Export]
|
|
public bool lightEnabled = false;
|
|
|
|
[Export]
|
|
public PositionMode lightPosition = PositionMode.Origin_Of_First;
|
|
|
|
[Export]
|
|
public Vector3 lightPositionOffset = Vector3.Zero;
|
|
|
|
[Export]
|
|
public float lightRange = 5;
|
|
|
|
[Export]
|
|
public float lightAttenutation = 2f;
|
|
|
|
[Export]
|
|
public float lightEnergy = 2f;
|
|
|
|
[Export]
|
|
public bool lightShadowCasting = false;
|
|
|
|
|
|
|
|
|
|
}
|
|
} |