Class LoaderBase
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 SourceExtensionName
The extension of the file to be loaded.
Declaration
public string ExtensionName
Field Value
Type | Description |
---|---|
System.String |
LangFlag
The LangFlag of the file to be loaded.
Declaration
public LangFlag LangFlag
Field Value
Type | Description |
---|---|
LangFlag |
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 SourceGetFilePath(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 |
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) |
LoadBase(String, LangFlag)
Declaration
protected void LoadBase(string filename, LangFlag flag)
Parameters
Type | Name | Description |
---|---|---|
System.String | filename | |
LangFlag | flag |
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 |