Skip to content

Instantly share code, notes, and snippets.

@farmisen
Created July 12, 2013 07:04
Show Gist options
  • Save farmisen/5982490 to your computer and use it in GitHub Desktop.
Save farmisen/5982490 to your computer and use it in GitHub Desktop.
category->level = level;
needFlush = true;
int learnerId = [[[[LearnerCoordinator sharedInstance] currentLearner] learnerId] intValue];
NSString *key = [NSString stringWithFormat:@"learning_model.%d.%s.%s.dimension", learnerId, _currentGame->name.c_str(), name.c_str()];
// NSString *key = [NSString stringWithFormat:@"learning_model.%s.%s.dimension", _currentGame->name.c_str(), name.c_str()];
CCUserDefault::sharedUserDefault()->setIntegerForKey([key UTF8String], level);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment