C# Class Alexandria.Engines.Sciagi.ResourceMap

A collection of Resources. The resource map describes how to find resources within the resource pages.
Inheritance: Glare.Assets.FolderAsset
Show file Open project: Burton-Radons/Alexandria Class Usage Examples

Public Methods

Method Description
DetectVersion ( AssetLoader loader ) : ResourceMapVersion

Attempt to detect the version of the resource map, returning it or ResourceMapVersion.None if this is not a resource map or is not known to be one.

GetPageName ( int index ) : string

Get the name of a page.

GetPagePath ( int index ) : string

Get the path to a page.

OpenPage ( int index ) : BinaryReader

Open a page.

Private Methods

Method Description
AddResource ( ResourceId id, FolderAsset>.Dictionary folders ) : void
DetectVersionSci0 ( AssetLoader loader ) : bool
DetectVersionSci1 ( AssetLoader loader ) : bool
DetectVersionSci2 ( AssetLoader loader ) : bool
ResourceMap ( AssetManager manager, AssetLoader loader ) : System

Method Details

DetectVersion() public static method

Attempt to detect the version of the resource map, returning it or ResourceMapVersion.None if this is not a resource map or is not known to be one.
public static DetectVersion ( AssetLoader loader ) : ResourceMapVersion
loader Glare.Assets.AssetLoader
return ResourceMapVersion

GetPageName() public method

Get the name of a page.
public GetPageName ( int index ) : string
index int
return string

GetPagePath() public method

Get the path to a page.
public GetPagePath ( int index ) : string
index int
return string

OpenPage() public method

Open a page.
public OpenPage ( int index ) : BinaryReader
index int
return System.IO.BinaryReader