Class DictionaryTextureSource
- Namespace
- Vintagestory.API.Client
- Assembly
- VintagestoryAPI.dll
A concrete but flexible ITexPositionSource for use with custom code logic Open in GitHub
public class DictionaryTextureSource : ITexPositionSource
- Inheritance
-
DictionaryTextureSource
- Implements
- Inherited Members
- Extension Methods
Fields
Atlas
public required ITextureAtlasAPI Atlas
Field Value
Mapping
public required FastSmallDictionary<string, int> Mapping
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