Open Rails

TrainControlSystem.HandleEvent Method

[This is preliminary documentation and subject to change.]

Called when an event happens (like the alerter button pressed)

public abstract void HandleEvent(
   TCSEvent evt,
   string message
);

Parameters

evt
The event happened
message
The message the event wants to communicate. May be empty.

See Also

TrainControlSystem Class | ORTS.Scripting.Api Namespace