|
OpenTTD Source 20260721-master-g25ec12c62d
|
NewGRF Action 0x11 handler. More...
#include "../stdafx.h"#include "../debug.h"#include "../newgrf_house.h"#include "../newgrf_sound.h"#include "../spritecache.h"#include "../string_func.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) |
NewGRF Action 0x11 handler.
Definition in file newgrf_act11.cpp.
|
static |
Definition at line 72 of file newgrf_act11.cpp.
|
static |
Process a sound import from another GRF file.
| sound | Destination for sound. |
Definition at line 25 of file newgrf_act11.cpp.
References FormatArrayAsHex(), GetFileByGRFID(), and UnflattenNewGRFLabel().
|
static |
Load a sound from a file.
| offs | File offset to read sound from. |
| sound | Destination for sound. |
Definition at line 56 of file newgrf_act11.cpp.
References SoundEntry::grf_container_ver, and NewGRF.
|
static |
Definition at line 165 of file newgrf_act11.cpp.