Oolite 1.91.0.7745-260117-205bce7
Loading...
Searching...
No Matches
OOSound(OOCustomSounds) Category Reference

#include <Universe.h>

Instance Methods

(id) - initWithCustomSoundKey:

Class Methods

(id) + soundWithCustomSoundKey:

Detailed Description

Definition at line 860 of file Universe.h.

Method Documentation

◆ initWithCustomSoundKey:

- (id) initWithCustomSoundKey: (NSString *) key

Extends class OOSound.

Definition at line 11079 of file Universe.m.

11079 :(NSString *)key
11080{
11081 [self release];
11082 return [[OOSound soundWithCustomSoundKey:key] retain];
11083}
id soundWithCustomSoundKey:(NSString *key)
Definition Universe.m:11071

References OOSound::soundWithCustomSoundKey:.

Here is the call graph for this function:

◆ soundWithCustomSoundKey:

+ (id) soundWithCustomSoundKey: (NSString *) key

Extends class OOSound.

Definition at line 11071 of file Universe.m.

11071 :(NSString *)key
11072{
11073 NSString *fileName = [UNIVERSE soundNameForCustomSoundKey:key];
11074 if (fileName == nil) return nil;
11075 return [ResourceManager ooSoundNamed:fileName inFolder:@"Sounds"];
11076}
return nil
OOSound * ooSoundNamed:inFolder:(NSString *fileName,[inFolder] NSString *folderName)

References nil, and ResourceManager::ooSoundNamed:inFolder:.

Here is the call graph for this function:

The documentation for this category was generated from the following files: