Class ShapeTextureSource
- Namespace
- Vintagestory.API.Client
- Assembly
- VintagestoryAPI.dll
public class ShapeTextureSource : ITexPositionSource
- Inheritance
-
ShapeTextureSource
- Implements
- Inherited Members
- Extension Methods
Constructors
ShapeTextureSource(ICoreClientAPI, Shape, string)
public ShapeTextureSource(ICoreClientAPI capi, Shape shape, string filenameForLogging)
Parameters
capi
ICoreClientAPIshape
ShapefilenameForLogging
string
ShapeTextureSource(ICoreClientAPI, Shape, string, IDictionary<string, CompositeTexture>, TexturePathUpdater)
public ShapeTextureSource(ICoreClientAPI capi, Shape shape, string filenameForLogging, IDictionary<string, CompositeTexture> texturesSource, TexturePathUpdater pathUpdater)
Parameters
capi
ICoreClientAPIshape
ShapefilenameForLogging
stringtexturesSource
IDictionary<string, CompositeTexture>pathUpdater
TexturePathUpdater
Fields
firstTexPos
public TextureAtlasPosition? firstTexPos
Field Value
textures
public Dictionary<string, CompositeTexture> textures
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
textureCode
string