C# Класс AGS.Types.SpriteFolder

Наследование: ISpriteFolder
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
FindFolderThatContainsSprite ( int spriteNumber ) : SpriteFolder

Finds the SpriteFolder object for the folder that contains the sprite. Returns null if the sprite is not found.

FindSpriteByID ( int spriteNumber, bool recursive ) : Sprite

Finds the Sprite object for the specified sprite number. Returns null if the sprite is not found.

GetAllSpritesFromAllSubFolders ( ) : IList

Assembles a list of all the sprites in the current folder and sub-folders

NotifyClientsOfUpdate ( ) : void

Causes the SpritesUpdated event to be fired. You should call this if you modify the sprites and need the Sprite Manager window to update to reflect the changes. Only call this on the Root sprite folder.

SpriteFolder ( XmlNode node ) : System
SpriteFolder ( string name ) : System
ToXml ( XmlTextWriter writer ) : void

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

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

Finds the SpriteFolder object for the folder that contains the sprite. Returns null if the sprite is not found.
public FindFolderThatContainsSprite ( int spriteNumber ) : SpriteFolder
spriteNumber int Sprite number to look for
Результат SpriteFolder

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

Finds the Sprite object for the specified sprite number. Returns null if the sprite is not found.
public FindSpriteByID ( int spriteNumber, bool recursive ) : Sprite
spriteNumber int Sprite number to look for
recursive bool Whether to also search sub-folders
Результат Sprite

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

Assembles a list of all the sprites in the current folder and sub-folders
public GetAllSpritesFromAllSubFolders ( ) : IList
Результат IList

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

Causes the SpritesUpdated event to be fired. You should call this if you modify the sprites and need the Sprite Manager window to update to reflect the changes. Only call this on the Root sprite folder.
public NotifyClientsOfUpdate ( ) : void
Результат void

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

public SpriteFolder ( XmlNode node ) : System
node System.Xml.XmlNode
Результат System

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

public SpriteFolder ( string name ) : System
name string
Результат System

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

public ToXml ( XmlTextWriter writer ) : void
writer System.Xml.XmlTextWriter
Результат void