Changes
This commit is contained in:
8
Global Managers/component_utils.gd
Normal file
8
Global Managers/component_utils.gd
Normal file
@@ -0,0 +1,8 @@
|
||||
extends Node
|
||||
|
||||
# Public Methods
|
||||
func GetMovementComponent(container: Node) -> MovementComponent:
|
||||
for node in container.get_children():
|
||||
if node is MovementComponent:
|
||||
return node
|
||||
return null
|
||||
1
Global Managers/component_utils.gd.uid
Normal file
1
Global Managers/component_utils.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://cf5j2r4gpceng
|
||||
@@ -1,10 +1,14 @@
|
||||
extends Node
|
||||
|
||||
const ERROR_404_MAP = preload("uid://durt8y2ovs6me")
|
||||
const TITLE_SCREEN = preload("uid://be4nw563yydcr")
|
||||
const HOME_01 = preload("uid://laxewy7irxno")
|
||||
const PATH_TO_DUNGEON_01 = preload("uid://b07m0k40dh042")
|
||||
const SHOP = preload("uid://bwt0ijoq4qmhn")
|
||||
|
||||
@onready var mapping := {
|
||||
Enums.MapIds.ERROR_404: ERROR_404_MAP,
|
||||
Enums.MapIds.TITLE_SCREEN: TITLE_SCREEN,
|
||||
Enums.MapIds.SHOP_01: SHOP,
|
||||
Enums.MapIds.PATH_TO_FOREST_DUNGEON_01: PATH_TO_DUNGEON_01,
|
||||
Enums.MapIds.PATH_TO_FOREST_HOME_01: HOME_01
|
||||
|
||||
Reference in New Issue
Block a user