private static bool IsMatchingMethod(BehaviorAttribute attribute, WoWClass wowClass, WoWSpec spec, BehaviorType behavior, WoWContext context) { if (attribute.SpecificClass != wowClass && attribute.SpecificClass != WoWClass.None) { return(false); } if ((attribute.Type & behavior) == 0) { return(false); } if ((attribute.SpecificContext & context) == 0) { return(false); } if (attribute.SpecificSpec != (WoWSpec)int.MaxValue && attribute.SpecificSpec != spec) { return(false); } /* Logger.WriteDebug("IsMatchingMethod({0}, {1}, {2}, {3}) - {4}, {5}, {6}, {7}, {8}", wowClass, spec, behavior, * context, attribute.SpecificClass, attribute.SpecificSpec, attribute.Type, attribute.SpecificContext, * attribute.PriorityLevel); */ return(true); }
private static bool IsMatchingMethod(BehaviorAttribute attribute, WoWClass wowClass, WoWSpec spec, BehaviorType behavior, WoWContext context) { if (attribute.SpecificClass != wowClass && attribute.SpecificClass != WoWClass.None) return false; if ((attribute.Type & behavior) == 0) return false; if ((attribute.SpecificContext & context) == 0) return false; if (attribute.SpecificSpec != (WoWSpec)int.MaxValue && attribute.SpecificSpec != spec) return false; Logger.WriteDebug("IsMatchingMethod({0}, {1}, {2}, {3}) - {4}, {5}, {6}, {7}, {8}", wowClass, spec, behavior, context, attribute.SpecificClass, attribute.SpecificSpec, attribute.Type, attribute.SpecificContext, attribute.PriorityLevel); return true; }