public SavedOutfit(SimOutfit outfit) { if (outfit != null) { foreach (CASPart oldPart in outfit.Parts) { string oldPreset = outfit.GetPartPreset(oldPart.Key); mParts.Add(new SavedPart(oldPart, oldPreset)); } } mStore = new ColorStore(this); }
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 static PartPreset GetPartPreset(CASPart part, SimOutfit sourceOutfit) { return(new PartPreset(part, sourceOutfit.GetPartPreset(part.Key))); }
public PartPreset(CASPart part, SimOutfit sourceOutfit) : base(part, sourceOutfit.GetPartPreset(part.Key)) { }
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 static PartPreset GetPartPreset(CASPart part, SimOutfit sourceOutfit) { return new PartPreset(part, sourceOutfit.GetPartPreset(part.Key)); }