public static Action GetAttackAction(Pawn pawn, LocalTargetInfo target, out string failStr) { if (pawn.GetComp <VEF_Comp_Pawn_RangedVerbs>().CurRangedVerb != null) { return(VEF_FloatMenuUtility.GetRangedAttackAction(pawn, target, out failStr)); } return(FloatMenuUtility.GetMeleeAttackAction(pawn, target, out failStr)); }
private static void FloatMenuUtility_GetAttackActionPostfix(Pawn pawn, LocalTargetInfo target, out string failStr, ref Action __result) { __result = VEF_FloatMenuUtility.GetAttackAction(pawn, target, out failStr); return; }