OpenTTD Source: src/newgrf_townname.h File Reference

OpenTTD Source 15.0-RC2

Data Structures | Functions
newgrf_townname.h File Reference

Header of Action 0F "universal holder" structure and functions. More...

`#include "strings_type.h"`

Go to the source code of this file.

## Data Structures
struct | NamePart
struct | NamePartList
struct | TownNameStyle
struct | GRFTownName

## Functions
GRFTownName * | AddGRFTownName (uint32_t grfid)
GRFTownName * | GetGRFTownName (uint32_t grfid)
void | DelGRFTownName (uint32_t grfid)
void | CleanUpGRFTownNames ()
uint32_t | GetGRFTownNameId (uint16_t gen)
uint16_t | GetGRFTownNameType (uint16_t gen)
StringID | GetGRFTownNameName (uint16_t gen)
const std::vector< StringID > & | GetGRFTownNameList ()

## Detailed Description

Header of Action 0F "universal holder" structure and functions.

Definition in file newgrf_townname.h.

## Function Documentation

## ◆ AddGRFTownName()

GRFTownName * AddGRFTownName | ( | uint32_t | grfid | ) |

Definition at line 34 of file newgrf_townname.cpp.

## ◆ CleanUpGRFTownNames()

void CleanUpGRFTownNames | ( |  | ) |

Definition at line 100 of file newgrf_townname.cpp.

## ◆ DelGRFTownName()

void DelGRFTownName | ( | uint32_t | grfid | ) |

Definition at line 44 of file newgrf_townname.cpp.

## ◆ GetGRFTownName()

GRFTownName * GetGRFTownName | ( | uint32_t | grfid | ) |

Definition at line 27 of file newgrf_townname.cpp.

## ◆ GetGRFTownNameId()

uint32_t GetGRFTownNameId | ( | uint16_t | gen | ) |

Definition at line 105 of file newgrf_townname.cpp.

## ◆ GetGRFTownNameList()

const std::vector< StringID > & GetGRFTownNameList | ( |  | ) |

Definition at line 90 of file newgrf_townname.cpp.

## ◆ GetGRFTownNameName()

StringID GetGRFTownNameName | ( | uint16_t | gen | ) |

Definition at line 95 of file newgrf_townname.cpp.

## ◆ GetGRFTownNameType()

uint16_t GetGRFTownNameType | ( | uint16_t | gen | ) |

Definition at line 115 of file newgrf_townname.cpp.