41 lines
829 B
C#
41 lines
829 B
C#
using System;
|
|
|
|
namespace NWH.Common.Vehicles
|
|
{
|
|
[AttributeUsage(AttributeTargets.Field)]
|
|
public partial class ShowInSettings : Attribute
|
|
{
|
|
public string name;
|
|
public float min;
|
|
public float max = 1f;
|
|
public float step = 0.1f;
|
|
|
|
|
|
public ShowInSettings(string name)
|
|
{
|
|
this.name = name;
|
|
}
|
|
|
|
|
|
public ShowInSettings(float min, float max, float step = 0.1f)
|
|
{
|
|
this.min = min;
|
|
this.max = max;
|
|
this.step = step;
|
|
}
|
|
|
|
|
|
public ShowInSettings(string name, float min, float max, float step = 0.1f)
|
|
{
|
|
this.name = name;
|
|
this.min = min;
|
|
this.max = max;
|
|
this.step = step;
|
|
}
|
|
|
|
|
|
public ShowInSettings()
|
|
{
|
|
}
|
|
}
|
|
} |