public static SItemEF New(byte Type, byte Value) { SItemEF tmp = new SItemEF { Type = Type, Value = Value }; return(tmp); }
public static SItemEF[] New(SItemListEF[] itemListEf) { SItemEF[] tmp = new SItemEF[itemListEf.Length]; for (int i = 0; i < itemListEf.Length; i++) { tmp[i] = SItemEF.New((byte)itemListEf[i].Index, (byte)itemListEf[i].Value); } return(tmp); }
public static SItem New(short Id, byte T0, byte V0, byte T1, byte V1, byte T2, byte V2) { SItem tmp = new SItem { Id = Id, Ef = new SItemEF [3] { SItemEF.New(T0, V0), SItemEF.New(T1, V1), SItemEF.New(T2, V2), } }; return(tmp); }