public Objects.MapTile[] getMap() { Objects.MapTile[] Tiles = new Objects.MapTile[MapAddresses.MaxTiles]; for (UInt32 i = 0; i < MapAddresses.MaxTiles; i++) { Objects.MapTile Tile = new Objects.MapTile(); UInt32 ThisReadOffset = MapAddresses.MapStart + (i * MapAddresses.Step); Tile.count = ReadInt32(ThisReadOffset + MapAddresses.CountOffset); Tile.Items = getItems(10, ThisReadOffset + MapAddresses.ItemOffset); Tile.Effect = ReadInt32(ThisReadOffset + MapAddresses.EffectOffset); Tiles[i] = Tile; } return(Tiles); }
public Objects.MapTile[] getMap() { Objects.MapTile[] Tiles = new Objects.MapTile[MapAddresses.MaxTiles]; for (UInt32 i = 0; i < MapAddresses.MaxTiles; i++) { Objects.MapTile Tile = new Objects.MapTile(); UInt32 ThisReadOffset = MapAddresses.MapStart + (i * MapAddresses.Step); Tile.count = ReadInt32(ThisReadOffset + MapAddresses.CountOffset); Tile.Items = getItems(10, ThisReadOffset + MapAddresses.ItemOffset); Tile.Effect = ReadInt32(ThisReadOffset + MapAddresses.EffectOffset); Tiles[i] = Tile; } return Tiles; }