zKoth/src/fr/maxlego08/koth/zcore/utils/storage/Savable.java
Maxlego08 3c051e1588 🎉 Start V3
2024-02-22 10:19:15 +01:00

23 lines
624 B
Java

package fr.maxlego08.koth.zcore.utils.storage;
/**
* The Savable interface represents objects that can be saved and loaded using a provided Persist object.
* Implement this interface in classes that need to be serialized and deserialized.
*/
public interface Savable {
/**
* Saves the state of the object using the provided Persist object.
*
* @param persist The Persist object used to save the state.
*/
void save(Persist persist);
/**
* Loads the state of the object from the provided Persist object.
*
* @param persist The Persist object used to load the state.
*/
void load(Persist persist);
}