Table of Contents

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

ITextureAtlasAPI

Mapping

public required FastSmallDictionary<string, int> Mapping

Field Value

FastSmallDictionary<string, int>

Properties

AtlasSize

This returns the size of the atlas this texture resides in.

public Size2i AtlasSize { get; }

Property Value

Size2i

this[string]

public TextureAtlasPosition this[string textureCode] { get; }

Parameters

textureCode string

Property Value

TextureAtlasPosition