//NOTE: PLEASE USE THESE SETTERS, AS THEY FLIP THE MODIFIED FLAG! public void SetName(string newName) { Kart.KartName = newName; IsModified = true; ChompShopAlerts.UpdateKartName(this); }
public void RemoveKartImage(KartImage image) { if (Kart.KartImages.Images.ContainsKey(image.Name)) { Kart.KartImages.Images.Remove(image.Name); IsModified = true; } //Flip something to notify that a cart got removed, and // thus update the animation form and whatnot ChompShopAlerts.UpdateKartImages(this); ComprimisedAnimations = true; }