OpenTTD Source: GenWorldInfo Struct Reference

OpenTTD Source 15.0-beta1

Data Fields
GenWorldInfo Struct Reference

Properties of current genworld process. More...

`#include <genworld.h>`

## Data Fields
bool | abort
| Whether to abort the thread ASAP.
GenWorldMode | mode
| What mode are we making a world in.
CompanyID | lc
| The local_company before generating.
uint | size_x
| X-size of the map.
uint | size_y
| Y-size of the map.
GWDoneProc * | proc
| Proc that is called when done (can be nullptr)
GWAbortProc * | abortp
| Proc that is called when aborting (can be nullptr)

## Detailed Description

Properties of current genworld process.

Definition at line 58 of file genworld.h.

## Field Documentation

## ◆ abort

bool GenWorldInfo::abort

Whether to abort the thread ASAP.

Definition at line 59 of file genworld.h.

Referenced by AbortGeneratingWorld(), GenerateWorld(), and IsGeneratingWorldAborted().

## ◆ abortp

GWAbortProc* GenWorldInfo::abortp

Proc that is called when aborting (can be nullptr)

Definition at line 65 of file genworld.h.

Referenced by CleanupGeneration(), GenerateWorld(), GenerateWorldSetAbortCallback(), and HandleGeneratingWorldAbortion().

## ◆ lc

CompanyID GenWorldInfo::lc

The local_company before generating.

Definition at line 61 of file genworld.h.

Referenced by _GenerateWorld(), and GenerateWorld().

## ◆ mode

GenWorldMode GenWorldInfo::mode

What mode are we making a world in.

Definition at line 60 of file genworld.h.

Referenced by _GenerateWorld(), and GenerateWorld().

## ◆ proc

GWDoneProc* GenWorldInfo::proc

Proc that is called when done (can be nullptr)

Definition at line 64 of file genworld.h.

Referenced by _GenerateWorld(), CleanupGeneration(), and GenerateWorldSetCallback().

## ◆ size_x

uint GenWorldInfo::size_x

X-size of the map.

Definition at line 62 of file genworld.h.

Referenced by GenerateWorld().

## ◆ size_y

uint GenWorldInfo::size_y

Y-size of the map.

Definition at line 63 of file genworld.h.

Referenced by GenerateWorld().

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

- src/genworld.h