C# Класс Ultima.Sounds

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
Sounds ( ) : System
WaveHeader ( int length ) : int[]

Описание методов

Add() публичный статический Метод

public static Add ( int id, string name, string file ) : void
id int
name string
file string
Результат void

GetSound() публичный статический Метод

Returns UOSound of ID
public static GetSound ( int soundID ) : UOSound
soundID int
Результат UOSound

GetSound() публичный статический Метод

Returns UOSound of ID with bool translated in .def
public static GetSound ( int soundID, bool &translated ) : UOSound
soundID int
translated bool
Результат UOSound

GetSoundLength() публичный статический Метод

Returns length of SoundID
public static GetSoundLength ( int soundID ) : double
soundID int
Результат double

Initialize() публичный статический Метод

Reads Sounds and def
public static Initialize ( ) : void
Результат void

IsValidSound() публичный статический Метод

Returns Soundname and tests if valid
public static IsValidSound ( int soundID, string &name ) : bool
soundID int
name string
Результат bool

Remove() публичный статический Метод

public static Remove ( int id ) : void
id int
Результат void

Save() публичный статический Метод

public static Save ( string path ) : void
path string
Результат void

SaveSoundListToCSV() публичный статический Метод

public static SaveSoundListToCSV ( string FileName ) : void
FileName string
Результат void