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

eTextFileType :enum|eTextFileType

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

Methods

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

unloadTextFile(fileName) → {void}

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