refactor: clarify simulation ownership
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=41 format=3]
|
||||
[gd_scene load_steps=37 format=3]
|
||||
|
||||
[ext_resource type="Terrain3DAssets" path="res://terrain/jajce/assets.tres" id="1_assets"]
|
||||
[ext_resource type="PackedScene" path="res://world/resource_nodes/ResourceNode.tscn" id="2_resource"]
|
||||
@@ -33,20 +33,6 @@ _shader_parameters = {
|
||||
world_background = 0
|
||||
auto_shader = true
|
||||
|
||||
[sub_resource type="NavigationMesh" id="NavigationMesh_greybox"]
|
||||
vertices = PackedVector3Array(-14.5, 0.5, 0, -1, 0.5, 0, -1, 0.5, -0.75, 0, 0.5, -1, 0, 0.5, -14.5, -14.5, 0.5, -14.5, 0.75, 0.5, -1, 0.75, 0.75, -0.5, 14.5, 0.5, -0.5, 14.5, 0.5, -14.5, 0.75, 0.75, 0, 0, 1, 0, 0, 0.75, 0.75, -0.5, 0.75, 0.75, -0.5, 0.5, 14.5, 14.5, 0.5, 14.5, -1, 0.5, 0.75, -14.5, 0.5, 14.5)
|
||||
polygons = [PackedInt32Array(2, 1, 0), PackedInt32Array(3, 2, 4), PackedInt32Array(4, 2, 5), PackedInt32Array(5, 2, 0), PackedInt32Array(6, 3, 4), PackedInt32Array(8, 7, 6), PackedInt32Array(8, 6, 9), PackedInt32Array(9, 6, 4), PackedInt32Array(12, 11, 10), PackedInt32Array(10, 7, 8), PackedInt32Array(14, 13, 12), PackedInt32Array(10, 8, 12), PackedInt32Array(12, 8, 14), PackedInt32Array(14, 8, 15), PackedInt32Array(0, 1, 16), PackedInt32Array(16, 13, 14), PackedInt32Array(14, 17, 16), PackedInt32Array(16, 17, 0)]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="Material_ground"]
|
||||
albedo_color = Color(0.24, 0.48, 0.25, 1)
|
||||
|
||||
[sub_resource type="BoxMesh" id="Mesh_ground"]
|
||||
material = SubResource("Material_ground")
|
||||
size = Vector3(64, 0.2, 64)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="Shape_ground"]
|
||||
size = Vector3(64, 0.2, 64)
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="Material_path_readability"]
|
||||
albedo_color = Color(0.52, 0.39, 0.24, 1)
|
||||
roughness = 0.95
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
extends CanvasLayer
|
||||
|
||||
const DEBUG_LOGS := false
|
||||
|
||||
@export var simulation_manager: Node
|
||||
|
||||
@onready var village_stats_label: Label = $VillagePanel/MarginContainer/VillageStatsLabel
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
extends Node
|
||||
|
||||
const DEBUG_LOGS := true
|
||||
@export var debug_logs := false
|
||||
|
||||
@export var npc_visual_scene: PackedScene
|
||||
@export var simulation_manager: Node
|
||||
@@ -10,7 +10,7 @@ var active_npc_visuals := {}
|
||||
|
||||
|
||||
func debug_log(message: String) -> void:
|
||||
if DEBUG_LOGS:
|
||||
if debug_logs:
|
||||
print("[WorldViewManager] ", message)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user