Exemple #1
0
        public static float CurrentRecallChance(this SaveData.Heroine heroine, int question, int answer)
        {
            var result = 0f;

            heroine.SafeProc(h => h.chaCtrl.SafeProcObject(cc =>
                                                           result = cc.CurrentRecallChance(question, answer)));
            return(result);
        }
Exemple #2
0
        public static ulong TimesAnswerSelected(this SaveData.Heroine heroine, int question, int answer)
        {
            ulong result = 0;

            heroine.SafeProc(h => h.chaCtrl.SafeProcObject(cc =>
                                                           result = cc.TimesAnswerSelected(question, answer)));
            return(result);
        }
Exemple #3
0
        public static bool CanRecallAnswer(this SaveData.Heroine heroine, int question, int answer)
        {
            var result = false;

            heroine.SafeProc(h => h.chaCtrl.SafeProcObject(cc =>
                                                           result = cc.CanRecallAnswer(question, answer)));
            return(result);
        }
Exemple #4
0
        public static int GetCoordinateType(this SaveData.Heroine heroine)
        {
            var result = -1;

            heroine.SafeProc(h => h.chaCtrl.SafeProc(
                                 cc => cc.chaFile.SafeProc(
                                     cf => cf.status.SafeProc(
                                         s => result = s.coordinateType))));
            return(result);
        }
Exemple #5
0
 private void SceneManager_sceneUnloaded(Scene arg0)
 {
     if (!_supportedSceneNames.Contains(arg0.name))
     {
         return;
     }
     _targetHeroine.SafeProc(h => h.PersistData());
     CurrentlyEnabled = false;
     _targetHeroine   = null;
 }
Exemple #6
0
 public static void Remember(this SaveData.Heroine heroine, int question, int answer, bool isCorrect)
 {
     heroine.SafeProc(h => h.chaCtrl.SafeProcObject(cc => cc.Remember(question, answer, isCorrect)));
 }