示例#1
0
        public static SItemEF New(byte Type, byte Value)
        {
            SItemEF tmp = new SItemEF {
                Type  = Type,
                Value = Value
            };

            return(tmp);
        }
示例#2
0
        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);
        }
示例#3
0
        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);
        }