OpenTTD Source 20260206-master-g4d4e37dbf1
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()

void GRFSound ( ByteReader & buf)
static

Definition at line 71 of file newgrf_act11.cpp.

◆ ImportGRFSound()

void ImportGRFSound ( SoundEntry * sound)
static

Process a sound import from another GRF file.

Parameters
soundDestination for sound.

Definition at line 24 of file newgrf_act11.cpp.

References GetFileByGRFID().

◆ LoadGRFSound()

void LoadGRFSound ( size_t offs,
SoundEntry * sound )
static

Load a sound from a file.

Parameters
offsFile offset to read sound from.
soundDestination for sound.

Definition at line 55 of file newgrf_act11.cpp.

References SoundEntry::grf_container_ver, and NewGRF.

◆ SkipAct11()

void SkipAct11 ( ByteReader & buf)
static

Definition at line 164 of file newgrf_act11.cpp.