Simutrans-Squirrel-API  r11919
Public Attributes | List of all members
time_x Class Reference
Inheritance diagram for time_x:
Inheritance graph
[legend]

Public Attributes

integer raw
 raw integer value of date More...
 
integer year
 year More...
 
integer month
 month in 0..11 More...
 

Detailed Description

Struct to hold information about time as month-year. If used as argument to functions then only the value of raw matters. If filled by an api-call the year and month will be set, too. Relation: raw = 12*month + year.

See also
world::get_time obj_desc_time_x

Definition at line 9 of file api_simple.cc.

Member Data Documentation

◆ month

integer time_x::month

month in 0..11

Definition at line 13 of file api_simple.cc.

◆ raw

integer time_x::raw

raw integer value of date

Definition at line 11 of file api_simple.cc.

◆ year

integer time_x::year

year

Definition at line 12 of file api_simple.cc.


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