Rogue: Savage Rats, a retro-themed dungeon crawler
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.
 
 
rogue-savage-rats/src/mightypork/gamecore/resources/LazyResource.java

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();
}