Class: TextFileLoader

gEngine.TextFileLoader

new TextFileLoader()

Default Constructor

loads an text file into resourceMap, either as simple text or as XML

Note: loads the a textfile and when done calls the callbackFunction()

fileName is treated as resource map key, file content is stored as asset

Source:

Members

(static) eTextFileType :enum|eTextFileType

Text file type tokens
Type:
  • enum | eTextFileType
Source:

(static) eTextFileType :enum|eTextFileType

Text file type tokens
Type:
  • enum | eTextFileType
Source:

Methods

(static) loadTextFile(fileName, fileType, callbackFunction) → {void}

Load text file if fileType is a eTextFileType
Parameters:
Name Type Description
fileName String File Path name
fileType enum | eTextFileType File type token
callbackFunction function Callback Function called when file load is complete
Source:
Returns:
Type
void

(static) loadTextFile(fileName, fileType, callbackFunction) → {void}

Load text file if fileType is a eTextFileType
Parameters:
Name Type Description
fileName String File Path name
fileType enum | eTextFileType File type token
callbackFunction function Callback Function called when file load is complete
Source:
Returns:
Type
void

(static) unloadTextFile(fileName) → {void}

Unload the TextFile
Parameters:
Name Type Description
fileName type file name to unload
Source:
Returns:
Type
void

(static) unloadTextFile(fileName) → {void}

Unload the TextFile
Parameters:
Name Type Description
fileName type file name to unload
Source:
Returns:
Type
void

gEngine.TextFileLoader

new TextFileLoader()

Default Constructor

loads an text file into resourceMap, either as simple text or as XML

Note: loads the a textfile and when done calls the callbackFunction()

fileName is treated as resource map key, file content is stored as asset

Source:

Members

(static) eTextFileType :enum|eTextFileType

Text file type tokens
Type:
  • enum | eTextFileType
Source:

(static) eTextFileType :enum|eTextFileType

Text file type tokens
Type:
  • enum | eTextFileType
Source:

Methods

(static) loadTextFile(fileName, fileType, callbackFunction) → {void}

Load text file if fileType is a eTextFileType
Parameters:
Name Type Description
fileName String File Path name
fileType enum | eTextFileType File type token
callbackFunction function Callback Function called when file load is complete
Source:
Returns:
Type
void

(static) loadTextFile(fileName, fileType, callbackFunction) → {void}

Load text file if fileType is a eTextFileType
Parameters:
Name Type Description
fileName String File Path name
fileType enum | eTextFileType File type token
callbackFunction function Callback Function called when file load is complete
Source:
Returns:
Type
void

(static) unloadTextFile(fileName) → {void}

Unload the TextFile
Parameters:
Name Type Description
fileName type file name to unload
Source:
Returns:
Type
void

(static) unloadTextFile(fileName) → {void}

Unload the TextFile
Parameters:
Name Type Description
fileName type file name to unload
Source:
Returns:
Type
void