예제 #1
0
 public SaveBlockAccessorXY(SAV6XY sav)
 {
     Puff        = new Puff6(sav, 0x00000);
     Items       = new MyItem6XY(sav, 0x00400);
     ItemInfo    = new ItemInfo6(sav, 0x01000);
     GameTime    = new GameTime6(sav, 0x01200);
     Situation   = new Situation6(sav, 0x01400);
     Played      = new PlayTime6(sav, 0x01800);
     Fashion     = new Fashion6XY(sav, 0x1A00);
     Misc        = new Misc6XY(sav, 0x4200);
     BoxLayout   = new BoxLayout6(sav, 0x4400);
     BattleBox   = new BattleBox6(sav, 0x04A00);
     Status      = new MyStatus6XY(sav, 0x14000);
     Zukan       = new Zukan6XY(sav, 0x15000, 0x3C8);
     OPower      = new OPower6(sav, 0x16A00);
     MysteryGift = new MysteryBlock6(sav, 0x1BC00);
     Records     = new RecordBlock6(sav, 0x1E400);
     SuperTrain  = new SuperTrainBlock(sav, 0x1F200);
     Link        = new LinkBlock6(sav, 0x1FE00);
     Maison      = new MaisonBlock(sav, 0x1B000);
 }
예제 #2
0
파일: SAV6XY.cs 프로젝트: tools-env/PKHeX
        private void Initialize()
        {
            /* 00: 00000-002C8, 002C8 */                            // Puff = 0x00000;
            /* 01: 00400-00F88, 00B88 */                            // MyItem = 0x00400; // Bag
            /* 02: 01000-0102C, 0002C */                            // ItemInfo = 0x1000; // Select Bound Items
            /* 03: 01200-01238, 00038 */                            // GameTime = 0x01200;
            /* 04: 01400-01550, 00150 */ Trainer1 = 0x1400;         // Situation
            /* 05: 01600-01604, 00004 */                            // RandomGroup (rand seeds)
            /* 06: 01800-01808, 00008 */                            // PlayTime
            /* 07: 01A00-01BC0, 001C0 */ Accessories = 0x1A00;      // Fashion
            /* 08: 01C00-01CBE, 000BE */                            // amie minigame records
            /* 09: 01E00-01E24, 00024 */                            // temp variables (u32 id + 32 u8)
            /* 10: 02000-04100, 02100 */                            // FieldMoveModelSave
            /* 11: 04200-04340, 00140 */ Trainer2  = 0x4200;        // Misc
            /* 12: 04400-04840, 00440 */ PCLayout  = 0x4400;        // BOX
            /* 13: 04A00-04F74, 00574 */ BattleBox = 0x04A00;       // BattleBox
            /* 14: 05000-09E28, 04E28 */ PSS       = 0x05000;
            /* 15: 0A000-0EE28, 04E28 */                            // PSS2
            /* 16: 0F000-13E28, 04E28 */                            // PSS3
            /* 17: 14000-14170, 00170 */                            // MyStatus
            /* 18: 14200-1481C, 0061C */ Party      = 0x14200;      // PokePartySave
            /* 19: 14A00-14F04, 00504 */ EventConst = 0x14A00;      // EventWork
            /* 20: 15000-156A0, 006A0 */ PokeDex    = 0x15000;      // ZukanData
            /* 21: 15800-15E44, 00644 */                            // hologram clips
            /* 22: 16000-16104, 00104 */ Fused = 0x16000;           // UnionPokemon
            /* 23: 16200-16204, 00004 */                            // ConfigSave
            /* 24: 16400-16820, 00420 */                            // Amie decoration stuff
            /* 25: 16A00-16A64, 00064 */                            // OPower = 0x16A00;
            /* 26: 16C00-16FF0, 003F0 */                            // Strength Rock position (xyz float: 84 entries, 12bytes/entry)
            /* 27: 17000-1770C, 0070C */                            // Trainer PR Video
            /* 28: 17800-17980, 00180 */ GTS = 0x17800;             // GtsData
            /* 29: 17A00-17A04, 00004 */                            // Packed Menu Bits
            /* 30: 17C00-17C0C, 0000C */                            // PSS Profile Q&A (6*questions, 6*answer)
            /* 31: 17E00-17E48, 00048 */                            // Repel Info, (Swarm?) and other overworld info (roamer)
            /* 32: 18000-18054, 00054 */                            // BOSS data fetch history (serial/mystery gift), 4byte intro & 20*4byte entries
            /* 33: 18200-18844, 00644 */                            // Streetpass history (4 byte intro, 20*4byte entries, 20*76 byte entries)
            /* 34: 18A00-18FC8, 005C8 */                            // LiveMatchData/BattleSpotData
            /* 35: 19000-192F8, 002F8 */                            // MAC Address & Network Connection Logging (0x98 per entry, 5 entries)
            /* 36: 19400-1AF40, 01B40 */ HoF         = 0x19400;     // Dendou
            /* 37: 1B000-1B1F4, 001F4 */ MaisonStats = 0x1B1C0;     // BattleInstSave
            /* 38: 1B200-1B3F0, 001F0 */ Daycare     = 0x1B200;     // Sodateya
            /* 39: 1B400-1B616, 00216 */                            // BattleInstSave
            /* 40: 1B800-1BB90, 00390 */ BerryField      = 0x1B800;
            /* 41: 1BC00-1D690, 01A90 */ WondercardFlags = 0x1BC00; // MysteryGiftSave
            /* 42: 1D800-1DB08, 00308 */ SUBE            = 0x1D890; // PokeDiarySave
            /* 43: 1DC00-1E218, 00618 */                            // Storyline Records
            /* 44: 1E400-1E65C, 0025C */                            // Record = 0x1E400;
            /* 45: 1E800-1F034, 00834 */                            // Friend Safari (0x15 per entry, 100 entries)
            /* 46: 1F200-1F518, 00318 */ SuperTrain = 0x1F200;
            /* 47: 1F600-1FDD0, 007D0 */                            // Unused (lmao)
            /* 48: 1FE00-20A48, 00C48 */ LinkInfo = 0x1FE00;
            /* 49: 20C00-20C78, 00078 */                            // PSS usage info
            /* 50: 20E00-21000, 00200 */                            // GameSyncSave
            /* 51: 21000-21C84, 00C84 */                            // PSS Icon (bool32 data present, 40x40 u16 pic, unused)
            /* 52: 21E00-22428, 00628 */                            // ValidationSave (updatabale Public Key for legal check api calls)
            /* 53: 22600-570D0, 34AD0 */ Box  = 0x22600;
            /* 54: 57200-65258, 0E058 */ JPEG = 0x57200;

            Items          = new MyItem6XY(this, 0x00400);
            PuffBlock      = new Puff6(this, 0x00000);
            GameTime       = new GameTime6(this, 0x01200);
            Situation      = new Situation6(this, 0x01400);
            Played         = new PlayTime6(this, 0x01800);
            BoxLayout      = new BoxLayout6(this, 0x4400);
            BattleBoxBlock = new BattleBox6(this, 0x04A00);
            Status         = new MyStatus6XY(this, 0x14000);
            Zukan          = new Zukan6XY(this, 0x15000, 0x3C8);
            OPowerBlock    = new OPower6(this, 0x16A00);
            MysteryBlock   = new MysteryBlock6(this, 0x1BC00);
            Records        = new Record6(this, 0x1E400, Core.Records.MaxType_XY);

            EventFlag      = EventConst + 0x2FC;
            WondercardData = WondercardFlags + 0x100;

            HeldItems = Legal.HeldItem_XY;
            Personal  = PersonalTable.XY;
        }