diff --git a/addons/world_generator/raycast/world_gen_raycast.gd b/addons/world_generator/raycast/world_gen_raycast.gd index 2a80373..8e5f921 100644 --- a/addons/world_generator/raycast/world_gen_raycast.gd +++ b/addons/world_generator/raycast/world_gen_raycast.gd @@ -25,7 +25,7 @@ func next() -> bool: func size() -> int: return base_resources.size() -# base_resource -> WorldGenBaseResource +# WorldGenBaseResource (can't explicitly add -> cyclic dependency) func add_data(base_resource, local_pos : Vector2, local_uv : Vector2) -> void: base_resources.append(base_resource) local_positions.append(local_pos) diff --git a/addons/world_generator/resources/continent.gd b/addons/world_generator/resources/continent.gd index 2a39640..fa486e9 100644 --- a/addons/world_generator/resources/continent.gd +++ b/addons/world_generator/resources/continent.gd @@ -2,7 +2,7 @@ tool extends "res://addons/world_generator/resources/world_gen_base_resource.gd" class_name Continent -export(Array) var zones : Array +export(Array, Zone) var zones : Array func get_content() -> Array: return zones diff --git a/addons/world_generator/resources/subzone.gd b/addons/world_generator/resources/subzone.gd index 111eabc..d0d6b4d 100644 --- a/addons/world_generator/resources/subzone.gd +++ b/addons/world_generator/resources/subzone.gd @@ -2,7 +2,7 @@ tool extends "res://addons/world_generator/resources/world_gen_base_resource.gd" class_name SubZone -export(Array) var subzone_props : Array +export(Array, SubZoneProp) var subzone_props : Array func get_content() -> Array: return subzone_props diff --git a/addons/world_generator/resources/world_gen_world.gd b/addons/world_generator/resources/world_gen_world.gd index f5bc15f..f6e2d20 100644 --- a/addons/world_generator/resources/world_gen_world.gd +++ b/addons/world_generator/resources/world_gen_world.gd @@ -2,7 +2,7 @@ tool extends "res://addons/world_generator/resources/world_gen_base_resource.gd" class_name WorldGenWorld -export(Array) var continents : Array +export(Array, Continent) var continents : Array func get_content() -> Array: return continents diff --git a/addons/world_generator/resources/zone.gd b/addons/world_generator/resources/zone.gd index 2634a47..d62bb67 100644 --- a/addons/world_generator/resources/zone.gd +++ b/addons/world_generator/resources/zone.gd @@ -2,7 +2,7 @@ tool extends "res://addons/world_generator/resources/world_gen_base_resource.gd" class_name Zone -export(Array) var subzones : Array +export(Array, SubZone) var subzones : Array func get_content() -> Array: return subzones