Add tile info dump method to scope_dumper
This commit is contained in:
@@ -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];
|
||||
|
Reference in New Issue
Block a user