コード例 #1
0
        public Profile()
        {
            _areaLevelData = new Dictionary <string, AreaDataContainer>();
            _settings      = new PCSettings();

            _goldenTicketCount          = 0;
            _newlyUnlockedItems         = new List <XElement>();
            _unlockedAvatarComponents   = new List <XElement>();
            _fullVersionOnlyUnlockables = new List <XElement>();
        }
コード例 #2
0
        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"));
        }