C# 클래스 AGS.Types.SpriteFolder

상속: ISpriteFolder
파일 보기 프로젝트 열기: adventuregamestudio/ags 1 사용 예제들

공개 메소드들

메소드 설명
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