Constructs a new state given all the information for the state.
Namespace: (Default Namespace)Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax public SpriteState(
int width,
int height,
Frameset frameset,
Rectangle localBounds,
params TileFrame[] frames
)
Parameters
- width
- Type: SystemInt32
Solid width of this state. Each state within a sprite can have its own solid width. - height
- Type: SystemInt32
Solid height of this state. Each state within a sprite can have its own solid height. - frameset
- Type: (Default Namespace)Frameset
Frameset containing all the graphics for this state. - localBounds
- Type: System.DrawingRectangle
Rectangle that visually enclompases the graphics of all the frames of this state.
This is used to determine when the sprite is fully or partially visible on the layer and needs to be drawn. - frames
- Type: (Default Namespace)TileFrame
A sequential list of all frames from frameset that are included in this state.
See Also