C# Class Ultima.Sounds

Afficher le fichier Open project: polserver/poltools

Méthodes publiques

Méthode Description
Add ( int id, string name, string file ) : void
GetSound ( int soundID ) : UOSound

Returns UOSound of ID

GetSound ( int soundID, bool &translated ) : UOSound

Returns UOSound of ID with bool translated in .def

GetSoundLength ( int soundID ) : double

Returns length of SoundID

Initialize ( ) : void

Reads Sounds and def

IsValidSound ( int soundID, string &name ) : bool

Returns Soundname and tests if valid

Remove ( int id ) : void
Save ( string path ) : void
SaveSoundListToCSV ( string FileName ) : void

Private Methods

Méthode Description
Sounds ( ) : System
WaveHeader ( int length ) : int[]

Method Details

Add() public static méthode

public static Add ( int id, string name, string file ) : void
id int
name string
file string
Résultat void

GetSound() public static méthode

Returns UOSound of ID
public static GetSound ( int soundID ) : UOSound
soundID int
Résultat UOSound

GetSound() public static méthode

Returns UOSound of ID with bool translated in .def
public static GetSound ( int soundID, bool &translated ) : UOSound
soundID int
translated bool
Résultat UOSound

GetSoundLength() public static méthode

Returns length of SoundID
public static GetSoundLength ( int soundID ) : double
soundID int
Résultat double

Initialize() public static méthode

Reads Sounds and def
public static Initialize ( ) : void
Résultat void

IsValidSound() public static méthode

Returns Soundname and tests if valid
public static IsValidSound ( int soundID, string &name ) : bool
soundID int
name string
Résultat bool

Remove() public static méthode

public static Remove ( int id ) : void
id int
Résultat void

Save() public static méthode

public static Save ( string path ) : void
path string
Résultat void

SaveSoundListToCSV() public static méthode

public static SaveSoundListToCSV ( string FileName ) : void
FileName string
Résultat void