#include "Unlock.h" std::setUnlock::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); }