OpenTTD Source: ViewportSignKdtreeItem Struct Reference

OpenTTD Source 13.2.1

Public Types | Public Member Functions | Static Public Member Functions | Data Fields
ViewportSignKdtreeItem Struct Reference

## Public Types
enum | ItemType : uint16 { VKI_STATION, VKI_WAYPOINT, VKI_TOWN, VKI_SIGN }

## Public Member Functions
bool | operator== (const ViewportSignKdtreeItem &other) const
bool | operator< (const ViewportSignKdtreeItem &other) const

## Static Public Member Functions
static ViewportSignKdtreeItem | MakeStation (StationID id)
static ViewportSignKdtreeItem | MakeWaypoint (StationID id)
static ViewportSignKdtreeItem | MakeTown (TownID id)
static ViewportSignKdtreeItem | MakeSign (SignID id)

## Data Fields
ItemType | type
union {
StationID station
TownID town
SignID sign
} | id
int32 | center
int32 | top

## Detailed Description

Definition at line 19 of file viewport_kdtree.h.

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

- src/viewport_kdtree.h
- src/viewport.cpp