Convert datatypes to classes instead of structs.

This commit is contained in:
CloneTrooper1019
2019-02-01 12:40:39 -06:00
parent 795018e243
commit f7184eb8f8
35 changed files with 182 additions and 169 deletions

View File

@ -2,12 +2,12 @@
namespace RobloxFiles.DataTypes
{
public struct NumberRange
public class NumberRange
{
public readonly float Min;
public readonly float Max;
public NumberRange(float min, float max)
public NumberRange(float min = 0, float max = 0)
{
if (max - min < 0)
throw new Exception("NumberRange: invalid range");