Versatile Java game engine with pluggable backends (this was used in Rogue, I think)
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.
gamecore/src/mightypork/gamecore/resources/ResourceInitializer.java

38 lines
718 B

package mightypork.gamecore.resources;
import mightypork.gamecore.audio.SoundRegistry;
import mightypork.gamecore.graphics.fonts.FontRegistry;
import mightypork.gamecore.graphics.textures.TextureRegistry;
/**
* Resource binder; used by apps to specify what resources are to be loaded.
*
* @author Ondřej Hruška (MightyPork)
*/
public interface ResourceInitializer {
/**
* Add fonts to load.
*
* @param fonts font registry
*/
void addFonts(FontRegistry fonts);
/**
* Add sounds to load.
*
* @param sounds sound registry
*/
void addSounds(SoundRegistry sounds);
/**
* Add textures to load
*
* @param textures texture registry
*/
void addTextures(TextureRegistry textures);
}