示例#1
0
 public SaveBlockAccessorSWSH(SAV8SWSH sav)
 {
     BlockInfo = sav.AllBlocks;
     BoxInfo   = new Box8(sav, GetBlock(IBox));
     PartyInfo = new Party8(sav, GetBlock(IParty));
     Items     = new MyItem8(sav, GetBlock(IItem));
     Zukan     = new Zukan8(sav, GetBlock(IZukan));
     MyStatus  = new MyStatus8(sav, GetBlock(IMyStatus));
     Misc      = new Misc8(sav, GetBlock(IMisc));
     BoxLayout = new BoxLayout8(sav, GetBlock(IBoxLayout));
     Played    = new PlayTime8(sav, GetBlock(IPlayTime));
     Fused     = new Fused8(sav, GetBlock(IFused));
     Daycare   = new Daycare8(sav, GetBlock(IDaycare));
     Records   = new Record8(sav, GetBlock(IRecord), Core.Records.MaxType_SWSH);
 }
示例#2
0
        public SaveBlockAccessorSWSH(SAV8SWSH sav)
        {
            const int langFlagStart = 0x550; // todo

            Items     = new MyItem8(sav);    // todo - at offset 0?
            Zukan     = new Zukan8(sav, GetBlockOffset(SAV8BlockIndex.Pokedex), langFlagStart);
            MyStatus  = new MyStatus8(sav, GetBlockOffset(SAV8BlockIndex.MyStatus));
            Played    = new PlayTime8(sav, GetBlockOffset(SAV8BlockIndex.PlayTime));
            Misc      = new Misc8(sav, GetBlockOffset(SAV8BlockIndex.Misc));
            GameTime  = new GameTime8(sav, GetBlockOffset(SAV8BlockIndex.GameTime));
            Overworld = new FieldMoveModelSave8(sav, GetBlockOffset(SAV8BlockIndex.FieldMoveModelSave));
            Records   = new Record8(sav, GetBlockOffset(SAV8BlockIndex.Records), Core.Records.MaxType_SWSH);
            Situation = new Situation8(sav, GetBlockOffset(SAV8BlockIndex.Situation));
            EventWork = new EventWork8(sav);
            BoxLayout = new BoxLayout8(sav, GetBlockOffset(SAV8BlockIndex.BOX));
            Config    = new ConfigSave8(sav, GetBlockOffset(SAV8BlockIndex.ConfigSave));
        }
示例#3
0
 public SaveBlockAccessorSWSH(SAV8SWSH sav)
 {
     BlockInfo   = sav.AllBlocks;
     BoxInfo     = new Box8(sav, GetBlock(KBox));
     PartyInfo   = new Party8(sav, GetBlock(KParty));
     Items       = new MyItem8(sav, GetBlock(KItem));
     Zukan       = new Zukan8(sav, GetBlock(KZukan));
     MyStatus    = new MyStatus8(sav, GetBlock(KMyStatus));
     Misc        = new Misc8(sav, GetBlock(KMisc));
     BoxLayout   = new BoxLayout8(sav, GetBlock(KBoxLayout));
     TrainerCard = new TrainerCard8(sav, GetBlock(KTrainerCard));
     Played      = new PlayTime8(sav, GetBlock(KPlayTime));
     Fused       = new Fused8(sav, GetBlock(KFused));
     Daycare     = new Daycare8(sav, GetBlock(KDaycare));
     Records     = new Record8(sav, GetBlock(KRecord), Core.Records.MaxType_SWSH);
     Fashion     = new FashionUnlock8(sav, GetBlock(KFashionUnlock));
     Raid        = new RaidSpawnList8(sav, GetBlock(KRaidSpawnList));
 }
示例#4
0
 public SaveBlockAccessor8SWSH(SAV8SWSH sav)
 {
     BlockInfo   = sav.AllBlocks;
     BoxInfo     = new Box8(sav, GetBlock(KBox));
     PartyInfo   = new Party8(sav, GetBlock(KParty));
     Items       = new MyItem8(sav, GetBlock(KItem));
     Zukan       = new Zukan8(sav, GetBlock(KZukan), GetBlockSafe(KZukanR1), GetBlockSafe(KZukanR2));
     MyStatus    = new MyStatus8(sav, GetBlock(KMyStatus));
     Misc        = new Misc8(sav, GetBlock(KMisc));
     BoxLayout   = new BoxLayout8(sav, GetBlock(KBoxLayout));
     TrainerCard = new TrainerCard8(sav, GetBlock(KTrainerCard));
     Played      = new PlayTime8(sav, GetBlock(KPlayTime));
     Fused       = new Fused8(sav, GetBlock(KFused));
     Daycare     = new Daycare8(sav, GetBlock(KDaycare));
     Records     = new Record8(sav, GetBlock(KRecord), Core.Records.MaxType_SWSH);
     Fashion     = new FashionUnlock8(sav, GetBlock(KFashionUnlock));
     Raid        = new RaidSpawnList8(sav, GetBlock(KRaidSpawnList), RaidSpawnList8.RaidCountLegal_O0);
     RaidArmor   = new RaidSpawnList8(sav, GetBlockSafe(KRaidSpawnListR1), RaidSpawnList8.RaidCountLegal_R1);
     TitleScreen = new TitleScreen8(sav, GetBlock(KTitleScreenTeam));
     TeamIndexes = new TeamIndexes8(sav, GetBlock(KTeamIndexes));
     FameTime    = new HallOfFameTime8(sav, GetBlock(KEnteredHallOfFame));
 }
示例#5
0
文件: SAV8.cs 项目: tools-env/PKHeX
        private void Initialize()
        {
            BoxLayout = new BoxLayout8(this, GetBlockOffset(SAV8BlockIndex.BOX));

            Box       = GetBlockOffset(SAV8BlockIndex.BoxPokemon);
            Party     = GetBlockOffset(SAV8BlockIndex.PokePartySave);
            EventFlag = GetBlockOffset(SAV8BlockIndex.EventWork);
            PokeDex   = GetBlockOffset(SAV8BlockIndex.ZukanData);

            const int langFlagStart = 0x550; // todo

            Zukan          = new Zukan8(this, PokeDex, langFlagStart);
            Items          = new MyItem8(this);
            MyStatus       = new MyStatus8(this, GetBlockOffset(SAV8BlockIndex.MyStatus));
            Played         = new PlayTime8(this, GetBlockOffset(SAV8BlockIndex.PlayTime));
            MiscBlock      = new Misc8(this, GetBlockOffset(SAV8BlockIndex.Misc));
            GameTime       = new GameTime8(this, GetBlockOffset(SAV8BlockIndex.GameTime));
            OverworldBlock = new FieldMoveModelSave8(this, GetBlockOffset(SAV8BlockIndex.FieldMoveModelSave));
            Records        = new Record8(this, GetBlockOffset(SAV8BlockIndex.Records), Core.Records.MaxType_SWSH);
            Situation      = new Situation8(this, GetBlockOffset(SAV8BlockIndex.Situation));
            EventWork      = new EventWork8(this);
        }