Add Flag entity unit tests

This commit is contained in:
Squinty 2024-04-28 14:43:03 +00:00 committed by anyreso
parent 0cf558f436
commit db2e3e9471
4 changed files with 131 additions and 9 deletions

View file

@ -15,7 +15,7 @@
## Manage environment settings and terrain maps within a scene.
extends Node
## The default [Environment] used by the current scene in case the [Terrain3D]
## The default [Environment] used by the current scene in case the [Terrain3D]
## node does not have a [WorldEnvironment] as one of its children.
var environment := Environment.new()
@ -43,11 +43,11 @@ func get_player_spawn() -> Node3D:
if current_map == null:
push_error("MapsManager.current_map is null")
return null
if not current_map.has_node("PlayerSpawns"):
push_warning("PlayerSpawns node not found in MapsManager.current_map")
return null
var player_spawns : Node = current_map.get_node("PlayerSpawns")
var spawn_count : int = player_spawns.get_child_count()
if spawn_count == 0: