51 lines
1.3 KiB
C#
51 lines
1.3 KiB
C#
using System.Collections.Generic;
|
|
using static Thermo.Active.Model.Constants;
|
|
|
|
namespace Thermo.Active.Model.ConfigModels
|
|
{
|
|
public class RecipeConfigModel
|
|
{
|
|
public int Id;
|
|
public TACT_PARAM_TYPE Category { get; set; }
|
|
public string SubCategory_1 { get; set; }
|
|
public string SubCategory_2 { get; set; }
|
|
public string Name { get; set; }
|
|
public string Description { get; set; }
|
|
public string Format { get; set; }
|
|
public int ScaleFactor { get; set; } = 1;
|
|
public int NumDec { get; set; } = 0;
|
|
public Dictionary<string, EnumDetail> EnumVal { get; set; }
|
|
public string Anim { get; set; }
|
|
}
|
|
|
|
public class EnumDetail
|
|
{
|
|
public string text { get; set; } = "";
|
|
public string anim { get; set; } = "";
|
|
|
|
public EnumDetail(string text, string anim)
|
|
{
|
|
this.text = text;
|
|
this.anim = anim;
|
|
}
|
|
|
|
public override bool Equals(object obj)
|
|
{
|
|
if (!(obj is EnumDetail item))
|
|
return false;
|
|
|
|
if (text != item.text)
|
|
return false;
|
|
if (anim != item.anim)
|
|
return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
public override int GetHashCode()
|
|
{
|
|
return base.GetHashCode();
|
|
}
|
|
}
|
|
}
|