mirror of
https://github.com/dcronqvist/DotTiled.git
synced 2025-05-08 15:16:04 +03:00
25 lines
504 B
C#
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
|
|
};
|
|
}
|