mirror of
https://gitlab.com/open-fpsz/open-fpsz.git
synced 2026-07-13 07:25:06 +00:00
✅ Add Flag entity unit tests
This commit is contained in:
parent
0cf558f436
commit
db2e3e9471
4 changed files with 131 additions and 9 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue