MCPcopy Create free account
hub / github.com/SimHacker/micropolis / makeSound

Method makeSound

MicropolisCore/src/MicropolisEngine/src/stubs.cpp:320–326  ·  view source on GitHub ↗

* Instruct the front-end to make a sound. * @param channel Name of the sound channel, which can effect the * sound (location, volume, spatialization, etc). * Use "city" for city sounds effects, and "interface" * for user interface sounds. * @param sound Name of the sound. * @param x Tile X position of sound, 0 to WORLD_W, or -1 for everywh

Source from the content-addressed store, hash-verified

318 * @param y Tile Y position of sound, 0 to WORLD_H, or -1 for everywhere.
319 */
320void Micropolis::makeSound(const char *channel, const char *sound,
321 int x, int y)
322{
323 if (enableSound) {
324 callback("makeSound", "ssdd", channel, sound, x, y);
325 }
326}
327
328
329/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected