Scope info: Add station/waypoint info dumper

This commit is contained in:
Jonathan G Rennison
2018-05-31 18:36:12 +01:00
parent ffa4f03128
commit faf4cdc0f4
2 changed files with 29 additions and 0 deletions

View File

@@ -17,6 +17,7 @@
#include <vector>
struct Vehicle;
struct BaseStation;
extern std::vector<std::function<int(char *, const char *)>> _scope_stack;
@@ -61,6 +62,7 @@ int WriteScopeLog(char *buf, const char *last);
struct scope_dumper {
const char *CompanyInfo(int company_id);
const char *VehicleInfo(const Vehicle *v);
const char *StationInfo(const BaseStation *st);
private:
char buffer[256];