C# Class MusicController, UnderworldExporter

The music controller. Updates music tracks to play based on the state of the game world and player.
Inheritance: UWEBase
Afficher le fichier Open project: hankmorgan/UnderworldExporter Class Usage Examples

Méthodes publiques

Свойство Type Description
Combat bool
CombatTracks int[]
Death bool
DeathTracks int[]
EndGame bool
EndGameTracks int[]
Fleeing bool
FleeingTracks int[]
IdleTracks int[]
InIntro bool
InMap bool
Injured bool
InjuredTracks int[]
IntroTracks int[]
LastAttackCounter float
MainTrackList UnityEngine.AudioClip[]
MapTracks int[]
SpecialClip bool
Stopped bool
VictoryTracks int[]
WeaponDrawn bool
WeaponTracks int[]

Méthodes publiques

Méthode Description
PlaySpecialClip ( int newTrackList ) : void

PLays a special music clip. (eg fanfare)

Resume ( ) : void

Resumes playing music

ResumeAll ( ) : void
Stop ( ) : void

Stops music

StopAll ( ) : void

Stops all music processing

UpdateMusicState ( ) : void

Updates the state of the music based on the current world and player state.

Private Methods

Méthode Description
ChangeTracklist ( int newTrackList, int playingMode ) : void

Changes the track playing if we go to to a new list

GetMaxPriority ( ) : int

Gets the current music state that is active and has the highest priority.

PlayRandom ( int tracklist ) : void

Picks a random track to play from the selected playlist.

Start ( ) : void
Update ( ) : void

Method Details

PlaySpecialClip() public méthode

PLays a special music clip. (eg fanfare)
public PlaySpecialClip ( int newTrackList ) : void
newTrackList int New track list.
Résultat void

Resume() public méthode

Resumes playing music
public Resume ( ) : void
Résultat void

ResumeAll() public méthode

public ResumeAll ( ) : void
Résultat void

Stop() public méthode

Stops music
public Stop ( ) : void
Résultat void

StopAll() public méthode

Stops all music processing
public StopAll ( ) : void
Résultat void

UpdateMusicState() public méthode

Updates the state of the music based on the current world and player state.
public UpdateMusicState ( ) : void
Résultat void

Property Details

Combat public_oe property

Playing combat music
public bool Combat
Résultat bool

CombatTracks public_oe property

Array of the possible combat tracks
public int[] CombatTracks
Résultat int[]

Death public_oe property

PLayer character is death
public bool Death
Résultat bool

DeathTracks public_oe property

Array of the possible death tracks.
public int[] DeathTracks
Résultat int[]

EndGame public_oe property

is the end game track playing
public bool EndGame
Résultat bool

EndGameTracks public_oe property

Array of possible end game tracks.
public int[] EndGameTracks
Résultat int[]

Fleeing public_oe property

Is the player fleeing from combat (recently attacked and no weapon drawn)
public bool Fleeing
Résultat bool

FleeingTracks public_oe property

Array of the possible fleeing tracks.
public int[] FleeingTracks
Résultat int[]

IdleTracks public_oe property

Array of the possible idle tracks
public int[] IdleTracks
Résultat int[]

InIntro public_oe property

Playing intro music
public bool InIntro
Résultat bool

InMap public_oe property

In the automap
public bool InMap
Résultat bool

Injured public_oe property

Player character near death.
public bool Injured
Résultat bool

InjuredTracks public_oe property

Array of the possible injured tracks
public int[] InjuredTracks
Résultat int[]

IntroTracks public_oe property

Array of the possible intro tracks
public int[] IntroTracks
Résultat int[]

LastAttackCounter public_oe static_oe property

Tracks how long ago the last attack took place at.
public static float LastAttackCounter
Résultat float

MainTrackList public_oe property

The main track list. Contains all the tracks that can be played.
public AudioClip[],UnityEngine MainTrackList
Résultat UnityEngine.AudioClip[]

MapTracks public_oe property

Array of the possible automap tracks
public int[] MapTracks
Résultat int[]

SpecialClip public_oe property

Is a special clip such as a fan fare being played.
public bool SpecialClip
Résultat bool

Stopped public_oe property

Is music processing stopped
public bool Stopped
Résultat bool

VictoryTracks public_oe property

Array of the possible victory tracks
public int[] VictoryTracks
Résultat int[]

WeaponDrawn public_oe property

Weapon drawn music
public bool WeaponDrawn
Résultat bool

WeaponTracks public_oe property

Array of the possible weapon tracks
public int[] WeaponTracks
Résultat int[]