Removed all reflection

This commit is contained in:
Anuken
2018-09-09 21:44:10 -04:00
parent 65f911909b
commit 6ef2256bf2
6 changed files with 19 additions and 13 deletions

View File

@@ -16,6 +16,10 @@ public class ContentDatabase{
private ObjectMap<ContentType, ObjectSet<String>> unlocked = new ObjectMap<>();
/** Whether unlockables have changed since the last save.*/
private boolean dirty;
static{
Settings.setSerializer(ContentType.class, (stream, t) -> stream.writeInt(t.ordinal()), stream -> ContentType.values()[stream.readInt()]);
}
/** Returns whether or not this piece of content is unlocked yet.*/
public boolean isUnlocked(UnlockableContent content){