Mallet Engine
2
Entity-Component based game engine, written in Java.
|
Public Member Functions | |
void | scanBaseDirectory () |
byte[] | getResourceRaw (final String _file) |
String | getResourceAsString (final String _file) |
boolean | getResourceRaw (final String _file, final ResourceCallback _callback) |
boolean | getResourceAsString (final String _file, final ResourceCallback _callback) |
boolean | writeResourceAsString (final String _file, final String _data) |
boolean | writeResourceRaw (final String _file, final byte[] _data) |
boolean | doesResourceExist (final String _file) |
boolean | deleteResource (final String _file) |
The Aim of the File System is to scan available resources located in the base directory.
Resources are then mapped to allow generic and easy access to all content. If a resource is accessed but has not been mapped, then it should be mapped first.
boolean com.linxonline.mallet.io.filesystem.FileSystem.deleteResource | ( | final String | _file | ) |
Implemented in com.linxonline.mallet.io.filesystem.DesktopFileSystem.
boolean com.linxonline.mallet.io.filesystem.FileSystem.doesResourceExist | ( | final String | _file | ) |
Implemented in com.linxonline.mallet.io.filesystem.DesktopFileSystem.
String com.linxonline.mallet.io.filesystem.FileSystem.getResourceAsString | ( | final String | _file | ) |
Implemented in com.linxonline.mallet.io.filesystem.DesktopFileSystem.
boolean com.linxonline.mallet.io.filesystem.FileSystem.getResourceAsString | ( | final String | _file, |
final ResourceCallback | _callback | ||
) |
Implemented in com.linxonline.mallet.io.filesystem.DesktopFileSystem.
byte [] com.linxonline.mallet.io.filesystem.FileSystem.getResourceRaw | ( | final String | _file | ) |
Blocks calling Thread
Implemented in com.linxonline.mallet.io.filesystem.DesktopFileSystem.
boolean com.linxonline.mallet.io.filesystem.FileSystem.getResourceRaw | ( | final String | _file, |
final ResourceCallback | _callback | ||
) |
Doesn't block calling Thread, when resource has started reading, it'll call ResourceCallback. Return boolean informs whether it successfully started reading.
Implemented in com.linxonline.mallet.io.filesystem.DesktopFileSystem.
Implemented in com.linxonline.mallet.io.filesystem.DesktopFileSystem.
boolean com.linxonline.mallet.io.filesystem.FileSystem.writeResourceAsString | ( | final String | _file, |
final String | _data | ||
) |
Blocks calling Thread
Implemented in com.linxonline.mallet.io.filesystem.DesktopFileSystem.
boolean com.linxonline.mallet.io.filesystem.FileSystem.writeResourceRaw | ( | final String | _file, |
final byte[] | _data | ||
) |
Implemented in com.linxonline.mallet.io.filesystem.DesktopFileSystem.