OpenTTD Source 20241224-master-gf74b0cf984
AnimationInfo Struct Reference

Information about animation. More...

#include <newgrf_animation_type.h>

Data Fields

uint8_t frames
 The number of frames.
 
uint8_t status
 Status; 0: no looping, 1: looping, 0xFF: no animation.
 
uint8_t speed
 The speed, i.e. the amount of time between frames.
 
uint16_t triggers
 The triggers that trigger animation.
 

Detailed Description

Information about animation.

Definition at line 18 of file newgrf_animation_type.h.

Field Documentation

◆ frames

uint8_t AnimationInfo::frames

The number of frames.

Definition at line 19 of file newgrf_animation_type.h.

Referenced by StationChangeInfo().

◆ speed

uint8_t AnimationInfo::speed

The speed, i.e. the amount of time between frames.

Definition at line 21 of file newgrf_animation_type.h.

◆ status

uint8_t AnimationInfo::status

Status; 0: no looping, 1: looping, 0xFF: no animation.

Definition at line 20 of file newgrf_animation_type.h.

Referenced by CmdBuildAirport(), and DoCreateNewIndustry().

◆ triggers

uint16_t AnimationInfo::triggers

The triggers that trigger animation.

Definition at line 22 of file newgrf_animation_type.h.

Referenced by CmdBuildRailStation(), CmdBuildRoadStop(), CmdBuildRoadWaypoint(), TriggerObjectAnimation(), and TriggerObjectTileAnimation().


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