Class ContainedTextureSource
- Namespace
- Vintagestory.API.Client
- Assembly
- VintagestoryAPI.dll
Helper class for implementors of ITexPositionSource Open in GitHub
public class ContainedTextureSource : ITexPositionSource
- Inheritance
-
ContainedTextureSource
- Implements
- Inherited Members
- Extension Methods
Constructors
ContainedTextureSource(ICoreClientAPI, ITextureAtlasAPI, Dictionary<string, AssetLocation>, string)
public ContainedTextureSource(ICoreClientAPI capi, ITextureAtlasAPI targetAtlas, Dictionary<string, AssetLocation> textures, string sourceForErrorLogging)
Parameters
capiICoreClientAPItargetAtlasITextureAtlasAPItexturesDictionary<string, AssetLocation>sourceForErrorLoggingstring
Fields
Textures
public readonly Dictionary<string, AssetLocation> Textures
Field Value
capi
protected readonly ICoreClientAPI capi
Field Value
sourceForErrorLogging
protected readonly string sourceForErrorLogging
Field Value
targetAtlas
protected readonly ITextureAtlasAPI targetAtlas
Field Value
Properties
AtlasSize
This returns the size of the atlas this texture resides in.
public Size2i AtlasSize { get; }
Property Value
this[string]
public TextureAtlasPosition this[string textureCode] { get; }
Parameters
textureCodestring
Property Value
Methods
getOrCreateTexPos(AssetLocation)
protected virtual TextureAtlasPosition getOrCreateTexPos(AssetLocation texturePath)
Parameters
texturePathAssetLocation