OpenTTD GameScript API  20240329-master-ge21c12afeb
Static Public Member Functions
GSEventController Class Reference

Class that handles all event related functions. More...

Inheritance diagram for GSEventController:

Static Public Member Functions

static bool IsEventWaiting ()
 Check if there is an event waiting. More...
 
static GSEventGetNextEvent ()
 Get the next event. More...
 

Detailed Description

Class that handles all event related functions.

Note
it is not needed to create an instance of GSEvent to access it, as all members are static, and all data is stored script instance-wide.

Member Function Documentation

◆ GetNextEvent()

static GSEvent* GSEventController::GetNextEvent ( )
static

Get the next event.

Returns
a class of the event-child issues.

◆ IsEventWaiting()

static bool GSEventController::IsEventWaiting ( )
static

Check if there is an event waiting.

Returns
true if there is an event on the stack.