You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lj_plc/DataBlockHelper/Entity/DB2104Entity/GelatEntity.cs

53 lines
1.4 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DataBlockHelper.Entity.DB2104Entity
{
public class GelatEntity
{
private int StartSet;
private byte[] Bytes;
public GelatEntity(int startSet, byte[] bytes)
{
this.StartSet = startSet;
this.Bytes = bytes;
}
public WDaybinE Daybin => new WDaybinE(StartSet, Bytes);
public WaterSCE WaterSC => new WaterSCE(StartSet, Bytes);
public List<Recipe_GmixE> Step => new RecipeArrayManager(10, StartSet + 40, 12, Bytes).GetRecipe_GmixEList();
}
public class WDaybinE
{
private int StartSet;
private byte[] Bytes;
public WDaybinE(int startSet, byte[] bytes)
{
this.StartSet = startSet;
this.Bytes = bytes;
}
public List<Recipe_DosE> Recipe => new RecipeArrayManager(2, StartSet, 10, Bytes).GetRecipe_DosEList();
}
public class WaterSCE
{
private int StartSet;
private byte[] Bytes;
public WaterSCE(int startSet, byte[] bytes)
{
this.StartSet = startSet;
this.Bytes = bytes;
}
public List<Recipe_DosE> Recipe => new RecipeArrayManager(2, StartSet + 20, 10, Bytes).GetRecipe_DosEList();
}
}