コード例 #1
0
        internal static int GetScoreFromColor(IndicatorInfo indicator, Dictionary <Color, int> colorCountDictionary)
        {
            int colorCount;

            if (colorCountDictionary.TryGetValue(indicator.Color, out colorCount))
            {
                colorCount++;
                colorCountDictionary[indicator.Color]++;
            }
            else
            {
                colorCount = 1;
                colorCountDictionary.Add(indicator.Color, colorCount);
            }

            return(ColorOfIndicatorLightValues[indicator.Color][colorCount - 1].Item2);
        }
コード例 #2
0
 internal static int GetScoreFromPosition(IndicatorInfo indicator)
 {
     return(indicator.IsFlashing ? PositionOfIndicatorLightValues[indicator.Color][indicator.Index] : ColorOfIndicatorLightValues[indicator.Color][indicator.Index].Item1);
 }