예제 #1
0
        public Object Clone()
        {
            IconMultiStateThreshold rec = new IconMultiStateThreshold();

            base.CopyTo(rec);
            rec.equals = equals;
            return(rec);
        }
예제 #2
0
        public IconMultiStateFormatting(ILittleEndianInput in1)
        {
            in1.ReadShort(); // Ignored
            in1.ReadByte();  // Reserved
            int num = in1.ReadByte();
            int set = in1.ReadByte();

            iconSet = IconSet.ById(set);
            if (iconSet.num != num)
            {
                //log.Log(POILogger.WARN, "Inconsistent Icon Set defintion, found " + iconSet + " but defined as " + num + " entries");
            }
            options = (byte)in1.ReadByte();

            thresholds = new Threshold[iconSet.num];
            for (int i = 0; i < thresholds.Length; i++)
            {
                thresholds[i] = new IconMultiStateThreshold(in1);
            }
        }