示例#1
0
        protected RoleValve()
        {
            SetName(RoleName);
            _instance = this;

            List <VParamType> args    = new List <VParamType>();
            List <VParamType> retVals = new List <VParamType>()
            {
                new ParamType(0)
            };

            AddOperation(new Operation(OpGetValveNumber, args, retVals, true));
            AddOperation(new Operation(OpSend, args, retVals, true));
            AddOperation(new Operation(OpDone, args, retVals, true));
            AddOperation(new Operation(OpSetValve, args, retVals, true));
            AddOperation(new Operation(OpSetAllValves, args, retVals, true));
            AddOperation(new Operation(OpReset, args, retVals, true));
        }
        protected RoleValve()
        {
            SetName(RoleName);
            _instance = this;

            List<VParamType> args = new List<VParamType>();
            List<VParamType> retVals = new List<VParamType>() { new ParamType(0) };

            AddOperation(new Operation(OpGetValveNumber, args, retVals, true));
            AddOperation(new Operation(OpSend, args, retVals, true));
            AddOperation(new Operation(OpDone, args, retVals, true));
            AddOperation(new Operation(OpSetValve, args, retVals, true));
            AddOperation(new Operation(OpSetAllValves, args, retVals, true));
            AddOperation(new Operation(OpReset, args, retVals, true));
        }