Table of Contents

Class MusicTrackPart

Namespace
Vintagestory.API.Client
Assembly
VintagestoryAPI.dll
[JsonObject(MemberSerialization.OptIn)]
public class MusicTrackPart
Inheritance
MusicTrackPart
Inherited Members

Fields

Files

The files for the part.

[JsonProperty]
public AssetLocation[] Files

Field Value

AssetLocation[]

Loading

Am I loading?

public bool Loading

Field Value

bool

MaxSuitability

The maximum Suitability of the given track

[JsonProperty]
public float MaxSuitability

Field Value

float

MaxVolumne

The maximum volume of a given track.

[JsonProperty]
public float MaxVolumne

Field Value

float

MinSuitability

The minimum Suitability of the given track

[JsonProperty]
public float MinSuitability

Field Value

float

MinVolumne

The minimum volume of a given track.

[JsonProperty]
public float MinVolumne

Field Value

float

PosY

the Y position.

[JsonProperty]
public float[] PosY

Field Value

float[]

Sound

The loaded sound

public ILoadedSound Sound

Field Value

ILoadedSound

StartedMs

Start time in Miliseconds

public long StartedMs

Field Value

long

Sunlight

[JsonProperty]
public float[] Sunlight

Field Value

float[]

Properties

IsPlaying

Am I playing?

public bool IsPlaying { get; }

Property Value

bool

Methods

Applicable(IWorldAccessor, TrackedPlayerProperties)

Am I applicable?

public bool Applicable(IWorldAccessor world, TrackedPlayerProperties props)

Parameters

world IWorldAccessor

world information

props TrackedPlayerProperties

the properties of the current track.

Returns

bool

CurrentSuitability(IWorldAccessor, TrackedPlayerProperties)

The current Suitability of the track.

public float CurrentSuitability(IWorldAccessor world, TrackedPlayerProperties props)

Parameters

world IWorldAccessor

world information

props TrackedPlayerProperties

the properties of the current track.

Returns

float

CurrentVolume(IWorldAccessor, TrackedPlayerProperties)

The current volume of the track.

public float CurrentVolume(IWorldAccessor world, TrackedPlayerProperties props)

Parameters

world IWorldAccessor

world information

props TrackedPlayerProperties

the properties of the current track.

Returns

float

ExpandFiles(IAssetManager)

Expands the target files.

public virtual void ExpandFiles(IAssetManager assetManager)

Parameters

assetManager IAssetManager

The current AssetManager instance.