public Profile() { _areaLevelData = new Dictionary <string, AreaDataContainer>(); _settings = new PCSettings(); _goldenTicketCount = 0; _newlyUnlockedItems = new List <XElement>(); _unlockedAvatarComponents = new List <XElement>(); _fullVersionOnlyUnlockables = new List <XElement>(); }
public void Deserialize(XElement serializedData) { Serializer serializer = new Serializer(serializedData); _settings = serializer.GetDataItem <PCSettings>("config-settings"); _goldenTicketCount = serializer.GetDataItem <int>("golden-tickets"); _currentArea = serializer.GetDataItem <string>("last-area"); LoadAreaDataFromXml(serializer.GetDataElement("survival-area-data")); LoadAvatarComponentDataFromXml(serializer.GetDataElement("avatar-component-data")); }