// Token: 0x06000BA4 RID: 2980 RVA: 0x0002DB4C File Offset: 0x0002BD4C
    public static bool Convert(string name, out global::DamageTypeFlags flags)
    {
        global::DamageTypeIndex damageTypeIndex;

        if (global::DamageTypeNames.Values.TryGetValue(name, out damageTypeIndex))
        {
            flags = (global::DamageTypeFlags)(1 << (int)damageTypeIndex);
            return(true);
        }
        if (name.Length == 0 || name == "none")
        {
            flags = (global::DamageTypeFlags)0;
            return(true);
        }
        return(global::DamageTypeNames.Convert(name.Split(global::DamageTypeNames.SplitCharacters, StringSplitOptions.RemoveEmptyEntries), out flags));
    }
 // Token: 0x06000BA3 RID: 2979 RVA: 0x0002DAD8 File Offset: 0x0002BCD8
 public static bool Convert(string[] names, out global::DamageTypeFlags flags)
 {
     for (int i = 0; i < names.Length; i++)
     {
         global::DamageTypeIndex damageTypeIndex;
         if (global::DamageTypeNames.Values.TryGetValue(names[i], out damageTypeIndex))
         {
             flags = (global::DamageTypeFlags)(1 << (int)damageTypeIndex);
             while (++i < names.Length)
             {
                 if (global::DamageTypeNames.Values.TryGetValue(names[i], out damageTypeIndex))
                 {
                     flags |= (global::DamageTypeFlags)(1 << (int)damageTypeIndex);
                 }
             }
             return(true);
         }
     }
     flags = (global::DamageTypeFlags)0;
     return(false);
 }
 // Token: 0x06000BA5 RID: 2981 RVA: 0x0002DBA8 File Offset: 0x0002BDA8
 public static bool Convert(global::DamageTypeIndex index, out global::DamageTypeFlags flags)
 {
     flags = (global::DamageTypeFlags)(1 << (int)index);
     return((flags & global::DamageTypeNames.Mask) == flags);
 }