Show / Hide Table of Contents

    Class LoaderBase

    Inheritance
    System.Object
    LoaderBase
    FontLoader
    MultiMediaLoader
    PngLoader
    PoLoader
    WavLoader
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Rosetta.Runtime.Loader
    Assembly: Rosetta.Runtime.dll
    Syntax
    public abstract class LoaderBase

    Fields

    | Improve this Doc View Source

    ExtensionName

    The extension of the file to be loaded.

    Declaration
    public string ExtensionName
    Field Value
    Type Description
    System.String
    | Improve this Doc View Source

    LangFlag

    The LangFlag of the file to be loaded.

    Declaration
    public LangFlag LangFlag
    Field Value
    Type Description
    LangFlag
    | Improve this Doc View Source

    Name

    The file name of the file to be loaded.

    Declaration
    public string Name
    Field Value
    Type Description
    System.String

    Methods

    | Improve this Doc View Source

    GetFilePath(String)

    Returns the actual path of the I18N file to be loaded.

    Declaration
    public string GetFilePath(string path)
    Parameters
    Type Name Description
    System.String path
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    Load<T>(String, String, Nullable<LangFlag>)

    Load i18n file by LangFlag.

    Declaration
    public abstract T Load<T>(string space, string filename, LangFlag? flag = default(LangFlag? ))
    Parameters
    Type Name Description
    System.String space

    the file space of the to be loaded

    System.String filename

    The file name of the file to be loaded.

    System.Nullable<LangFlag> flag

    The LangFlag of the file to be loaded.

    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    The file load type(string or binary)

    | Improve this Doc View Source

    LoadBase(String, LangFlag)

    Declaration
    protected void LoadBase(string filename, LangFlag flag)
    Parameters
    Type Name Description
    System.String filename
    LangFlag flag
    | Improve this Doc View Source

    LoadFile<T>()

    Loading i18n files will be loaded in two ways: binary or string

    Declaration
    public T LoadFile<T>()
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T
    • Improve this Doc
    • View Source
    • 0 Comments
    Back to top Copyright © Shitake.
    Generated by DocFX