示例#1
0
        public Entry1D(ref byte *ptr, bool olt = false)
        {
            Comp_id = MapDataHelper.LoadUint(ref ptr);
            Addr    = MapDataHelper.LoadUint(ref ptr);
            if (!olt)
            {
                Addr ^= MapDataHelper.XorKey;
                unk1  = MapDataHelper.LoadBytes(ref ptr, 8);
            }
            else
            {
                unk1 = MapDataHelper.LoadBytes(ref ptr, 4);
            }

            Units      = MapDataHelper.LoadString(ref ptr, 16);
            Lower_lim  = MapDataHelper.LoadDouble(ref ptr);
            Upper_lim  = MapDataHelper.LoadDouble(ref ptr);
            Const_type = *(ptr++);
            Precision  = *(ptr++);
            Convert    = new ConvertInfo(ref ptr);

            if (olt)
            {
                return;
            }
            Cs = MapDataHelper.LoadUshort(ref ptr);
        }
示例#2
0
        public Entry3D(ref byte *ptr, bool olt)
        {
            Comp_id = MapDataHelper.LoadUint(ref ptr);
            Addr    = MapDataHelper.LoadUint(ref ptr);
            if (!olt)
            {
                Addr ^= MapDataHelper.XorKey;
                unk1  = MapDataHelper.LoadBytes(ref ptr, 8);
            }
            else
            {
                unk1 = MapDataHelper.LoadBytes(ref ptr, 4);
            }

            xUnits = MapDataHelper.LoadString(ref ptr, 32);
            Units  = MapDataHelper.LoadString(ref ptr, 32);
            zUnits = MapDataHelper.LoadString(ref ptr, 32);
            xTable = MapDataHelper.LoadString(ref ptr, 255);
            zTable = MapDataHelper.LoadString(ref ptr, 255);

            xPoints   = MapDataHelper.LoadUshort(ref ptr);
            ShiftMask = MapDataHelper.LoadUshort(ref ptr);
            zPoints   = *(ptr++);

            xStart = MapDataHelper.LoadDouble(ref ptr);
            xEnd   = MapDataHelper.LoadDouble(ref ptr);

            unk2 = *(ptr++);             //FF

            Lower_lim = MapDataHelper.LoadDouble(ref ptr);
            Upper_lim = MapDataHelper.LoadDouble(ref ptr);

            unk3 = *(ptr++);             //FF

            zStart = MapDataHelper.LoadDouble(ref ptr);
            zEnd   = MapDataHelper.LoadDouble(ref ptr);

            unk4       = *(ptr++);       //FF
            Const_type = *(ptr++);
            unk5       = *(ptr++);       //00
            gbc_thrott = *(ptr++);

            unk6 = MapDataHelper.LoadBytes(ref ptr, 2);             //FF00

            Convert = new ConvertInfo(ref ptr);

            if (olt)
            {
                return;
            }
            Cs = MapDataHelper.LoadUshort(ref ptr);
        }