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
|
|
Name to index mapping for resolving animation names once.
|
|
Named animations - Dictionary for O(1) runtime lookup.
|
|
Pre-resolved animation array for index-based access.
|
Frame dimensions (width, height).
|
|
Optional normal map for lighting.
|
|
Origin point for drawing (typically center of frame).
|
|
The texture atlas.
|
Mibo