Make use of the new export hints.

This commit is contained in:
Relintai 2023-10-12 00:32:59 +02:00
parent d2394eb1e9
commit 41b06087e1
5 changed files with 5 additions and 5 deletions

View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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