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
AssetLocationAndSource(string, string, string, string, string, int)
public AssetLocationAndSource(string domain, string path, string message, string sourceDomain, string sourcePath, int alternateNo = -1)
Parameters
AssetLocationAndSource(string, string, SourceStringComponents)
public AssetLocationAndSource(string domain, string path, SourceStringComponents source)
Parameters
domain
stringpath
stringsource
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
AssetLocationoldStyleSource
string
AssetLocationAndSource(AssetLocation, string, AssetLocation, int)
public AssetLocationAndSource(AssetLocation loc, string message, AssetLocation sourceLoc, int alternateNo = -1)
Parameters
loc
AssetLocationmessage
stringsourceLoc
AssetLocationalternateNo
int
AssetLocationAndSource(AssetLocation, SourceStringComponents)
public AssetLocationAndSource(AssetLocation loc, SourceStringComponents source)
Parameters
loc
AssetLocationsource
SourceStringComponents
Fields
AddToAllAtlasses
public bool AddToAllAtlasses
Field Value
Source
The source of a given asset.
public SourceStringComponents Source
Field Value
loadedAlready
Used to avoid duplication when loading colormaps and shapes
public volatile int loadedAlready