コード例 #1
0
ファイル: KartWrapper.cs プロジェクト: guimmp92/Pitstop64
        //NOTE: PLEASE USE THESE SETTERS, AS THEY FLIP THE MODIFIED FLAG!
        public void SetName(string newName)
        {
            Kart.KartName = newName;

            IsModified = true;

            ChompShopAlerts.UpdateKartName(this);
        }
コード例 #2
0
ファイル: KartWrapper.cs プロジェクト: guimmp92/Pitstop64
        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;
        }