35 lines
679 B
C#
35 lines
679 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Xml.Serialization;
|
|
|
|
namespace TransportGame.Utils
|
|
{
|
|
public class Range
|
|
{
|
|
[XmlAttribute("min")]
|
|
public float Minimum { get; set; }
|
|
|
|
[XmlAttribute("max")]
|
|
public float Maximum { get; set; }
|
|
|
|
public Range()
|
|
{
|
|
Minimum = 0;
|
|
Maximum = 1;
|
|
}
|
|
|
|
public Range(float min, float max)
|
|
{
|
|
Minimum = min;
|
|
Maximum = max;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return String.Format("[{0}, {1}]", Minimum, Maximum);
|
|
}
|
|
}
|
|
}
|