Increased bridge range / Bugfixes
This commit is contained in:
@@ -9,18 +9,12 @@ import io.anuke.ucore.core.Events;
|
||||
import io.anuke.ucore.core.Settings;
|
||||
|
||||
public class ContentDatabase{
|
||||
/**
|
||||
* Maps unlockable type names to a set of unlocked content.
|
||||
*/
|
||||
/** Maps unlockable type names to a set of unlocked content.*/
|
||||
private ObjectMap<String, ObjectSet<String>> unlocked = new ObjectMap<>();
|
||||
/**
|
||||
* Whether unlockables have changed since the last save.
|
||||
*/
|
||||
/** Whether unlockables have changed since the last save.*/
|
||||
private boolean dirty;
|
||||
|
||||
/**
|
||||
* Returns whether or not this piece of content is unlocked yet.
|
||||
*/
|
||||
/** Returns whether or not this piece of content is unlocked yet.*/
|
||||
public boolean isUnlocked(UnlockableContent content){
|
||||
if(!unlocked.containsKey(content.getContentTypeName())){
|
||||
unlocked.put(content.getContentTypeName(), new ObjectSet<>());
|
||||
@@ -57,16 +51,12 @@ public class ContentDatabase{
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether unlockables have changed since the last save.
|
||||
*/
|
||||
/** Returns whether unlockables have changed since the last save.*/
|
||||
public boolean isDirty(){
|
||||
return dirty;
|
||||
}
|
||||
|
||||
/**
|
||||
* Clears all unlocked content.
|
||||
*/
|
||||
/** Clears all unlocked content.*/
|
||||
public void reset(){
|
||||
unlocked.clear();
|
||||
dirty = true;
|
||||
|
||||
Reference in New Issue
Block a user