OpenTTD Source: src/newgrf/newgrf_act11.cpp File Reference

OpenTTD Source 15.3

Functions
newgrf_act11.cpp File Reference

NewGRF Action 0x11 handler. More...

`#include "../stdafx.h"`
`#include "../debug.h"`
`#include "../newgrf_house.h"`
`#include "../newgrf_sound.h"`
`#include "../spritecache.h"`
`#include "newgrf_bytereader.h"`
`#include "newgrf_internal.h"`
`#include "../safeguards.h"`

Go to the source code of this file.

## Functions
static void | ImportGRFSound (SoundEntry *sound)
| Process a sound import from another GRF file.
static void | LoadGRFSound (size_t offs, SoundEntry *sound)
| Load a sound from a file.
static void | GRFSound (ByteReader &buf)
static void | SkipAct11 (ByteReader &buf)

## Detailed Description

NewGRF Action 0x11 handler.

Definition in file newgrf_act11.cpp.

## Function Documentation

## ◆ GRFSound()

static void GRFSound | ( | ByteReader & | buf | ) |
| static

Definition at line 71 of file newgrf_act11.cpp.

## ◆ ImportGRFSound()

static void ImportGRFSound | ( | SoundEntry * | sound | ) |
| static

Process a sound import from another GRF file.

Parameters

  sound | Destination for sound.

Definition at line 24 of file newgrf_act11.cpp.

References GrfProcessingState::file, GetFileByGRFID(), RandomAccessFile::ReadDword(), and RandomAccessFile::ReadWord().

## ◆ LoadGRFSound()

static void LoadGRFSound | ( | size_t | offs,
|  | SoundEntry * | sound
| ) |  |
| static

Load a sound from a file.

Parameters

  offs | File offset to read sound from.
  sound | Destination for sound.

Definition at line 55 of file newgrf_act11.cpp.

References GrfProcessingState::file, SpriteFile::GetContainerVersion(), and SoundEntry::grf_container_ver.

## ◆ SkipAct11()

static void SkipAct11 | ( | ByteReader & | buf | ) |
| static

Definition at line 164 of file newgrf_act11.cpp.