Example #1
0
        public static string UITextForProp(EItemAge age, bool shortMode)
        {
            string propString;

            switch (age)
            {
            case EItemAge.Ancient:
                propString = "고대";
                break;

            case EItemAge.Middle:
                propString = "중근세";
                break;

            case EItemAge.Modern:
                propString = "현대";
                break;

            default:
                propString = "오류";
                break;
            }

            if (shortMode)
            {
                propString = propString.Substring(0, 1);
            }
            return(propString);
        }
Example #2
0
        public static Color UIColorForProp(EItemAge age)
        {
            switch (age)
            {
            case EItemAge.Ancient:
                return(new Color(0.7f, 0.62f, 0.36f));

            case EItemAge.Middle:
                return(new Color(0.15f, 0.74f, 0.24f));

            case EItemAge.Modern:
                return(new Color(0.64f, 0.65f, 0.63f));

            default:
                return(new Color(1.0f, 1.0f, 1.0f));
            }
        }
Example #3
0
        public static int CodeForProp(EItemAge age)
        {
            switch (age)
            {
            case EItemAge.Ancient:
                return(ItemPropNumPerType);

            case EItemAge.Middle:
                return(ItemPropNumPerType + 1);

            case EItemAge.Modern:
                return(ItemPropNumPerType + 2);

            default:
                return(-1);
            }
        }