C# Класс Alexandria.Engines.Sciagi.ResourceMap

A collection of Resources. The resource map describes how to find resources within the resource pages.
Наследование: Glare.Assets.FolderAsset
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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.

Приватные методы

Метод Описание
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

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

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

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
Результат ResourceMapVersion

GetPageName() публичный метод

Get the name of a page.
public GetPageName ( int index ) : string
index int
Результат string

GetPagePath() публичный метод

Get the path to a page.
public GetPagePath ( int index ) : string
index int
Результат string

OpenPage() публичный метод

Open a page.
public OpenPage ( int index ) : BinaryReader
index int
Результат System.IO.BinaryReader