C# Класс GPSTD_RM.AnimatedSprite

This class represents a set of animation loops.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AnimatedSprite ( AnimationLoop loops ) : System

Create a sprite with an array of loops.

GetLoop ( string loopName ) : AnimationLoop

Returns the animation loop that matches up with the loop name.

SpriteFromFile ( string filename, GraphicsDevice gDev ) : AnimatedSprite

Read a file that specifies each of the animation loops.

Описание методов

AnimatedSprite() публичный Метод

Create a sprite with an array of loops.
public AnimatedSprite ( AnimationLoop loops ) : System
loops AnimationLoop An array of loops.
Результат System

GetLoop() публичный Метод

Returns the animation loop that matches up with the loop name.
public GetLoop ( string loopName ) : AnimationLoop
loopName string The loop you're looking for.
Результат AnimationLoop

SpriteFromFile() публичный статический Метод

Read a file that specifies each of the animation loops.
public static SpriteFromFile ( string filename, GraphicsDevice gDev ) : AnimatedSprite
filename string The file specifying the sprite.
gDev GraphicsDevice
Результат AnimatedSprite