public void UpdateWorldScreenTopTileSection(int worldScreenIndex, int tileSectionIndex) { // RandomizerModWorldScreen ws = WorldScreens[worldScreenIndex]; //Get Tile Data Offset ws.TopTiles = (byte)tileSectionIndex; ws.TileSectionTop = _romData.LoadTileSection(ws.TopTiles, GetTopTileDataOffset(ws.DataPointer)); }
public void LoadTileSectionsFromRom(TmosRom tmosRom) { // TileSections = new TmosTileSection[TmosData.DataStructureCounts.TileSection_Count]; TileSections = new TmosTileSection[255]; for (int i = 0; i < TileSections.Length; i++) { TmosTileSection tmosTileSection = tmosRom.LoadTileSection(i, 0); TileSections[i] = tmosTileSection; } }