Drag[en]gine Script Module DragonScript 1.23
Loading...
Searching...
No Matches
Dragengine.Audio.MaterialSounds.LoadImpactMaterialSound Class Reference

Load impact material sounds from xml file. More...

Inheritance diagram for Dragengine.Audio.MaterialSounds.LoadImpactMaterialSound:

Public Member Functions

LoadSynthesizer getSynthesizerLoader ()
 Synthesizer loader.
 
void loadFromFile (String filename, ImpactMaterialSounds materials)
 Load impact material sounds from xml file.
 
void loadFromFiles (ImpactMaterialSounds materials, String directory, bool recursive)
 Scan for skin annotation files loading them.
 
void loadFromFiles (ImpactMaterialSounds materials, String directory, String pattern, bool recursive)
 Scan for skin annotation files loading them.
 
LoadImpactMaterialSound new (Console console)
 Create loader.
 
LoadImpactMaterialSound new (Console console, String name)
 Create loader.
 
void parseImpactMaterialSound (EasyXMLElement root, ImpactMaterialSounds materials, String baseDirectory)
 Parse impact material sound tag.
 
MaterialSound parseMaterialSound (EasyXMLElement root, String baseDirectory)
 Parse material sound tag.
 
void setSynthesizerLoader (LoadSynthesizer loader)
 Set synthesizer loader.
 

Detailed Description

Load impact material sounds from xml file.

Member Function Documentation

◆ getSynthesizerLoader()

LoadSynthesizer Dragengine.Audio.MaterialSounds.LoadImpactMaterialSound.getSynthesizerLoader ( )

Synthesizer loader.

◆ loadFromFile()

void Dragengine.Audio.MaterialSounds.LoadImpactMaterialSound.loadFromFile ( String  filename,
ImpactMaterialSounds  materials 
)

Load impact material sounds from xml file.

◆ loadFromFiles() [1/2]

void Dragengine.Audio.MaterialSounds.LoadImpactMaterialSound.loadFromFiles ( ImpactMaterialSounds  materials,
String  directory,
bool  recursive 
)

Scan for skin annotation files loading them.

Skin annotation files have the extension ".deimsnd".

Parameters
materialsImpact material sounds to load files into.
directoryAbsolute path to directory to scan for files.
recursiveIf true scans also in all child directories.

◆ loadFromFiles() [2/2]

void Dragengine.Audio.MaterialSounds.LoadImpactMaterialSound.loadFromFiles ( ImpactMaterialSounds  materials,
String  directory,
String  pattern,
bool  recursive 
)

Scan for skin annotation files loading them.

Skin annotation files have the extension ".deimsnd".

Parameters
materialsImpact material sounds to load files into.
directoryAbsolute path to directory to scan for files.
patternFile pattern to match. Has to be of the form "*.extension"
recursiveIf true scans also in all child directories.

◆ new() [1/2]

LoadImpactMaterialSound Dragengine.Audio.MaterialSounds.LoadImpactMaterialSound.new ( Console  console)

Create loader.

◆ new() [2/2]

LoadImpactMaterialSound Dragengine.Audio.MaterialSounds.LoadImpactMaterialSound.new ( Console  console,
String  name 
)

Create loader.

◆ parseImpactMaterialSound()

void Dragengine.Audio.MaterialSounds.LoadImpactMaterialSound.parseImpactMaterialSound ( EasyXMLElement  root,
ImpactMaterialSounds  materials,
String  baseDirectory 
)

Parse impact material sound tag.

◆ parseMaterialSound()

MaterialSound Dragengine.Audio.MaterialSounds.LoadImpactMaterialSound.parseMaterialSound ( EasyXMLElement  root,
String  baseDirectory 
)

Parse material sound tag.

◆ setSynthesizerLoader()

void Dragengine.Audio.MaterialSounds.LoadImpactMaterialSound.setSynthesizerLoader ( LoadSynthesizer  loader)

Set synthesizer loader.


The documentation for this class was generated from the following file: