// Persistant functions include const string AIDB_DB = "MN_AIDB_DB"; const int CHERRY2ENERGY = 100; int GetChaGold() { int result = GetCampaignInt( AIDB_DB, "chagold" ); return result; } void SetChaGold(int amount) { SetCampaignInt( AIDB_DB, "chagold", amount ); } int GetOpGold() { int result = GetCampaignInt( AIDB_DB, "opgold" ); return result; } void SetOpGold(int amount) { SetCampaignInt( AIDB_DB, "opgold", amount ); } int GetEnergy() { int result = GetCampaignInt( AIDB_DB, "energy" ); return result; } void SetEnergy(int amount) { SetCampaignInt( AIDB_DB, "energy", amount ); }