Simutrans-Squirrel-API OTRP v63_4
Loading...
Searching...
No Matches
ttextfile Class Reference

#include <api_base.h>

Inheritance diagram for ttextfile:
Collaboration diagram for ttextfile:

Public Member Functions

 ttextfile (string file)
Public Member Functions inherited from ttext
 ttext (string text)
string to_string ()

Detailed Description

Loads text from a file.

It does variable substitution as ttext.

Definition at line 38 of file api_base.h.

Constructor & Destructor Documentation

◆ ttextfile()

ttextfile::ttextfile ( string file)

Constructor. Text is taken from a file.

The file is searched in the following paths:

  1. scenario_name/iso/ .. iso is language ISO abbreviation
  2. scenario_name/en/ .. fall-back: English version
  3. scenario_name/
Parameters
filefilename

The documentation for this class was generated from the following file: