Comments so developer doesn't get bugged about garbage collecton

This commit is contained in:
frutescens 2024-09-01 17:19:26 -07:00
parent 290f3dd8f3
commit 0c122af8fa
2 changed files with 2 additions and 2 deletions

View File

@ -2735,6 +2735,7 @@ export default class BattleScene extends SceneBase {
/**
* This function retrieves the sprite and audio keys for active Pokemon.
* Active Pokemon include both enemy and player Pokemon of the current wave.
* Note: Questions on garbage collection go to @frutescens
* @returns a string array of active sprite and audio keys that should not be deleted
*/
getActiveKeys(): string[] {

View File

@ -89,8 +89,7 @@ export default class EggSummaryUiHandler extends MessageUiHandler {
this.pokemonIconsContainer.removeAll(true);
this.eggHatchBg.setVisible(false);
this.getUi().hideTooltip();
// Note: Questions on garbage collection go to @frutescens
const activeKeys = this.scene.getActiveKeys();
// Removing unnecessary sprites from animation manager
const animKeys = Object.keys(this.scene.anims["anims"]["entries"]);