Header menu logo Mibo

SpriteSheet Type

A loaded sprite sheet with texture and named animations.

Uses Dictionary for O(1) runtime lookup of animations by name. The AnimationsByIndex array enables index-based access for zero-string-allocation updates during the hot path.

Record fields

Record Field Description

AnimationIndices

Full Usage: AnimationIndices

Field type: IReadOnlyDictionary<string, int>

Name to index mapping for resolving animation names once.

Field type: IReadOnlyDictionary<string, int>

Animations

Full Usage: Animations

Field type: IReadOnlyDictionary<string, Animation>

Named animations - Dictionary for O(1) runtime lookup.

Field type: IReadOnlyDictionary<string, Animation>

AnimationsByIndex

Full Usage: AnimationsByIndex

Field type: Animation[]

Pre-resolved animation array for index-based access.

Field type: Animation[]

FrameSize

Full Usage: FrameSize

Field type: Point

Frame dimensions (width, height).

Field type: Point

NormalMap

Full Usage: NormalMap

Field type: Texture2D voption

Optional normal map for lighting.

Field type: Texture2D voption

Origin

Full Usage: Origin

Field type: Vector2

Origin point for drawing (typically center of frame).

Field type: Vector2

Texture

Full Usage: Texture

Field type: Texture2D

The texture atlas.

Field type: Texture2D

Type something to start searching.