Example #1
0
        public void SaveToplist(string toplistFilename)
        {
            toplistFilename.ThrowIfNullOrEmpty(nameof(toplistFilename));

            string toplistData = ToplistBase.Serialize(_toplist);

            File.WriteAllText(toplistFilename, toplistData);
        }
Example #2
0
        internal ToplistXml(ToplistBase toplist)
        {
            toplist.ThrowIfNull(nameof(toplist));

            Name   = toplist.Name;
            Type   = (int)toplist.Type;
            Format = (int)toplist.Format;

            Blocks = ConvertBlocksToXElements(toplist.Blocks);
        }
Example #3
0
 public ToplistWrapper(ToplistBase toplist)
 {
     _toplist = toplist.ThrowIfNull(nameof(toplist));
 }