Exemple #1
0
        public static TargetParam Read(BinaryReader br)
        {
            EnumTarget et         = (EnumTarget)br.ReadUInt32();
            uint       occupation = 0;

            if (et == EnumTarget.occupation_list)
            {
                occupation = br.ReadUInt32();
            }
            return(new TargetParam()
            {
                Target = et, Occupations = occupation
            });
        }
Exemple #2
0
        private bool GetLaserIntensity(int nIndex, EnumTarget target, out int InstensityValue)
        {
            InstensityValue = 0;
            return(true);

            if (nIndex != 1 && nIndex != 2)
            {
                return(false);
            }
            LDS lds = nIndex == 1 ? lds1 : lds2;

            InstensityValue = lds.GetExposeValue(Prescription.CMosPointNumber);
            return(InstensityValue > 0);;
        }