2021-12-21 21:50:22 +01:00
|
|
|
tool
|
2021-12-22 16:14:26 +01:00
|
|
|
extends "res://addons/world_generator/resources/world_gen_base_resource.gd"
|
2021-12-21 21:50:22 +01:00
|
|
|
class_name Zone
|
2021-12-22 10:03:55 +01:00
|
|
|
|
2021-12-22 16:14:26 +01:00
|
|
|
export(Array) var subzones : Array
|
|
|
|
|
|
|
|
func get_content() -> Array:
|
|
|
|
return subzones
|
|
|
|
|
|
|
|
func set_content(arr : Array) -> void:
|
|
|
|
subzones = arr
|
|
|
|
|
2021-12-25 02:15:17 +01:00
|
|
|
func add_content(item_name : String = "") -> void:
|
|
|
|
var subzone : SubZone = SubZone.new()
|
|
|
|
subzone.resource_name = item_name
|
|
|
|
|
|
|
|
subzones.append(subzone)
|
2021-12-22 16:52:06 +01:00
|
|
|
emit_changed()
|
|
|
|
|
2021-12-22 16:14:26 +01:00
|
|
|
func setup_property_inspector(inspector) -> void:
|
|
|
|
.setup_property_inspector(inspector)
|