Add tile info dump method to scope_dumper

pull/73/head
Jonathan G Rennison 6 years ago
parent 7f027f8dca
commit 8805ab8387

@ -17,6 +17,7 @@
#include "vehicle_base.h"
#include "station_base.h"
#include "waypoint_base.h"
#include "map_func.h"
#include "table/strings.h"
#include "safeguards.h"
@ -108,3 +109,8 @@ const char *scope_dumper::StationInfo(const BaseStation *st)
}
return this->buffer;
}
const char *scope_dumper::TileInfo(TileIndex tile)
{
return DumpTileInfo(this->buffer, lastof(this->buffer), tile);
}

@ -12,6 +12,8 @@
#ifndef SCOPE_INFO_H
#define SCOPE_INFO_H
#include "tile_type.h"
#include <functional>
#include <vector>
@ -70,6 +72,7 @@ struct scope_dumper {
const char *CompanyInfo(int company_id);
const char *VehicleInfo(const Vehicle *v);
const char *StationInfo(const BaseStation *st);
const char *TileInfo(TileIndex tile);
private:
char buffer[256];

Loading…
Cancel
Save