OpenTTD Source: AnimationInfo< AnimationTriggers > Struct Template Reference

OpenTTD Source 15.0-RC2

Data Fields
AnimationInfo< AnimationTriggers > Struct Template Reference

Information about animation. More...

`#include <newgrf_animation_type.h>`

## Data Fields
uint8_t | frames = 0
| The number of frames.
AnimationStatus | status = AnimationStatus::NoAnimation
| Status.
uint8_t | speed = 2
| The speed: time between frames = 2^speed ticks.
AnimationTriggers | triggers
| The enabled animation triggers.

## Detailed Description

template<class AnimationTriggers>
struct AnimationInfo< AnimationTriggers >

Information about animation.

Definition at line 21 of file newgrf_animation_type.h.

## Field Documentation

## ◆ frames

template<class AnimationTriggers >

uint8_t AnimationInfo< AnimationTriggers >::frames = 0

The number of frames.

Definition at line 22 of file newgrf_animation_type.h.

## ◆ speed

template<class AnimationTriggers >

uint8_t AnimationInfo< AnimationTriggers >::speed = 2

The speed: time between frames = 2^speed ticks.

Definition at line 24 of file newgrf_animation_type.h.

## ◆ status

template<class AnimationTriggers >

AnimationStatus AnimationInfo< AnimationTriggers >::status = AnimationStatus::NoAnimation

Status.

Definition at line 23 of file newgrf_animation_type.h.

## ◆ triggers

template<class AnimationTriggers >

AnimationTriggers AnimationInfo< AnimationTriggers >::triggers

The enabled animation triggers.

Definition at line 25 of file newgrf_animation_type.h.

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

- src/newgrf_animation_type.h