Example #1
0
 public LevelSet(XElement Source, Object pPersistenceData)
 {
     SetName = Source.GetAttributeString("Name", "");
     Levels = Source.ReadList("Levels", new List<Level>());
     PathData = Source.ReadElement<ObjectPathDataManager>("PathData");
 }
Example #2
0
 public LevelSet(SerializationInfo info, StreamingContext ContextBoundObject)
     : this()
 {
     SetName = info.GetString("Name");
     Levels = (List<Level>) info.GetValue("Levels", typeof(List<Level>));
     try
     {
         PathData = (ObjectPathDataManager) info.GetValue("PathData", typeof(ObjectPathDataManager));
     }
     catch
     {
         PathData = new ObjectPathDataManager();
     }
     Debug.Print("Loaded " + PathData.Count() + " Paths...");
     //HighScores = (LocalHighScores)info.GetValue("HighScores", typeof(LocalHighScores));
 }