feat:(recuration): added planet list singelton

This commit is contained in:
2026-03-21 19:26:53 +01:00
parent 01a7fe419a
commit 503b12d8eb
2 changed files with 12 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
extends Node
var planets: Array[Node] = []
func register(planet: Node) -> void:
planets.append(planet)
func unregister(planet) -> void:
planets.erase(planet)