DeleteSprite() public méthode

public DeleteSprite ( Sprite sprite ) : void
sprite Sprite
Résultat void
 void IAGSEditor.DeleteSprite(int spriteNumber)
 {
     Sprite sprite = _agsEditor.CurrentGame.RootSpriteFolder.FindSpriteByID(spriteNumber, true);
     if (sprite == null)
     {
         throw new AGSEditorException("The sprite " + spriteNumber + " could not be found");
     }
     _agsEditor.DeleteSprite(sprite);
     _agsEditor.CurrentGame.RootSpriteFolder.NotifyClientsOfUpdate();
 }