Table of Contents

Class Music

Namespace
TinyLife
Assembly
Tiny Life.dll

This class handles the game's in-game music. To register new music tracks for being selected, use Register(Song, params Occasion[]).

public static class Music
Inheritance
Music
Inherited Members

Methods

Register(Song, params Occasion[])

Registers a new music track to be played at the given occasions. The music track will be added to the music pool and randomly selected for playing.

public static void Register(Song song, params Music.Occasion[] occasions)

Parameters

song Song

The song to play.

occasions Occasion[]

The occasions that this song should be allowed to play on.

Exceptions

ArgumentException

Thrown if occasions is empty.