21 lines
424 B
C++

#include "Unlock.h"
std::set<std::string>Unlock::unlocks;
void Unlock::Initialize(){
UnlockArea("Stage I-I");
UnlockArea("Shop I");
UnlockArea("Blacksmith I");
UnlockArea("Stage I-II");
}
void Unlock::UnlockArea(std::string unlock){
unlocks.insert(unlock);
}
bool Unlock::IsUnlocked(std::string unlock){
return unlocks.count(unlock);
}
bool Unlock::IsUnlocked(ConnectionPoint&cp){
return unlocks.count(cp.name);
}