Exemple #1
0
        public static I18NString Translate(StatusFlags statusFlags)
        {
            switch (statusFlags)
            {
            case StatusFlags.None:
                return(I18N.Instance.Get(null));

            case StatusFlags.Slow:
                return(I18N.Instance.Get("enum_status_flag_slow"));

            case StatusFlags.Stun:
                return(I18N.Instance.Get("enum_status_flag_stun"));

            case StatusFlags.Swiftness:
                return(I18N.Instance.Get("enum_status_flag_swiftness"));

            case StatusFlags.Disarm:
                return(I18N.Instance.Get("enum_status_flag_disarm"));

            case StatusFlags.Silence:
                return(I18N.Instance.Get("enum_status_flag_silence"));

            case StatusFlags.Confusion:
                return(I18N.Instance.Get("enum_status_flag_confusion"));

            case StatusFlags.Weakness:
                return(I18N.Instance.Get("enum_status_flag_weakness"));

            case StatusFlags.Invisibility:
                return(I18N.Instance.Get("enum_status_flag_invisibility"));

            case StatusFlags.Immobilization:
                return(I18N.Instance.Get("enum_status_flag_immobilization"));

            case StatusFlags.Invulnerability:
                return(I18N.Instance.Get("enum_status_flag_invulnerability"));

            default:
                return(new I18NString(new I18NStringData(statusFlags.ToString())));
            }
        }