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)); }
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); }