コード例 #1
0
        public DomainFloor(int floorBasePointerAddressDecimal)
        {
            CurrentDomainFloor = this;

            this.FloorBasePointerAddressDecimal = floorBasePointerAddressDecimal;

            FloorName = ReadDomainName();

            UnknownDataDecimal  = ReadUnknownData();
            UnknownData2Decimal = ReadUnknownData2();
            FloorTypeOverride   = ReadFloorOverride();
            TrapLevel           = ReadTrapLevel();
            DigimonPacks        = ReadDigimonPacks();
            PossibleTreasure    = ReadTreasure();

            CreateMapPlansForFloor();
            AddMapLayoutOccuranceCount();
        }
コード例 #2
0
        public Domain(string domainFilename)
        {
            Main       = this;
            DomainData = ReadDomainMapDataFile(domainFilename);

            bool searchingDomainFloors = true;

            do
            {
                var floorHeaderBasePointerDecimalAddress = GetPointerOld(floorsInThisDomain.Count * 4);

                if (floorHeaderBasePointerDecimalAddress == 0)
                {
                    searchingDomainFloors = false;
                    continue;
                }

                DomainFloor floor = new DomainFloor(floorHeaderBasePointerDecimalAddress);
                floorsInThisDomain.Add(floor);

                DigimonWorld2ToolForm.Main.FloorSelectorComboBox.Items.Add(floor.FloorName);
            }while (searchingDomainFloors);
        }