/// <summary> /// 技能配置有点特殊,额外处理下 /// </summary> static public void PostSpell() { Type type = typeof(SPELL.SPELL_DATA); System.Reflection.FieldInfo[] fields = type.GetFields(); int nColunIndex = 0; for (int i = 0; i < fields.Length; ++i) { System.Reflection.FieldInfo f = fields[i]; Type t = WrapperReflection.GetBitMaskObj(f); if (t == null) { continue; } nColunIndex = i; // 由于中间加了一个备注列,要跳过 if (i >= 2) { nColunIndex += 1; } Add(type.Name, nColunIndex, t); } }
static public void Post(Type type) { System.Reflection.FieldInfo[] fields = type.GetFields(); for (int i = 0; i < fields.Length; ++i) { System.Reflection.FieldInfo f = fields[i]; Type t = WrapperReflection.GetBitMaskObj(f); if (t == null) { continue; } Add(type.Name, i, t); } }