Class MusicTrackPart
- Namespace
- Vintagestory.API.Client
- Assembly
- VintagestoryAPI.dll
[JsonObject(MemberSerialization.OptIn)]
public class MusicTrackPart
- Inheritance
-
MusicTrackPart
- Inherited Members
- Extension Methods
Fields
Files
The files for the part.
[JsonProperty]
public AssetLocation[] Files
Field Value
Loading
Am I loading?
public bool Loading
Field Value
MaxSuitability
The maximum Suitability of the given track
[JsonProperty]
public float MaxSuitability
Field Value
MaxVolumne
The maximum volume of a given track.
[JsonProperty]
public float MaxVolumne
Field Value
MinSuitability
The minimum Suitability of the given track
[JsonProperty]
public float MinSuitability
Field Value
MinVolumne
The minimum volume of a given track.
[JsonProperty]
public float MinVolumne
Field Value
PosY
the Y position.
[JsonProperty]
public float[] PosY
Field Value
- float[]
Sound
The loaded sound
public ILoadedSound Sound
Field Value
StartedMs
Start time in Miliseconds
public long StartedMs
Field Value
Sunlight
[JsonProperty]
public float[] Sunlight
Field Value
- float[]
Properties
IsPlaying
Am I playing?
public bool IsPlaying { get; }
Property Value
Methods
Applicable(IWorldAccessor, TrackedPlayerProperties)
Am I applicable?
public bool Applicable(IWorldAccessor world, TrackedPlayerProperties props)
Parameters
world
IWorldAccessorworld information
props
TrackedPlayerPropertiesthe properties of the current track.
Returns
CurrentSuitability(IWorldAccessor, TrackedPlayerProperties)
The current Suitability of the track.
public float CurrentSuitability(IWorldAccessor world, TrackedPlayerProperties props)
Parameters
world
IWorldAccessorworld information
props
TrackedPlayerPropertiesthe properties of the current track.
Returns
CurrentVolume(IWorldAccessor, TrackedPlayerProperties)
The current volume of the track.
public float CurrentVolume(IWorldAccessor world, TrackedPlayerProperties props)
Parameters
world
IWorldAccessorworld information
props
TrackedPlayerPropertiesthe properties of the current track.
Returns
ExpandFiles(IAssetManager)
Expands the target files.
public virtual void ExpandFiles(IAssetManager assetManager)
Parameters
assetManager
IAssetManagerThe current AssetManager instance.