mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-16 16:46:07 +09:00
added sources for Slick
Former-commit-id: 1647fa32ef6894bd7db44f741f07c2f4dcdf9054 Former-commit-id: 0e5810dcfbe1fd59b13e7cabe9f1e93c5542da2d
This commit is contained in:
29
lib/slick-source/org/newdawn/slick/muffin/Muffin.java
Normal file
29
lib/slick-source/org/newdawn/slick/muffin/Muffin.java
Normal file
@@ -0,0 +1,29 @@
|
||||
package org.newdawn.slick.muffin;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.HashMap;
|
||||
|
||||
/**
|
||||
* A description of any class with the ability to store state locally
|
||||
*
|
||||
* @author kappaOne
|
||||
*/
|
||||
public interface Muffin {
|
||||
/**
|
||||
* Save a file of data
|
||||
*
|
||||
* @param data The data to store
|
||||
* @param fileName The name of the file to store it against
|
||||
* @throws IOException Indicates a failure to save the state
|
||||
*/
|
||||
public abstract void saveFile(HashMap data, String fileName) throws IOException;
|
||||
|
||||
/**
|
||||
* Load a file of data from the store
|
||||
*
|
||||
* @param fileName The name of the file to retrieve
|
||||
* @return The data retrieved
|
||||
* @throws IOException Indicates a failure to load the state
|
||||
*/
|
||||
public abstract HashMap loadFile(String fileName) throws IOException;
|
||||
}
|
||||
Reference in New Issue
Block a user