C# Class OpenRA.Graphics.SpriteCache

Show file Open project: pchote/OpenRA Class Usage Examples

Public Properties

Property Type Description
SheetBuilder SheetBuilder

Public Methods

Method Description
AllCached ( string filename ) : IEnumerable

Returns all instances of sets of sprites with the given filename

Reload ( string filename ) : OpenRA.Graphics.Sprite[]

Loads and caches a new instance of sprites with the given filename

SpriteCache ( IReadOnlyFileSystem fileSystem, ISpriteLoader loaders, SheetBuilder sheetBuilder ) : System.Collections.Generic
this ( string filename ) : OpenRA.Graphics.Sprite[]

Returns the first set of sprites with the given filename.

Private Methods

Method Description
LoadSprite ( string filename, List cache ) : OpenRA.Graphics.Sprite[]

Method Details

AllCached() public method

Returns all instances of sets of sprites with the given filename
public AllCached ( string filename ) : IEnumerable
filename string
return IEnumerable

Reload() public method

Loads and caches a new instance of sprites with the given filename
public Reload ( string filename ) : OpenRA.Graphics.Sprite[]
filename string
return OpenRA.Graphics.Sprite[]

SpriteCache() public method

public SpriteCache ( IReadOnlyFileSystem fileSystem, ISpriteLoader loaders, SheetBuilder sheetBuilder ) : System.Collections.Generic
fileSystem IReadOnlyFileSystem
loaders ISpriteLoader
sheetBuilder SheetBuilder
return System.Collections.Generic

this() public method

Returns the first set of sprites with the given filename.
public this ( string filename ) : OpenRA.Graphics.Sprite[]
filename string
return OpenRA.Graphics.Sprite[]

Property Details

SheetBuilder public property

public SheetBuilder,OpenRA.Graphics SheetBuilder
return SheetBuilder