OpenTTD Source: LinkRefresher::RefitDesc Struct Reference

OpenTTD Source 15.0-beta1

Public Member Functions | Data Fields
LinkRefresher::RefitDesc Struct Reference

Simulated cargo type and capacity for prediction of future links. More...

`#include <refresh.h>`

## Public Member Functions
| RefitDesc (CargoID cargo, uint16_t capacity, uint16_t remaining)

## Data Fields
CargoID | cargo
| Cargo type the vehicle will be carrying.
uint16_t | capacity
| Capacity the vehicle will have.
uint16_t | remaining
| Capacity remaining from before the previous refit.

## Detailed Description

Simulated cargo type and capacity for prediction of future links.

Definition at line 39 of file refresh.h.

## Constructor & Destructor Documentation

## ◆ RefitDesc()

LinkRefresher::RefitDesc::RefitDesc | ( | CargoID | cargo,
|  | uint16_t | capacity,
|  | uint16_t | remaining
| ) |  |
| inline

Definition at line 43 of file refresh.h.

## Field Documentation

## ◆ capacity

uint16_t LinkRefresher::RefitDesc::capacity

Capacity the vehicle will have.

Definition at line 41 of file refresh.h.

## ◆ cargo

CargoID LinkRefresher::RefitDesc::cargo

Cargo type the vehicle will be carrying.

Definition at line 40 of file refresh.h.

## ◆ remaining

uint16_t LinkRefresher::RefitDesc::remaining

Capacity remaining from before the previous refit.

Definition at line 42 of file refresh.h.

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

- src/linkgraph/refresh.h