Exemple #1
0
 static int CompareBySect(_SectMap a, _SectMap b)
 {
     return(a.Sect.CompareTo(b.Sect));
 }
Exemple #2
0
 internal static void SetAll(ref _SectMap st, int idx, string[] rec)
 {
     st.Sect  = byte.Parse(rec[0]);
     st.Final = byte.Parse(rec[1]);
     st.Tone  = (Tone)byte.Parse(rec[2]);
 }
Exemple #3
0
        static int CompareByRime(_SectMap a, _SectMap b)
        {
            int rel = (byte)a.Tone - (byte)b.Tone;

            return(rel == 0 ? a.Final - b.Final : rel);
        }