Метод | Описание | |
---|---|---|
Draw ( |
Outputs the sprite to the screen.
|
|
GetTextureRegion ( |
Get a piece of sprite texture for collision detection.
|
|
Reset ( ) : void |
Reset the sprite.
|
|
SetHotSpot ( HorizontalAlignment horizontal = HorizontalAlignment.Center, VerticalAlignment vertical = VerticalAlignment.Center ) : void |
Set the hotspot to a particular place inside the sprite.
|
|
Update ( ) : void |
Update the sprite.
|
Метод | Описание | |
---|---|---|
SpriteBase ( |
||
SpriteBase ( |
public abstract Draw ( |
||
batch | Sprite batch. | |
disableLayering | bool | Whether to use layer ordering or not. |
Результат | void |
public abstract GetTextureRegion ( |
||
rect | Rectangle to get. | |
Результат | Microsoft.Xna.Framework.Color[] |
public SetHotSpot ( HorizontalAlignment horizontal = HorizontalAlignment.Center, VerticalAlignment vertical = VerticalAlignment.Center ) : void | ||
horizontal | HorizontalAlignment | |
vertical | VerticalAlignment | |
Результат | void |
protected SpriteBase ( |
||
parent | ||
Результат | Microsoft.Xna.Framework |
protected SpriteBase ( |
||
parent | ||
tex | Microsoft.Xna.Framework.Graphics.Texture2D | |
Результат | Microsoft.Xna.Framework |