Example #1
0
 /// <summary>
 /// Ctor.
 /// </summary>
 /// <param name="configurationAdapter">
 /// A <see cref="SMIConfigurationAdapter"/>, that Scene Manager should use.
 /// </param>
 /// <remarks>@since version 1.4.0</remarks>
 public SMSceneManager(SMIConfigurationAdapter configurationAdapter)
 {
     if (configurationAdapter == null)
     {
         throw new ArgumentException("Scene Manager has been given no scene configuration to work on. Cannot continue.");
     }
     this.configurationAdapter = configurationAdapter;
 }
Example #2
0
 public SMUnmodifiableLevelProgress(SMILevelProgress levelProgress, SMIConfigurationAdapter configurationAdapter)
 {
     foreach (var level in configurationAdapter.Levels)
     {
         status.Add(level, levelProgress.GetLevelStatus(level));
     }
     foreach (var group in configurationAdapter.Groups)
     {
         groupStatus.Add(group, levelProgress.GetGroupStatus(group));
     }
     hasPlayed      = levelProgress.HasPlayed;
     lastLevelId    = levelProgress.LastLevelId;
     currentLevelId = levelProgress.CurrentLevelId;
 }