public static bool GetPartPreset(BodyTypes type, SimOutfit sourceOutfit, ref PartPreset result) { foreach (CASPart part in sourceOutfit.Parts) { if (part.BodyType != type) { continue; } result = new PartPreset(part, sourceOutfit.GetPartPreset(part.Key)); return(true); } return(false); }
public bool ApplyPartPreset(PartPreset part) { return(part.Apply(mBuilder)); }
public bool ApplyPartPreset(PartPreset part) { return part.Apply(mBuilder); }
public static bool GetPartPreset(BodyTypes type, SimOutfit sourceOutfit, ref PartPreset result) { foreach (CASPart part in sourceOutfit.Parts) { if (part.BodyType != type) continue; result = new PartPreset(part, sourceOutfit.GetPartPreset(part.Key)); return true; } return false; }