Table of Contents

Class AssetLocationAndSource

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll

Defines a complete path to an assets, including it's domain. Includes an extra Source field for debugging.

[TypeConverter(typeof(StringAssetLocationConverter))]
public class AssetLocationAndSource : AssetLocation, IComparable<AssetLocation>, IEquatable<AssetLocation>
Inheritance
AssetLocationAndSource
Implements
Inherited Members
Extension Methods

Constructors

AssetLocationAndSource(string)

public AssetLocationAndSource(string location)

Parameters

location string

AssetLocationAndSource(string, string, string)

[Obsolete("For reduced RAM usage please use newer overloads e.g. AssetLocationAndSource(domain, path, message, sourceDomain, sourcePath)", false)]
public AssetLocationAndSource(string domain, string path, string oldStyleSource)

Parameters

domain string
path string
oldStyleSource string

AssetLocationAndSource(string, string, string, string, string, int)

public AssetLocationAndSource(string domain, string path, string message, string sourceDomain, string sourcePath, int alternateNo = -1)

Parameters

domain string
path string
message string
sourceDomain string
sourcePath string
alternateNo int

AssetLocationAndSource(string, string, SourceStringComponents)

public AssetLocationAndSource(string domain, string path, SourceStringComponents source)

Parameters

domain string
path string
source SourceStringComponents

AssetLocationAndSource(AssetLocation)

public AssetLocationAndSource(AssetLocation loc)

Parameters

loc AssetLocation

AssetLocationAndSource(AssetLocation, string)

[Obsolete("For reduced RAM usage please use newer overloads e.g. AssetLocationAndSource(loc, message, sourceAssetLoc)", false)]
public AssetLocationAndSource(AssetLocation loc, string oldStyleSource)

Parameters

loc AssetLocation
oldStyleSource string

AssetLocationAndSource(AssetLocation, string, AssetLocation, int)

public AssetLocationAndSource(AssetLocation loc, string message, AssetLocation sourceLoc, int alternateNo = -1)

Parameters

loc AssetLocation
message string
sourceLoc AssetLocation
alternateNo int

AssetLocationAndSource(AssetLocation, SourceStringComponents)

public AssetLocationAndSource(AssetLocation loc, SourceStringComponents source)

Parameters

loc AssetLocation
source SourceStringComponents

Fields

AddToAllAtlasses

public bool AddToAllAtlasses

Field Value

bool

Source

The source of a given asset.

public SourceStringComponents Source

Field Value

SourceStringComponents

loadedAlready

Used to avoid duplication when loading colormaps and shapes

public volatile int loadedAlready

Field Value

int