Oolite 1.91.0.7645-241119-222d325
Loading...
Searching...
No Matches
OOSound(OOCustomSounds) Category Reference

#include <Universe.h>

Instance Methods

(id) - initWithCustomSoundKey:
 

Class Methods

(id) + soundWithCustomSoundKey:
 

Detailed Description

Definition at line 849 of file Universe.h.

Method Documentation

◆ initWithCustomSoundKey:

- (id) initWithCustomSoundKey: (NSString *) key

Extends class OOSound.

Definition at line 10697 of file Universe.m.

11040 :(NSString *)key
11041{
11042 [self release];
11043 return [[OOSound soundWithCustomSoundKey:key] retain];
11044}
id soundWithCustomSoundKey:(NSString *key)
Definition Universe.m:11032

◆ soundWithCustomSoundKey:

+ (id) soundWithCustomSoundKey: (NSString *) key

Extends class OOSound.

Definition at line 10697 of file Universe.m.

11032 :(NSString *)key
11033{
11034 NSString *fileName = [UNIVERSE soundNameForCustomSoundKey:key];
11035 if (fileName == nil) return nil;
11036 return [ResourceManager ooSoundNamed:fileName inFolder:@"Sounds"];
11037}
return nil
OOSound * ooSoundNamed:inFolder:(NSString *fileName,[inFolder] NSString *folderName)

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