Click or drag to resize
SpriteFrame Class
This specialization of TileFrame is used specifically for sprite frames with collision masks (when mask alpha level is non-zero).
Inheritance Hierarchy

Namespace: (Default Namespace)
Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax
C#
public class SpriteFrame : TileFrame

The SpriteFrame type exposes the following members.

Constructors
Methods
  NameDescription
Public methodCompareTo
Compares frames based on their m_nAccumulatedDuration value
(Inherited from TileFrame.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldm_nAccumulatedDuration
Represents counter value, and is used to optimize frame searching
(Inherited from TileFrame.)
Public fieldsubFrames
A list of all the frameset frame indexes contained in this tile frame.
(Inherited from TileFrame.)
Top
Properties
  NameDescription
Public propertyMask
Returns the mask for this sprite frame.
Top
Remarks
Some sprites are simple enough that they can be treated very similar to tiles, and will simply use TileFrame directly. Others will use this class.
See Also