Files

35 lines
970 B
C#
Raw Permalink Normal View History

2026-05-10 22:29:56 +08:00
using System;
namespace Godot
{
[AttributeUsage(AttributeTargets.Property)]
public sealed class ExportAttribute : Attribute
{
public readonly PropertyHint Hint;
public readonly string HintString;
public readonly PropertyUsageFlags Usage;
public ExportAttribute()
: this(PropertyHint.None, string.Empty, PropertyUsageFlags.PropertyUsageDefault)
{
}
public ExportAttribute(PropertyHint hint)
: this(hint, string.Empty, PropertyUsageFlags.PropertyUsageDefault)
{
}
public ExportAttribute(PropertyHint hint, string hintString)
: this(hint, hintString, PropertyUsageFlags.PropertyUsageDefault)
{
}
public ExportAttribute(PropertyHint hint, string hintString, PropertyUsageFlags usage)
{
Hint = hint;
HintString = hintString ?? string.Empty;
Usage = usage;
}
}
}