Interface IAssetOrigin
- Namespace
- Vintagestory.API.Common
- Assembly
- VintagestoryAPI.dll
public interface IAssetOrigin
- Extension Methods
Properties
OriginPath
string OriginPath { get; }
Property Value
Methods
GetAssets(AssetCategory, bool)
Returns all assets of the given category which can be found in this origin
List<IAsset> GetAssets(AssetCategory category, bool shouldLoad = true)
Parameters
category
AssetCategoryshouldLoad
bool
Returns
GetAssets(AssetLocation, bool)
Returns all assets of the given base location path which can be found in this origin
List<IAsset> GetAssets(AssetLocation baseLocation, bool shouldLoad = true)
Parameters
baseLocation
AssetLocationshouldLoad
bool
Returns
IsAllowedToAffectGameplay()
Resource packs are not allowed to affect gameplay
bool IsAllowedToAffectGameplay()
Returns
LoadAsset(IAsset)
Loads the asset into memeory.
void LoadAsset(IAsset asset)
Parameters
asset
IAssetThe asset to be loaded
TryLoadAsset(IAsset)
Attempts to load the asset. Returns false if it fails.
bool TryLoadAsset(IAsset asset)
Parameters
asset
IAssetThe asset to be loaded.