Simutrans-Squirrel-API
Public Member Functions | List of all members
ttextfile Class Reference

#include <api_base.h>

Inheritance diagram for ttextfile:
ttext

Public Member Functions

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

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: