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.
23 lines
345 B
23 lines
345 B
package mightypork.gamecore.resources;
|
|
|
|
|
|
/**
|
|
* Deferred resource
|
|
*
|
|
* @author Ondřej Hruška (MightyPork)
|
|
*/
|
|
public interface LazyResource {
|
|
|
|
/**
|
|
* Load the actual resource, if not loaded yet.
|
|
*/
|
|
void load();
|
|
|
|
|
|
/**
|
|
* Check if resource was successfully loaded.
|
|
*
|
|
* @return true if already loaded
|
|
*/
|
|
boolean isLoaded();
|
|
}
|
|
|