コード例 #1
0
ファイル: Plugin.cs プロジェクト: gcfavorites/fnordbot
        public StatCollection GetTop(int count)
        {
            Sort();

            StatCollection col = new StatCollection();
            int max = count>10?10:Count;

            for(int i=0; i<max; i++)
                col.Add( this[i] );

            return col;
        }
コード例 #2
0
ファイル: Plugin.cs プロジェクト: gcfavorites/fnordbot
 public void Add(string channelname, StatCollection collection)
 {
     Dictionary.Add(channelname, collection);
 }