Show / Hide Table of Contents

    Interface IResourcePack

    A resource pack is an abstract representation of a storage space for retrieving resources. There can be a resource pack that's based on the file system, a resource pack which retrieves embedded resource in the game file itself, a resource pack that downloads resources from the web, a resource pack based on a zip file, etc. IResourceLoader

    Namespace: AGS.API
    Assembly: AGS.API.dll
    Syntax
    public interface IResourcePack

    Methods

    | Improve this Doc View Source

    LoadResource(String)

    Loads a resource from a embedded/file path.

    Declaration
    IResource LoadResource(string path)
    Parameters
    Type Name Description
    System.String path

    Path.

    Returns
    Type Description
    IResource

    The resource.

    | Improve this Doc View Source

    LoadResources(String)

    Loads all the the resource available in the specified embedded/file system folder.

    Declaration
    List<IResource> LoadResources(string folder)
    Parameters
    Type Name Description
    System.String folder

    Folder.

    Returns
    Type Description
    System.Collections.Generic.List<IResource>

    The resources.

    | Improve this Doc View Source

    ResolvePath(String)

    Finds a matching resource pack specific path for the specified global resource path.

    Declaration
    string ResolvePath(string path)
    Parameters
    Type Name Description
    System.String path

    Path.

    Returns
    Type Description
    System.String

    The resource pack path if found a matching resource, otherwise null.

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX