You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
509 B
30 lines
509 B
10 years ago
|
package mightypork.gamecore.resources;
|
||
|
|
||
|
|
||
|
import mightypork.gamecore.eventbus.BusAccess;
|
||
|
|
||
|
|
||
|
/**
|
||
|
* {@link ResourceLoadRequest} listener
|
||
|
*
|
||
|
* @author MightyPork
|
||
|
*/
|
||
|
public interface ResourceLoader {
|
||
|
|
||
|
/**
|
||
|
* Load a resource
|
||
|
*
|
||
|
* @param resource
|
||
|
*/
|
||
|
void loadResource(DeferredResource resource);
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Initialize the loader (async loader may start a stread)
|
||
|
*
|
||
|
* @param app app the loader works for. The event bus must already be
|
||
|
* initialized.
|
||
|
*/
|
||
|
void init(BusAccess app);
|
||
|
}
|