findSoundByName

Script::findSoundByName

Returns the sound associated with the name.

Declaration

Sound* findSoundByName(const std::string& soundName);

Parameters

Name

Type

Description

soundName

const std::string&

The name of the Sound.

Returns

A pointer to a Sound if the name is associated with a Sound, else, returns nullptr.