mirror of
https://github.com/Relintai/world_generator_addon.git
synced 2024-11-19 20:47:19 +01:00
Make use of the new export hints.
This commit is contained in:
parent
d2394eb1e9
commit
41b06087e1
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user