Oolite
Loading...
Searching...
No Matches
OOSound(OOCustomSounds) Category Reference

#include <Universe.h>

Instance Methods

(id) - initWithCustomSoundKey:
 

Class Methods

(id) + soundWithCustomSoundKey:
 

Detailed Description

Definition at line 858 of file Universe.h.

Method Documentation

◆ initWithCustomSoundKey:

- (id) initWithCustomSoundKey: (NSString *)  key

Definition at line 10753 of file Universe.m.

11095 :(NSString *)key
11096{
11097 [self release];
11098 return [[OOSound soundWithCustomSoundKey:key] retain];
11099}
id soundWithCustomSoundKey:(NSString *key)
Definition Universe.m:11087

◆ soundWithCustomSoundKey:

+ (id) soundWithCustomSoundKey: (NSString *)  key

Definition at line 10753 of file Universe.m.

11087 :(NSString *)key
11088{
11089 NSString *fileName = [UNIVERSE soundNameForCustomSoundKey:key];
11090 if (fileName == nil) return nil;
11091 return [ResourceManager ooSoundNamed:fileName inFolder:@"Sounds"];
11092}
return nil
OOSound * ooSoundNamed:inFolder:(NSString *fileName,[inFolder] NSString *folderName)

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