private static int SortByRequirementsMet(SortableEquipment a, SortableEquipment b) { bool flag = ArmoryUtils.IsBuildingRequirementMet(a.Equipment); bool flag2 = ArmoryUtils.IsBuildingRequirementMet(b.Equipment); if (flag && !flag2) { return(-1); } if (flag2 && !flag) { return(1); } return(0); }
public unsafe static long $Invoke12(long instance, long *args) { return(GCHandledObjects.ObjectToGCHandle(ArmoryUtils.IsBuildingRequirementMet((EquipmentVO)GCHandledObjects.GCHandleToObject(*args)))); }