OpenTTD Source 20241224-master-gf74b0cf984
CompanyManagerFaceBitsInfo Struct Reference

Information about the valid values of CompanyManagerFace bitgroups as well as the sprites to draw. More...

#include <company_manager_face.h>

Data Fields

uint8_t offset
 Offset in bits into the CompanyManagerFace.
 
uint8_t length
 Number of bits used in the CompanyManagerFace.
 
uint8_t valid_values [GE_END]
 The number of valid values per gender/ethnicity.
 
SpriteID first_sprite [GE_END]
 The first sprite per gender/ethnicity.
 

Detailed Description

Information about the valid values of CompanyManagerFace bitgroups as well as the sprites to draw.

Definition at line 56 of file company_manager_face.h.

Field Documentation

◆ first_sprite

SpriteID CompanyManagerFaceBitsInfo::first_sprite[GE_END]

The first sprite per gender/ethnicity.

Definition at line 60 of file company_manager_face.h.

Referenced by GetCompanyManagerFaceSprite().

◆ length

uint8_t CompanyManagerFaceBitsInfo::length

Number of bits used in the CompanyManagerFace.

Definition at line 58 of file company_manager_face.h.

Referenced by ScaleCompanyManagerFaceValue().

◆ offset

uint8_t CompanyManagerFaceBitsInfo::offset

Offset in bits into the CompanyManagerFace.

Definition at line 57 of file company_manager_face.h.

◆ valid_values

uint8_t CompanyManagerFaceBitsInfo::valid_values[GE_END]

The number of valid values per gender/ethnicity.

Definition at line 59 of file company_manager_face.h.

Referenced by AreCompanyManagerFaceBitsValid(), IncreaseCompanyManagerFaceBits(), and SelectCompanyManagerFaceWindow::OnPaint().


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