TrainzScript Library Reference

From TrainzOnline
(Difference between revisions)
Jump to: navigation, search
m (AsyncTrainzAssetSearchObject is also a subclass of AsyncQueryHelper)
 
Line 3: Line 3:
 
The source code for all classes can be found within your Trainz installation, under ''resources/scripts''. Most classes are contained within obviously named files - e.g. the [[Class World|World]] class can be found in ''world.gs'' - although not all classes are in separate files - [[Class TrainUtil|TrainUtil]] is located in ''common.gs''. Thorough documentation of classes, methods, and constants exists within the source code.
 
The source code for all classes can be found within your Trainz installation, under ''resources/scripts''. Most classes are contained within obviously named files - e.g. the [[Class World|World]] class can be found in ''world.gs'' - although not all classes are in separate files - [[Class TrainUtil|TrainUtil]] is located in ''common.gs''. Thorough documentation of classes, methods, and constants exists within the source code.
  
''Classes marked with an asterisk have no parent class.''
+
*[[class AssetCategory|AssetCategory]]
 
+
*[[class GSObject|GSObject]]
*[[class AssetCategory|AssetCategory]] *
+
*[[class GSObject|GSObject]] *
+
 
**[[class Asset|Asset]]
 
**[[class Asset|Asset]]
 
**[[class DLCInfo|DLCInfo]]
 
**[[class DLCInfo|DLCInfo]]
Line 25: Line 23:
 
***[[class Interface|Interface]]
 
***[[class Interface|Interface]]
 
***[[class InterlockingTowerPath|InterlockingTowerPath]]
 
***[[class InterlockingTowerPath|InterlockingTowerPath]]
***[[class JunctionBaseGameObject|JunctionBaseGameObject]] (Additional parent class: [[class JunctionBase|JunctionBase]] *)
+
***[[class JunctionBaseGameObject|JunctionBaseGameObject]] (Additional parent class: [[class JunctionBase|JunctionBase]])
 
***[[class NavPoints|NavPoints]]
 
***[[class NavPoints|NavPoints]]
 
***[[class ChatChannel|ChatChannel]]
 
***[[class ChatChannel|ChatChannel]]
Line 38: Line 36:
 
*****[[class GameplayMenu|GameplayMenu]]
 
*****[[class GameplayMenu|GameplayMenu]]
 
*****[[class GameplayMenuMobile|GameplayMenuMobile]]
 
*****[[class GameplayMenuMobile|GameplayMenuMobile]]
****[[class Library|Library]] (Additional parent class: [[class PropertyObject|PropertyObject]] *)
+
****[[class Library|Library]] (Additional parent class: [[class PropertyObject|PropertyObject]])
 
*****[[class OAChat|OAChat]]
 
*****[[class OAChat|OAChat]]
 
*****[[class Servlet|Servlet]]
 
*****[[class Servlet|Servlet]]
 
*****[[class SessionVariables|SessionVariables]]
 
*****[[class SessionVariables|SessionVariables]]
 
*****[[class WaybillManager|WaybillManager]]
 
*****[[class WaybillManager|WaybillManager]]
****[[class MeshObject|MeshObject]] (Additional parent class: [[class PropertyObject|PropertyObject]] *)
+
****[[class MeshObject|MeshObject]] (Additional parent class: [[class PropertyObject|PropertyObject]])
 
*****[[class Bogey|Bogey]]
 
*****[[class Bogey|Bogey]]
 
*****[[class Cabin|Cabin]]
 
*****[[class Cabin|Cabin]]
Line 59: Line 57:
 
******[[class Trackside|Trackside]]
 
******[[class Trackside|Trackside]]
 
*******[[class CarSignal|CarSignal]]
 
*******[[class CarSignal|CarSignal]]
*******[[class Junction|Junction]] (Additional parent class: [[class JunctionBase|JunctionBase]] *)
+
*******[[class Junction|Junction]] (Additional parent class: [[class JunctionBase|JunctionBase]])
 
*******[[class Signal|Signal]]
 
*******[[class Signal|Signal]]
 
*******[[class TrackMark|TrackMark]]
 
*******[[class TrackMark|TrackMark]]
Line 65: Line 63:
 
*******[[class Vehicle|Vehicle]]
 
*******[[class Vehicle|Vehicle]]
 
********[[class Locomotive|Locomotive]]
 
********[[class Locomotive|Locomotive]]
****[[class ModulScript|ModulScript]]
 
 
*****[[class DriverCharacter|DriverCharacter]]
 
*****[[class DriverCharacter|DriverCharacter]]
 
****[[class ScenarioBehavior|ScenarioBehavior]]
 
****[[class ScenarioBehavior|ScenarioBehavior]]
Line 87: Line 84:
 
**[[class TrackPathDisplay|TrackPathDisplay]]
 
**[[class TrackPathDisplay|TrackPathDisplay]]
 
**[[class TrainTimeTable|TrainTimeTable]]
 
**[[class TrainTimeTable|TrainTimeTable]]
*[[class GSTrackSearch|GSTrackSearch]] *
+
*[[class GSTrackSearch|GSTrackSearch]]
*[[class Math|Math]] *
+
*[[class JunctionBase|JunctionBase]]
*[[class NamedObjectInfo|NamedObjectInfo]] *
+
*[[class Math|Math]]
*[[class Router|Router]] *
+
*[[class NamedObjectInfo|NamedObjectInfo]]
*[[class Str|Str]] *
+
*[[class PropertyObject|PropertyObject]]
*[[class TrainUtil|TrainUtil]] *
+
*[[class Router|Router]]
 +
*[[class Str|Str]]
 +
*[[class TrainUtil|TrainUtil]]
  
  
 
=Categories=
 
=Categories=
 
[[Category:TrainzScript]]
 
[[Category:TrainzScript]]

Latest revision as of 14:22, 26 February 2024

The following is a list of all classes provided by Auran for use with the Trainz game runtime environment. Some of these classes may not be available from other runtime environments. Please see the TrainzScript Language Reference for a list of the "core" TrainzScript classes that are present in all runtime environments. This list may not be complete, but will be extended in future.

The source code for all classes can be found within your Trainz installation, under resources/scripts. Most classes are contained within obviously named files - e.g. the World class can be found in world.gs - although not all classes are in separate files - TrainUtil is located in common.gs. Thorough documentation of classes, methods, and constants exists within the source code.


[edit] Categories

Personal tools