DotTiled/src/DotTiled/Model/Properties/FloatProperty.cs
2024-08-24 21:38:40 +02:00

25 lines
504 B
C#

namespace DotTiled.Model;
/// <summary>
/// Represents a float property.
/// </summary>
public class FloatProperty : IProperty<float>
{
/// <inheritdoc/>
public required string Name { get; set; }
/// <inheritdoc/>
public PropertyType Type => PropertyType.Float;
/// <summary>
/// The float value of the property.
/// </summary>
public required float Value { get; set; }
/// <inheritdoc/>
public IProperty Clone() => new FloatProperty
{
Name = Name,
Value = Value
};
}